[Cbc] cbc.setMaximumSavedSolutions

Matthew Galati matthew.galati at gmail.com
Sat Feb 25 15:13:39 EST 2017


It seems like setMaximumSavedSolutions is not honored. I set this to 1 and
I still got cbc.numberSavedSolutions=2.

I'm using CBC 2.9.4

Bug or feature?

  const char * argv[20];
   int   argc      = 0;
   string cbcExe   = "cbc";
   string cbcSolve = "-solve";
   string cbcQuit  = "-quit";
   string cbcLog   = "-log";
   string cbcLogSet= UtilIntToStr(debugLevelSolver);
   argv[argc++] = cbcExe.c_str();
   argv[argc++] = cbcLog.c_str();
   argv[argc++] = cbcLogSet.c_str();
   argv[argc++] = "-cuts";
   argv[argc++] = "off";
   argv[argc++] = "-heur";
   argv[argc++] = "off";
   argv[argc++] = cbcSolve.c_str();
   argv[argc++] = cbcQuit.c_str();
   CbcModel cbc(*osiClp);
   CbcMain0(cbc);
   //TODO: ask CBC list - this doesn't seem to be working
   cbc.setMaximumSavedSolutions(maxSavedSolutions);
   CbcMain1(argc, argv, cbc);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20170225/4ccacc6d/attachment.html>


More information about the Cbc mailing list