How to find the lagrange multipliers of a problem in Gurobi + Matlab, is there any commands?

310 Views Asked by At

In LP or other kinds of programming, cvx + Matlab may get the lagrange multipliers with easy codes, but is there any commands for Gurobi to achieve things like this?

1

There are 1 best solutions below

1
On BEST ANSWER

With Gurobi's Matlab API, the optimization call will return a single data instance that contains all results from that optimization, including the dual values: Matlab API

You would need to inspect this returned data object to find the values you are looking for.