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

Question in gurobi

回答済み

コメント

3件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    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.
  • Elisabeth Rodríguez Heck
    • Gurobi Staff

    Hi Kewei,

    It looks like you are calling Model.optimize() after computing the IIS, is this correct? This results in Status code 3 (infeasible) because the IIS is by definition an infeasible set of constraints. The IIS feature is meant to be used to write the IIS into a file using 

    model.write('iismodel.ilp')

    after computing it, and then inspecting the ILP file manually to understand why your model is infeasible. 

    You may find the article How do I use 'compute IIS' to find a subset of constraints that are causing model infeasibility? helpful. 

    Best regards,

    Elisabeth

    0
  • Kewei Fan
    • Gurobi-versary
    • First Question
    • Conversationalist

    Thank you very much for your answer

     

    0

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