From dd9d12152dabbae1d92f4d2a7a8f3a2ac0328794 Mon Sep 17 00:00:00 2001 From: Robert Schwarz Date: Mon, 2 Sep 2019 22:29:14 +0200 Subject: [PATCH] fix assert_solved - use `SCIPgetStatus` instead of `SCIPgetStage` - use tuple of stages instead of array (avoid alloc) --- src/MOI_wrapper/results.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MOI_wrapper/results.jl b/src/MOI_wrapper/results.jl index c82e07f9..4ef162bb 100644 --- a/src/MOI_wrapper/results.jl +++ b/src/MOI_wrapper/results.jl @@ -50,10 +50,10 @@ end "Make sure that the problem was solved (SCIP is in SOLVED stage)." function assert_solved(o::Optimizer) # SCIP's stage is SOLVING when stopped by user limit! - assert_stage(o, [SCIP_STAGE_SOLVING, SCIP_STAGE_SOLVED]) + assert_stage(o, (SCIP_STAGE_SOLVING, SCIP_STAGE_SOLVED)) # Check for invalid status (when stage is SOLVING). - status = SCIPgetStage(o) + status = SCIPgetStatus(o) if status in (SCIP_STATUS_UNKNOWN, SCIP_STATUS_USERINTERRUPT, SCIP_STATUS_TERMINATE)