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

Gurobi fails to find feasible solutions for a simple optimization problem with sin function

回答済み

コメント

2件のコメント

  • Riley Clement
    • Gurobi Staff Gurobi Staff

    Hi Tong,

    Gurobi variables have a default lower bound of 0.  If you want x to be able to take negative values you will need to specify a lower bound when creating the variables.

    - Riley

    0
  • Tong Han
    • First Comment
    • Gurobi-versary
    • First Question

    Hi Riley,

    I got the right result after adding bounds for both x and y. Thanks so much. 

    - Tong 

    0

サインインしてコメントを残してください。