Skip to main content

SetObjectiveN() both tolerances required?

Answered

Comments

4 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • Simranjit Kaur
    • Gurobi Staff

    In GRBModel.SetObjectiveN(), abstol initialises the ObjNAbsTol attribute for the objective. You can set it to its default value of 1e-6.

    0
  • Michael Hölscher
    • Gurobi-versary
    • First Comment
    • First Question

    Thanks for the quick reply. But isnt that restricting the objective to the optimal value that has been found, if I set the absolute tolerance to basically zero (even if i have for example 0.2 for the reltol parameter) or am I missing something? 

    0
  • Simranjit Kaur
    • Gurobi Staff

    In multi-objective models, the tolerance by which a higher-priority objective can be degraded is mainly defined by the parameters MIPGap and MIPGapAbs. The ObjNxxxTol attributes are only used to further relax the degradation for an objective. For more details, please refer to our documentation on Working With Multiple Objectives, specifically the subsection "Allowing Multiple-Objective Degradation".

    0

Post is closed for comments.