Skip to content

Commit c448896

Browse files
committed
fix termination test as done in SCIPisStopped()
1 parent 2ce627c commit c448896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scip/syncstore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ SCIP_RETCODE SCIPsyncstoreFinishSync(
496496
{
497497
if( (*syncdata)->status != SCIP_STATUS_UNKNOWN ||
498498
(SCIPgetConcurrentGap(syncstore->mainscip) <= syncstore->limit_gap) ||
499-
(SCIPgetConcurrentPrimalbound(syncstore->mainscip) - SCIPgetConcurrentDualbound(syncstore->mainscip) <= syncstore->limit_absgap) )
499+
(SCIPgetNLimSolsFound(syncstore->mainscip) > 0 && SCIPgetConcurrentPrimalbound(syncstore->mainscip) - SCIPgetConcurrentDualbound(syncstore->mainscip) <= syncstore->limit_absgap) )
500500
SCIPsyncstoreSetSolveIsStopped(syncstore, TRUE);
501501

502502
syncstore->lastsync = *syncdata;

0 commit comments

Comments
 (0)