Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Fix for infeasibility certificates #197

Merged
merged 1 commit into from
Nov 18, 2021
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
7 changes: 6 additions & 1 deletion src/MOI_wrapper/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1771,6 +1771,9 @@ function MOI.get(
)
_throw_if_optimize_in_progress(model, attr)
MOI.check_result_index_bounds(model, attr)
if model.unbounded_ray !== nothing
return MOI.Utilities.get_fallback(model, attr, c)
end
return _get_row_primal(model, _info(model, c).row)
end

Expand Down Expand Up @@ -1900,7 +1903,9 @@ end
function MOI.get(model::Optimizer, attr::MOI.ObjectiveValue)
_throw_if_optimize_in_progress(model, attr)
MOI.check_result_index_bounds(model, attr)
if model.last_solved_by_mip
if model.unbounded_ray !== nothing
return MOI.Utilities.get_fallback(model, attr)
elseif model.last_solved_by_mip
return glp_mip_obj_val(model)
elseif model.method == SIMPLEX || model.method == EXACT
return glp_get_obj_val(model)
Expand Down