From b9a1f09467ee2cea426c2d6e4b2c032456f43a36 Mon Sep 17 00:00:00 2001 From: Stefan Vigerske Date: Tue, 19 Sep 2023 15:41:10 +0200 Subject: [PATCH] copy quiet flag into solverscip of concurrent opt - for scipopt/scip#61 --- CHANGELOG | 1 + src/scip/concsolver_scip.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index e67c8b5300..346ea76a0a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -26,6 +26,7 @@ Fixed bugs - delay removal of clique lists from SCIPvarRemoveCliquesImplicsVbs() into cliqueCleanup() to avoid segmentation faults by incomplete cleanups after variable conversions - reject sub-solutions with invalid objectives in SCIPtranslateSubSols() due to contradicting infinite contributions - correct column index in getMinMaxActivityResiduals() to make presolver dualinfer work +- copy quiet flag from main scip's message handler to the one of solverscip in concurrent optimization @section RN804 SCIP 8.0.4 ************************* diff --git a/src/scip/concsolver_scip.c b/src/scip/concsolver_scip.c index e8145ab5bf..8c42305361 100644 --- a/src/scip/concsolver_scip.c +++ b/src/scip/concsolver_scip.c @@ -272,6 +272,7 @@ SCIP_RETCODE initConcsolver( /* create the concurrent solver's SCIP instance and set up the problem */ SCIP_CALL( SCIPcreate(&data->solverscip) ); + SCIPsetMessagehdlrQuiet(data->solverscip, SCIPmessagehdlrIsQuiet(SCIPgetMessagehdlr(scip))); SCIP_CALL( SCIPhashmapCreate(&varmapfw, SCIPblkmem(data->solverscip), data->nvars) ); SCIP_CALL( SCIPcopy(scip, data->solverscip, varmapfw, NULL, SCIPconcsolverGetName(concsolver), TRUE, FALSE, FALSE, FALSE, &valid) );