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

Formulate constraints "<" ">"

回答済み

コメント

4件のコメント

  • 正式なコメント
    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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • David Torres Sanchez
    • Gurobi Staff

    Hi Moe,

    You're on the right track. Adding a small constant is the best way of doing this.
    Please see this article on strict inequalities.

    Cheers,
    David

    1
  • Moe
    • Gurobi-versary
    • First Comment
    • First Question

    Hi David,

    thanks for the answer. What is the smallest number that makes sense in this case?

    Moe

    0
  • David Torres Sanchez
    • Gurobi Staff

    Hi Moe,

    I think any value greater than than FeasiblityTol (tolerance for constraints) makes sense to me: i.e. anything \(>\texttt{1.0e-6}\), otherwise equality will be accepted as a feasible constraint. But I'd try some different values to see what works best for your application.

    Cheers, 
    David

    0

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