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

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

ユーザーの入力を待っています。

コメント

4件のコメント

  • 正式なコメント
    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.
  • David Torres Sanchez
    • Gurobi Staff

    Hi Zichun,

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

    Cheers, 
    David

    0
  • Sian Hallsworth
    • Gurobi-versary
    • 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

    Hi Sian,

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

    - Riley

    0

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