[Cbc] Cbc Digest, Vol 75, Issue 7
John Forrest
john.forrest at fastercoin.com
Thu Aug 22 03:35:12 EDT 2013
Alexis,
getCurrentSeconds() returns time since CbcStartSeconds was set. If unset
then it is set when branchAndBound is entered. Otherwise it can be set by
model.setDblParam(CbcModel::CbcStartSeconds, currentTime);
In the stand-alone solver this normally happens when "solve" is found -
so time includes any preprocessing time.
Time is normally cpu time - but can be changed to be elapsed time by
model.setUseElapsedTime(true);
so if you had asked for elapsed time, you would initialize time by
model.setDblParam(CbcModel::CbcStartSeconds, CoinGetTimeOfDay());
John
On 21/08/13 19:23, Alexis wrote:
> Hi John
>
> Actually, what time does the function getCurrentSeconds() record?
>
> Thanks
>
>
>
More information about the Cbc
mailing list