Skip to main content

Exp(an equation)

Answered

Comments

2 comments

  • Riley Clement
    • Gurobi Staff Gurobi Staff

    Hi Hadi,

    If you create an auxiliary variable "reliab", (noting that default lower bound is 0, so change it if need be), add a constraint reliab == expr_reliab, then you can use

    GRBGenConstr test = model.addGenConstrExp(exp_lambda_decision, reliab, "exp_lambda", "test");  
    
    }

    Note, allowing expressions in the arguments is in our roadmap for development but as of right now this is how to do it.

    - Riley

    0
  • Hadi Askaripoor
    • Gurobi-versary
    • Conversationalist
    • First Question

    Dear Riley,

    Thanks for your reply!

    I will test it and get back to you.

    Best,

    Hadi

    0

Please sign in to leave a comment.