Get the reduced cost
回答済みHello. How to get the reduced cost of the slack variable in the corresponding constraint when calling gurobi in python? Thank you.
-
You might be looking for the article What are Attributes? In particular, you are probably looking for the RC variable attribute.
0 -
Hello, the RC attribute in i query to gurobi may be what I need, but I haven't found the sample code of RC attribute. Could you show me a related example? Thank you very much.
0 -
Please check out this section of our documentation: Attribute Examples - Optimizer Reference Manual - Gurobi Optimization
0 -
I'm very sorry that I didn't find the relevant example. Could you help me show an example of RC attribute?
0 -
The RC attribute is a variable attribute, i.e., it works the same way as, e.g., the LB attribute.
for v in model.getVars(): print(v.RC)
0 -
Hello, I put the above code into my code, but there is a bug. What is the reason?
0 -
The screenshot you provided is unfortunately not enough to understand the issue. Please provide a minimal reproducible example.
0 -
How can I get the RC value mentioned in the figure below, where X and H are variables?
0 -
Please refer to my comment in your other post.
0 -
Thank you very much for your help.
0
サインインしてコメントを残してください。
コメント
10件のコメント