How to set the Method as a parameter
回答済みHello everyone,
I have an heuristic and i want to tell gurobi to solve this heuristic with broken variables only with the simplex or dual algorithm. I have searched the documentation and it says that there is a Method parameter and takes an integer but it does not work.
BTW, I do use java.
Best Regards
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 why not try our AI Gurobot?. -
Hi,
You should be able to set the Method parameter in Java via
model.set(GRB.IntParam.Method, 2 /*some integer {-1,0,1,2,3,4,5}*/ );
See the Lpmethod.java example. If this still does not work, could you please post a minimal working example reproducing your issue?
Best regards,
Jaromił0 -
Thank u so much Jaromil,
I guess that is exactly what I was searching for :).
0
投稿コメントは受け付けていません。
コメント
3件のコメント