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

Why is the variable free shown in the ilp file even though I've already set the ub/lb or value in the model?

回答済み

コメント

5件のコメント

  • 正式なコメント
    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 Yi,

    If a variable appears as free in the IIS but you originally set it to have some bounds, this means that the bound of the variable does not participate in the IIS, in other words, the bound of the variable does not contribute to the infeasibility of the IIS that you obtained. 

    From the code you showed, it looks like you set the bounds correctly. You can check this by writing your model, for example as an LP file.

    Elisabeth

    0
  • Yi Ting Lin
    • Gurobi-versary
    • Conversationalist
    • Curious

    Hi Elisabeth,

    Thanks for your prompt reply.

    If I understand you right, line 197 from the results of the IIS:

    -infinity<=Onset_of_green_phase[5,LT,under] <=180

    and from the model, I have an lb=0 for theta. Does this mean that the lower bound of this variable does not contribute to the infeasibility?

     

    Thank you.

    0
  • Riley Clement
    • Gurobi Staff

    Hi Yi,

    Your understanding is correct.

    - Riley

    0
  • Yi Ting Lin
    • Gurobi-versary
    • Conversationalist
    • Curious

    Hi Riley,

    Great! Thank you so much.

    Yi-Ting

    0

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