Skip to main content

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

Answered

Comments

2 comments

  • 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

Please sign in to leave a comment.