Skip to main content

Usage of variables

Answered

Comments

2 comments

  • Official comment
    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 why not try our AI Gurobot?.
  • Jaromił Najman
    • Gurobi Staff

    Hi İrem,

    Gurobi currently does not support nonlinear expressions other than bilinear multiplication and square terms. This means that you cannot construct a term \(\exp(x)\) where \(x\) is an optimization variable.

    You can use a piecewise-linear approximation to model the \(\exp\) function. For more information, please refer to the documentation of the addGenConstrXxx functions and the documentation of general constraints.

    Best regards,
    Jaromił

    0

Post is closed for comments.