Update RHS in C API
回答済みHi I would like to update contraint's RHS several time with the same model.
I found ways to update RHS with Python and C#
but I don't find anything in C.
Can anyone help me, thank you!
0
-
正式なコメント
This post is more than three 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. -
You can use the GRBsetdblattrelement function to change the RHS of a particular constraint.
error = GRBsetdblattrelement(model, "RHS", 0, 10);
if (error) goto QUIT;The above would change the RHS of 0th constraint to \(10\).
You can also change the RHS of multiple constraints at once with the GRBsetdblattrarray function.
Best regards,
Jaromił0
投稿コメントは受け付けていません。
コメント
2件のコメント