Skip to content

Commit ce963bd

Browse files
authored
Change DualObjectiveValue to use Utilities.get_fallback (#626)
1 parent ce92e06 commit ce963bd

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/MOI_wrapper/MOI_wrapper.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3369,13 +3369,7 @@ end
33693369
function MOI.get(model::Optimizer, attr::MOI.DualObjectiveValue)
33703370
_throw_if_optimize_in_progress(model, attr)
33713371
MOI.check_result_index_bounds(model, attr)
3372-
if model.has_infeasibility_cert
3373-
return MOI.Utilities.get_fallback(model, attr, Float64)
3374-
end
3375-
valueP = Ref{Cdouble}()
3376-
ret = GRBgetdblattr(model, "ObjBound", valueP)
3377-
_check_ret(model, ret)
3378-
return valueP[]
3372+
return MOI.Utilities.get_fallback(model, attr, Float64)
33793373
end
33803374

33813375
function MOI.get(model::Optimizer, attr::MOI.ResultCount)::Int

0 commit comments

Comments
 (0)