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

How to handle constraints to the problem?

ユーザーの入力を待っています。

コメント

2件のコメント

  • 正式なコメント
    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.
  • Mario Ruthmair
    • Gurobi Staff

    Hi,

    It seems your status variable is a given list of constants, not a Gurobi variable, right?
    What exactly are model variables and what is given input data?
    It seems for example that diffCharge are model variables but then you state "status[n] == diffCharge[n]" which does not make sense for me. Could you clarify this?

    Additionally, if you have an infeasible model and do not know why, you could compute an IIS which is a subset of your constraints that form an infeasible system. This often helps to identify the issue.

    In your case you cannot retrieve the variable values since there is no solution, but in general it works as described in this article.

    Best regards,
    Mario

    0

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