Using convert

Solver related questions
Post Reply
hoveid
User
User
Posts: 2
Joined: 4 years ago

Using convert

Post by hoveid »

Dear experts

I need Convert to find the Hessian in an optimal point of a model. The manual says the following option statement should invoke the solver convert: option modeltype=convert;
but my GAMS system (31.2.0 r8ba6aed WEX-WEI x86 64bit/MS Windows) says that "modeltype" is an invalid option.

Previously I started convert via the solve statement like: SOLVE NLA MAXIMIZING LH USING CONVERT;
but that is not working either.

best
Oyvind
User avatar
dirkse
Moderator
Moderator
Posts: 214
Joined: 7 years ago
Location: Fairfax, VA

Re: Using convert

Post by dirkse »

Oyvind,

You don't say what the model type is but since you mention a Hessian I'll guess you're solving an NLP. In this case, your can select the convert solver by the statement

Code: Select all

option NLP = convert;
in your GAMS code. Assuming my guess on the model type was correct, you then solve with

Code: Select all

SOLVE NLA MAXIMIZING LH USING NLP;
-Steve
hoveid
User
User
Posts: 2
Joined: 4 years ago

Re: Using convert

Post by hoveid »

Thanks Steven

I should have guessed that modeltype needed to replaced. The Hessian is not found with "convert" but with "convertd", though.

Oyvind
Post Reply