[gecode-users] BAB Search Stats

Christian Schulte cschulte at kth.se
Sun Feb 18 16:55:07 CET 2018


Hi, I think you need to be more specific here. “Issue” as a description is not enough. Best Christian

--
Christian Schulte, https://chschulte.github.io/
Professor of Computer Science, KTH, cschulte at kth.se<mailto:cschulte at kth.se>
Expert Researcher, RISE SICS, christian.schulte at ri.se<mailto:christian.schulte at ri.se>

From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf Of Assia benziane
Sent: 16 February 2018 22:25
To: users at gecode.org
Subject: [gecode-users] BAB Search Stats


Hello,



I'm using a BAB search. I'm using this function to dispaly the stats:

------------------------------------------------------------------------------------------------
void printStatsGecode(const Gecode::Search::Statistics& stat) {
std::cout << "Search Statistics" << std::endl;
std::cout << "  Propagations: " << stat.propagate << std::endl;
std::cout << "  Nodes:        " << stat.node << std::endl;
std::cout << "  Failures:     " << stat.fail << std::endl;
std::cout << "  Depth:        " << stat.depth << std::endl;
//std::cout << "  Time:        " <<  stat.time() << std::endl;
std::cout << std::endl;
cout << endl;
}
-----------------------------------------------------------------------------------------------



My problem is that i can not display the running time. There is an issue with the methode time().



Could anyone help me to display the running time??



Cheers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20180218/731308bd/attachment.html>


More information about the users mailing list