Skip to content

Commit 3b8f5a7

Browse files
committed
Merge remote-tracking branch 'origin/v10-minor'
2 parents c4f41cc + 2555013 commit 3b8f5a7

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

src/scip/benders.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2086,7 +2086,7 @@ SCIP_RETCODE createSubproblems(
20862086

20872087
if( objchanged )
20882088
{
2089-
SCIPverbMessage(subproblem, SCIP_VERBLEVEL_HIGH, NULL, "Benders' decomposition: Objective coefficients of "
2089+
SCIPverbMessage(subproblem, SCIP_VERBLEVEL_FULL, NULL, "Benders' decomposition: Objective coefficients of "
20902090
"copy of master problem variables in a subproblem have been changed to zero.\n");
20912091
}
20922092
}

src/scip/benderscut_int.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
#include "scip/scip_param.h"
5151
#include "scip/scip_prob.h"
5252
#include "scip/scip_sol.h"
53+
#include "scip/type_message.h"
5354
#include <string.h>
5455

5556
#define BENDERSCUT_NAME "integer"
@@ -599,8 +600,8 @@ SCIP_DECL_BENDERSCUTEXEC(benderscutExecInt)
599600
/* it is only possible to generate the Laporte and Louveaux cuts when the linking variables are all binary */
600601
if( !benderscutdata->subprobsvalid )
601602
{
602-
SCIPinfoMessage(scip, NULL, "The integer optimality cuts can only be applied to problems "
603-
"where all linking variables are binary. The integer optimality cuts will be disabled.\n");
603+
SCIPwarningMessage(scip, "The integer optimality cuts have been disabled because some linking variables are not binary.\n"
604+
"Since there is at least one non-convex subproblem, i.e. not LP or convex NLP, the problem will be solved heuristically.\n");
604605

605606
SCIPbenderscutSetEnabled(benderscut, FALSE);
606607

src/scip/benderscut_nogood.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#include "scip/scip_param.h"
5050
#include "scip/scip_prob.h"
5151
#include "scip/scip_sol.h"
52+
#include "scip/type_message.h"
5253
#include <string.h>
5354

5455
#define BENDERSCUT_NAME "nogood"
@@ -376,8 +377,8 @@ SCIP_DECL_BENDERSCUTEXEC(benderscutExecNogood)
376377
/* it is only possible to generate nogood cuts if all linking variables are binary */
377378
if( !benderscutdata->subprobsvalid )
378379
{
379-
SCIPinfoMessage(scip, NULL, "The nogood cuts can only be applied to problems "
380-
"where all linking variables are binary. The nogood cuts will be disabled.\n");
380+
SCIPwarningMessage(scip, "The nogood cuts have been disabled because some linking variables are not binary.\n"
381+
"Since there is at least one non-convex subproblem, i.e. not LP or convex NLP, the problem will be solved heuristically.\n");
381382

382383
SCIPbenderscutSetEnabled(benderscut, FALSE);
383384

src/scip/relax_benders.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -900,18 +900,15 @@ SCIP_DECL_RELAXEXEC(relaxExecBenders)
900900
masterstatus = SCIPgetStatus(relaxdata->masterprob);
901901

902902
SCIPverbMessage(scip, SCIP_VERBLEVEL_NORMAL, NULL,
903-
"\nBenders' decomposition solve has completed with status %s.", SCIPstatusName(masterstatus));
903+
"\nBenders' decomposition solve has completed.\n\n");
904904

905905
/* if the problem is solved to be infeasible, then the result needs to be set to CUTOFF. */
906906
if( masterstatus == SCIP_STATUS_INFEASIBLE )
907907
{
908-
SCIPverbMessage(scip, SCIP_VERBLEVEL_NORMAL, NULL, "\n\n");
909908
(*result) = SCIP_CUTOFF;
910909
return SCIP_OKAY;
911910
}
912911

913-
SCIPverbMessage(scip, SCIP_VERBLEVEL_NORMAL, NULL, " Copying the solution to the original problem variables\n\n");
914-
915912
/* a solution for the original SCIP needs to be created. This will transfer the best found solution from the
916913
* Benders decomposition solve back to the original SCIP instance.
917914
*/

0 commit comments

Comments
 (0)