Skip to main content

model.setObjectiveN()

Answered

Comments

2 comments

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

Please sign in to leave a comment.