Skip to main content

How to handle constraints to the problem?

Awaiting user input

Comments

1 comment

  • Mario Ruthmair
    Gurobi Staff 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

Please sign in to leave a comment.