GAMS-dev / gams.jl

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

is it possible to access dual/marginal variables #3

Closed Jovansam closed 3 years ago

Jovansam commented 3 years ago

I was trying to access a dual variable by way of JuMP.dual(x). I could not and got the following.

ModelLike of type GAMS.Optimizer does not support accessing the attribute MathOptInterface.NLPBlockDual(1)

renkekuhlmann commented 3 years ago

I can confirm the bug. I'll work on a fix.

renkekuhlmann commented 3 years ago

I added support for MOI.NLPBlockDual on the master branch. I'll release a fixed version later. In the meantime, you may want to test with the master branch. Thanks for submitting the issue!