Skip to main content

Is there an upper bound for the variable in 'addGenConstrPow()' ?

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff 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 why not try our AI Gurobot?.
  • Alison Cozad
    • Gurobi Staff Gurobi Staff

    You are correct, there is an upper limit placed on \(y\).  According to the General Constraint documentation,

    For some of the supported functions, modest  values can lead to enormous  values (and vice-versa). This can cause numerical issues when solving the resulting piecewise-linear MIP model. To avoid such issues, we limit the range of any x or y that participates in a function constraint to [-1e+6, 1e+6]. The parameter FuncMaxVal allows you to change these limits, but we recommend that you proceed with caution.

    Therefore, you can simply change this value using the FuncMaxVal parameter.  However, as the documentation notes, such large numbers can lead to numerical issues.  You can learn more about numerical instability in the Guidelines for Numerical Issues.

     

    0
  • chi hsuan lin
    • Gurobi-versary
    • First Question
    • First Comment

    I've changed the parameter successfully! Thanks for your help!

    Best,

    Lin

    0

Post is closed for comments.