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

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

回答済み

コメント

3件のコメント

  • 正式なコメント
    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.
  • Riley Clement
    • 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
    • Gurobi-versary
    • First Comment
    • First Question

    Hi Riley,

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

    - Tong 

    0

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