メインコンテンツへスキップ

How to set the Method as a parameter

回答済み

コメント

3件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    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?.
  • Jaromił Najman
    • Gurobi Staff

    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
  • MG
    • Gurobi-versary
    • First Comment
    • First Question

    Thank u so much Jaromil,

    I guess that is exactly what I was searching for :).

     

    0

投稿コメントは受け付けていません。