Skip to main content

model.setObjectiveN()

Answered

Comments

3 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.
  • Jaromił Najman
    • Gurobi Staff

    Then, is the following hierarchical multi-objective function going to minimize

    1*f_1 + 4*f_2 + 1*f_3 with the first priority for f_1, second priority for f_2, and third priority for f_3?

    As long as all priorities are different, Gurobi will not blend objectives, cf. Working With Multiple Objectives.

    For example, at i = 0, I am setting the objective function for f_1, and am I only allowing 5 percent from f_2? and f_2 only allows 5 percent for f_3?

    The reltol setting allows for an overall degradation of a given objective of at most reltol % over all subsequent optimizations, not only the the next optimization. So after solving f_1, f_2 could degrade f_1 by 1% and then f_3 could degrade f_1 by another 1%.

    Best regards, 
    Jaromił

    0
  • John Chu
    • Gurobi-versary
    • First Comment
    • First Question

    Thank you very much!

    0

Post is closed for comments.