GAMS-dev / gams.jl

A MathOptInterface Optimizer to solve JuMP models using GAMS
MIT License
34 stars 3 forks source link

User Model Type not used #27

Closed Downsite closed 3 months ago

Downsite commented 3 months ago

Some of my models might contain the "abs" function. Before, GAMS would complain that I did not specify "DNLP", so I would just set the model type to "MINLP" (since I want to solve with Baron anyways).

set_optimizer_attribute(model, GAMS.ModelType(), "MINLP")

In the latest 0.4.3 version, this still worked, but it seems to be ignored in the 0.5 versions. Thus, even after setting the problem type as shown above, "NLP" is written to the .gms file.

renkekuhlmann commented 3 months ago

Sorry for this. I can reproduce the issue and will fix it very soon.

renkekuhlmann commented 3 months ago

Fixed with v0.5.2. Hope that all the bugs from the refactor for the ScalarNonlinearFunctions are resolved and your code is running again! :-)