Skip to main content

How is my model infeasible? The found IIS looks like 6 linear equations.

Answered

Comments

2 comments

  • Simon Bowly
    • Gurobi Staff Gurobi Staff

    Hi Jiří,

    Looking at the IIS you've posted, only the following variables are free (i.e. not constrained as non-negative):

     x_in[0] free
     x_in[3] free
     x_in[4] free
     x_in[6] free
     x_in[7] free

    In the LP file format, any variable without bounds listed is actually non-negative. So, the issue with the x_in[i] = 0, x0[i] = rhs[i] solution you propose is that since all x0 variables must be non-negative, it cannot satisfy the constraints for i = 0, 4, 6.

    You should check whether the bounds for these variables are correct in your original problem. In a neural network model, I would expect all variables need to be free?

    0
  • Jiří Němeček
    • Gurobi-versary
    • First Comment
    • First Question

    Hello Simon, thank you very much for your reply. Somehow I didn't realize that all variables have a default lower bound set to 0.

    You've helped me a lot. Setting the lower bound to -infinity made the variables free and the model feasible.

    0

Please sign in to leave a comment.