[gecode-users] how to use the bab() function
Guido Tack
tack at gecode.org
Wed Dec 4 07:38:22 CET 2013
You can use the Timer class in Support, it works something like this:
Support::Timer timer;
timer.start();
SendMostMoney* m = new SendMostMoney(opt);
if (SendMostMoney* s = bab(m)) {
s->print(); delete s; //Or whatever
}
cout << t.stop() / 1000.0 << " seconds";
Cheers,
Guido
On 4 Dec 2013, at 4:36 pm, lana light <lanalight1989 at gmail.com> wrote:
> Thank you very much that really saved me
>
> sorry to bother you but i have another question :
>
> i want to have in the console the runtime so i did this :
>
> Options opt("MMKP");
> opt.parse(argc,argv);
> //Script::run<SendMostMoney,BAB,Options>(opt);/// i think if i use this i can have the runtime but like this it //////////wouldn't work
> SendMostMoney* m = new SendMostMoney(opt);
> if (SendMostMoney* s = bab(m)) {
> s->print(); delete s; //Or whatever
> }
>
> So how can i use the bab function and get the runtime (Summary) in the some time ???
>
>
> Thank you for your help
> _______________________________________________
> Gecode users mailing list
> users at gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20131204/a19b612a/attachment.html>
More information about the users
mailing list