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

Gurobi/python: infeasible model

回答済み

コメント

5件のコメント

  • 正式なコメント
    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?.
  • Sonja Mars
    • Gurobi Staff

    Hi Sabrin,

    I would take a look at fr and print out if this dictionary looks like expected. 

    Best,

      Sonja

    0
  • Sabrin Rashwan
    • Gurobi-versary
    • Conversationalist
    • Investigator

    Sonja, thanks a lot for your prompt reply. I have printed out the fr, constraint 6 and constraint 7. The output seems acceptable and the constraints correctly captured the required nodes. However, the code I wrote returns back an infeasible model message.

    I really need urgent help!!!!!!!!!!!!!!!! please. I do not know why the model is infeasible and what is wrong. I can share the whole code along with the model itself which is published in a reliable journal. 

    I feel it is a trivial issue that can be captured quickly if I shared the whole code, but it should not be publicly.  

    0
  • Sonja Mars
    • Gurobi Staff

    Hi Sabrin,

    From this post it seems you got it working now. Can you share what you did for solving it?

    Thanks,

      Sonja

    0
  • Sabrin Rashwan
    • Gurobi-versary
    • Conversationalist
    • Investigator

    Hi Sonja, the infeasibility was due unreasonable quantity of a particular parameter (input data). This is how I thought to catch the error: after employing  m.computeIIS() and m.write("irreducible.ilp"), it has become clear for me the constraints contributing to the infeasibility. I revised and studied them carefully and with little logic and thinking I realized that the infeasibility was due unlogic quantity of a specific parameter.

     

    Now the model is working but takes a too long time. To solve it faster, I am going to implement three different techniques ( arc elimination, subtour elimination, and variable substitution). These will be challenges that I should face,  it is my first model to solve!!

    Regards,

    Sabreen

    0

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