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

Inconsistency between grb log file and model attributes

回答済み

コメント

1件のコメント

  • Charmae Franchesca Mendoza
    • Gurobi Staff

    Hi Mohammad,

    You can access the objective values as follows:

    for obj_index in range(model.numObj):
        model.params.ObjNumber = obj_index
        print(f"The value of the Objective Function {model.objNName} is: {model.objNVal}.")

    If you're using an older version of Gurobi, note that there is a known issue where the objective value may be reported incorrectly in the log file. This has been resolved in newer versions. You can find more details about the issue here.

    Kind regards,

    Charmae

    0

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