Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
trac #28689: fix type issue with get_objective_value
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoudert committed Nov 4, 2019
1 parent 323daa9 commit 0bbdca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/numerical/backends/coin_backend.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ cdef class CoinBackend(GenericBackend):
sage: p.get_variable_value(1) # optional - cbc
1.5
"""
return self.model.solver().getObjValue() + self.obj_constant_term
return self.model.solver().getObjValue() + <double>self.obj_constant_term

cpdef get_variable_value(self, int variable):
r"""
Expand Down

0 comments on commit 0bbdca8

Please sign in to comment.