Skip to main content

I add constraint with '>=' but in the model it is <= 0

Ongoing

Comments

3 comments

  • David Torres Sanchez
    Gurobi Staff Gurobi Staff

    Hi Zichun,

    Are the constraints the same?
    Terms are sometimes re-arranged for an equivalent constraint.

    Cheers, 
    David

    0
  • Sian Hallsworth
    First Comment

    Hi, I experience the same issue for example:

    Constraint

    x_Block.x_constraints.add( expr= x_Block.weight[h, n, n2] >= 0)

    Computed IIS with flipped inequality sign in constraint

    Minimize
     
    Subject To
     R6193:
     x_Block.weight[3,0.0666740748972108,0.0666740748972108]
     <= 0
    Bounds
    x_Block.weight[3,0.0666740748972108,0.0666740748972108] >= 0.0113540901668842
    End
     
     
    0
  • Riley Clement
    Gurobi Staff Gurobi Staff

    Hi Sian,

    Can you write out the LP file and find constraint R6193?

    - Riley

    0

Please sign in to leave a comment.