メインコンテンツへスキップ

Multiobjective difference index and priority

回答済み

コメント

5件のコメント

  • 正式なコメント
    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.
  • Matthias Miltenberger
    • Gurobi Staff

    Hi Florian,

    Here's the relevant part from our documentation:

    Objectives are numbered 0 through NumObj-1. The order of the objectives is arbitrary, but you must provide a unique index for each one (specified using the index argument to setObjectiveN).

    Using the same priority will blend the objectives using the given weights.

    I hope that answers your question.

    Cheers,
    Matthias

    0
  • Ronald van der Velden
    • Gurobi Staff

    In addition to the above - to answer your last question explicitly: No, that approach won't work since both parts of the objective use the same index 0. If they would use a different index (0, 1) for each expression but the same priority 0 and weight 1 then you would be optimizing x+y. If you would use different index (0, 1) and different priority (0, 1) then Gurobi would first optimize y (highest priority), then add a bound on that objective y and optimize for objective x.

    Kind regards,
    Ronald

    0
  • Florian Speicher
    • Gurobi-versary
    • First Question
    • First Comment

    Thanks for your answers. Can I also do the following.

    setObjectiveN ( x, 0, 0, weight=1, abstol=1e-6, reltol=0, name="" )

    setObjectiveN ( y, 1, 1, weight=1, abstol=1e-6, reltol=0, name="" )

    Which means first min x than min y. Can I also say only optimize objective with prio 0 for 10 seconds. Then take this as best value (add as constraint) and go to objective with prio 1....

    0
  • Matthias Miltenberger
    • Gurobi Staff

    Please see here for objective-wise termination criteria: How do I set termination criteria in multi-objective environments? – Gurobi Help Center

    Cheers,
    Matthias

    0

投稿コメントは受け付けていません。