Skip to content

Commit

Permalink
Allow NEARLY_FEASIBLE_POINT as acceptable primal status in subproblem
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Aug 12, 2024
1 parent 1ca6346 commit 955be58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/optimize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,8 @@ function _solve_subproblem(model::Optimizer, comp::Function)
model.int_indices,
)
MOI.optimize!(model.cont_optimizer)
if MOI.get(model.cont_optimizer, MOI.PrimalStatus()) == MOI.FEASIBLE_POINT
primal_status = MOI.get(model.cont_optimizer, MOI.PrimalStatus())
if primal_status in (MOI.FEASIBLE_POINT, MOI.NEARLY_FEASIBLE_POINT)
# Subproblem is feasible, check if solution is new incumbent
nlp_objective_value =
MOI.get(model.cont_optimizer, MOI.ObjectiveValue())
Expand Down

0 comments on commit 955be58

Please sign in to comment.