[Coin-discuss] some information about Cbc

Benoît MERLET benoit.merlet at orange-ft.com
Wed Aug 2 11:01:42 EDT 2006


> Benoît,
> 
> Part of the problem could be basis handling.  The actual copying of the
> solver should not take much time but the way you are doing it you are
> losing the optimal basis.
> 
> I would replace the loadProblem by
> 
> OsiSolverInterface * osiSolver = si.clone();  which keeps basis
> information.
> 
> Then if you need an OsiClpSolverInterface do a dynamic cast.
> 
> See if that helps.  If not I may have one more suggestion but that is the
> simplest.
> 
> John Forrest

John,

Thank you for your first suggestion !

Here are the result of the command `time' on the executable.

   * with the loadProblem :

422.95user 48.57system 8:02.77elapsed 97%CPU (0avgtext+0avgdata 
0maxresident)k
0inputs+0outputs (4major+2984823minor)pagefaults 0swaps

   * with the clone :

372.24user 62.17system 7:47.75elapsed 92%CPU (0avgtext+0avgdata 
0maxresident)k
0inputs+0outputs (673major+4512987minor)pagefaults 0swaps

The result is a gain of 50 seconds of execution time, ie 12%.

I'm curious to know your other suggestion. :)

Benoît.





More information about the Coin-discuss mailing list