[Cbc] Stopping with current best solution

Rolf Steenge rolf.steenge at planet.nl
Mon Aug 6 11:01:37 EDT 2007


Hi,

 

I would like the user to decide to stop the mip-optimization based on some
characteristics of the best integer solution so far.

Often solutions obtained in an early stage of the optimization are already
quite acceptable for the user.

 

What I do now is in CbcCompareUser::test:

 

// Test function key PF3 

If pressed: model->setMaximumSeconds(0.001);

 

And the optimization stops gracefully.

 

However if lots of cuts and heuristics are used the test function is not
called frequently and pressing PF3 is not noticed by the program.

 

Is it possible to define a frequently called hook in Coin where you can ask
for the best solution so far and can specify that the optimization should be
ended with the best solution?

 

Regards

Rolf Steenge

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/cbc/attachments/20070806/678ff150/attachment.html


More information about the Cbc mailing list