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

Usage of variables

回答済み

コメント

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 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

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