Can Gurobi return the value of constraints lambda?
AnsweredHi
I'm using Gurobi with Matlab now.
I'm solving a MILP problem (Unit commitment), and I made some constraints for it.
As you know, the lamda of the constraints means the price of the location (LMP),
so I tried to get the value of lambda. Unfortunately, I realized I don't know how to do it.
With linprog, a solver of Matlab, I can get the value of lambda easilly...
So I want to know the way of getting the value of Lambda.
Is there any codes or something else that can help me?
Thanks.
-
Official comment
This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
Hi,
I am no MATLAB user but I think what you are looking for is the Pi attribute of your constraints. You can access it via the result you get from the gurobi() function.
Please note that the Pi attribute is only available for linear programs. We discuss this in the Knowledge Base article How do I retrieve the (dual) Pi value for a MIP problem?
Best regards,
Jaromił0
Post is closed for comments.
Comments
2 comments