Skip to main content

Function addGenConstrLog buggy

Answered

Comments

2 comments

  • 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

Please sign in to leave a comment.