Skip to main content

How to include negative exponent in model

Awaiting user input

Comments

1 comment

  • Ryuta Tamura
    • Gurobi Staff Gurobi Staff

    Hi,

    addGenConstrPow(x, y, a) should accept a=-0.5 as an argument. But there are a few things to note.

    • If the exponent a is negative, the lower bound on x must be strictly positive.
    • If the exponent isn’t an integer, the lower bound on x must be non-negative.

    You can also use computeIIS() to see why it is Infeasible. Please see: How do I determine why my model is infeasible?

    Regards,
    Ryuta

    0

Please sign in to leave a comment.