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

Incorrect Result for single variable problem

回答済み

コメント

3件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three 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 why not try our AI Gurobot?.
  • Silke Horn
    • Gurobi Staff

    By default, all variables have a lower bound of 0. You should change the definition of y as follows:

    y = m.addVar(lb=-gp.GRB.INFINITY, name = 'y')
    1
  • Varun Deshpande
    • Gurobi-versary
    • First Question
    • First Comment

    Worked. Thanks!!

    0

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