Hi Guido, Appreciate for the prompt reply! I am already using c_d to max with no a_d. Isn't that good for max memory utilization (though it is bad for processing time)? Or do you suggest something else?
opt.c_d(20000000); // computation distance //opt.a_d(1000); // adaptive computation distance Thanks, Ashis -----Original Message----- From: Guido Tack [mailto:[email protected]] Sent: Thursday, April 08, 2010 4:19 PM To: Maity, Ashis K Cc: [email protected] Subject: Re: [gecode-users] Stopping Gecode Engine gracefully Hi, you can implement your own Stop object by inheriting from Search::Stop. If you add it to the options of your search engine, the engine periodically calls its stop function. Simply return true there to stop the search. Gecode will always use all the heap it can get if it needs it, the limits in memory-config.hpp only affect in what chunks heap memory is allocated. If you have memory problems, you should try different recomputation parameters (parameters c_d and a_d in the search options). Cheers, Guido Maity, Ashis K wrote: > Hello, > > How do I stop the Gecode engine gracefully at any time (driven by user's > request) when I start it the following way? I know it can be stopped by > setting time limit, node limit etc. But I want to stop engine at any time and > collect the result until that point. Do I overload the run method to get > access to Engine or is there another way? > > MinimizeScript::run<Scheduler, BAB, > SchedulerOptions>(opt); (Scheduler inherits MinimizeScript) > > Also, I am running into memory trouble as heap memory is getting exhausted. > Would increasing the heap size through memory-config.hpp help? > > Thanks so much, > > Ashis > > _______________________________________________ > Gecode users mailing list > [email protected] > https://www.gecode.org/mailman/listinfo/gecode-users -- Guido Tack, http://people.cs.kuleuven.be/~guido.tack/ _______________________________________________ Gecode users mailing list [email protected] https://www.gecode.org/mailman/listinfo/gecode-users
