Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/MOI_wrapper/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,14 @@ function MOI.optimize!(
dest.sol.slack;
options...,
)
# If the solution is an infeasibility certificate, the objective values are
# left as infinite, not the value corresponding to the ray.
if !isfinite(sol.info.dobj)
sol.info.dobj = -Ab.constants' * sol.y
end
if !isfinite(sol.info.pobj)
sol.info.pobj = c' * sol.x
end
dest.sol = MOISolution(
sol.x,
sol.y,
Expand Down