We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 697be6b + 4e2b836 commit cea201bCopy full SHA for cea201b
src/MOI_wrapper/results.jl
@@ -51,14 +51,14 @@ end
51
function assert_stage(o::Optimizer, stages)
52
stage = SCIPgetStage(o)
53
if !(stage in stages)
54
- error("SCIP is wrong stage ($stage, need $stages), can not query results!")
+ error("SCIP is wrong stage ($stage, need $stages)!")
55
end
56
57
58
"Make sure that the problem was solved (SCIP is in SOLVED stage)."
59
function assert_solved(o::Optimizer)
60
# SCIP's stage is SOLVING when stopped by user limit!
61
- assert_stage(o, (SCIP_STAGE_SOLVING, SCIP_STAGE_SOLVED))
+ assert_stage(o, (SCIP_STAGE_PRESOLVING, SCIP_STAGE_SOLVING, SCIP_STAGE_SOLVED))
62
63
# Check for invalid status (when stage is SOLVING).
64
status = SCIPgetStatus(o)
0 commit comments