Skip to main content

Function addGenConstrLog buggy

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?.
  • Juan Orozco
    • Gurobi Staff Gurobi Staff

    Hi, Sam!

    We created a support ticket to investigate further. Thanks for bringing this to our attention.

    0
  • Juan Orozco
    • Gurobi Staff Gurobi Staff

    Dear Sam,

    The unexpected behavior you observed is the result of disabling presolve without providing a reasonable bound to x (in your example 0<=x<=+inf). Gurobi outputs good approximations for ln(x) when the upper bound of x is set to, for example, 1000.

    In any case, it's usually a good idea to keep the presolve on when having PWL approximators such as model.addGenConstrLog(), as it can strengthen bounds.

    I hope this information helps.

     

    0

Post is closed for comments.