Skip to content

Commit d2465a2

Browse files
committed
take out OsiRowCutDebugger unless CHECK_KNOWN_SOLUTION
1 parent 4641899 commit d2465a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Osi/OsiSolverInterface.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,9 +912,14 @@ OsiSolverInterface::getAuxiliaryInfo() const
912912

913913
void OsiSolverInterface::activateRowCutDebugger(const char *modelName)
914914
{
915+
#ifdef CHECK_KNOWN_SOLUTION
915916
delete rowCutDebugger_;
916917
rowCutDebugger_ = NULL; // so won't use in new
917918
rowCutDebugger_ = new OsiRowCutDebugger(*this, modelName);
919+
#else
920+
printf("To activate OsiRowCutDebugger - code must be compiled with CHECK_KNOWN_SOLUTION\n");
921+
exit(77);
922+
#endif
918923
}
919924
/* Activate debugger using full solution array.
920925
Only integer values need to be correct.

0 commit comments

Comments
 (0)