Skip to content

Commit

Permalink
Fix objective value in COPT
Browse files Browse the repository at this point in the history
  • Loading branch information
metab0t committed Jan 2, 2025
1 parent 96bd866 commit f66e78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyoptinterface/_src/copt.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def get_objsense(model):

def get_objval(model):
if model._is_mip():
attr_name = "BestBnd"
attr_name = "BestObj"
else:
attr_name = "LpObjval"
obj = model.get_raw_attribute_double(attr_name)
Expand Down

0 comments on commit f66e78a

Please sign in to comment.