Skip to main content

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

Answered

Comments

4 comments

  • Elisabeth Rodríguez Heck
    Gurobi Staff 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 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

Please sign in to leave a comment.