Skip to content

Commit f66e78a

Browse files
committed
Fix objective value in COPT
1 parent 96bd866 commit f66e78a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pyoptinterface/_src/copt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def get_objsense(model):
132132

133133
def get_objval(model):
134134
if model._is_mip():
135-
attr_name = "BestBnd"
135+
attr_name = "BestObj"
136136
else:
137137
attr_name = "LpObjval"
138138
obj = model.get_raw_attribute_double(attr_name)

0 commit comments

Comments
 (0)