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

What is the difference between MIPSOL_OBJ and MIPSOL_OBJBST

回答済み

コメント

1件のコメント

  • Gurobot (AI-generated response)
    Gurobi Staff Gurobi Staff

    In Gurobi's callback mechanism, MIPSOL_OBJ and MIPSOL_OBJBST are two different attributes that you can query when you receive a MIPSOL (solution) callback. Here’s what each one represents:

    1. MIPSOL_OBJ: This attribute provides the objective value of the new integer feasible solution found by Gurobi. It gives you the actual objective value of the current solution that triggered the MIPSOL callback.

    2. MIPSOL_OBJBST: This attribute represents the best objective value of any integer feasible solution found so far during the optimization process. Essentially, it's the objective value of the best solution found up to the point of the current callback.

    The key difference is that MIPSOL_OBJ refers to the objective value of the current solution being considered in the callback, whereas MIPSOL_OBJBST refers to the best (lowest or highest depending on the optimization sense) objective value found across all solutions up to that point in the optimization.

    0

サインインしてコメントを残してください。