The easiest way if you want to use the Script support, is to subclass the Options class with your particular data included. See the examples for details (e.g., car-sequencing.cpp) and Chapter 11 of Modeling and Programming with Gecode..
Cheers, Mikael 2011/4/8 Changbin Liu <[email protected]> > Hi, Folks > > I am trying to run Gecode solver using code like: > > *Script::run<SendMostMoney,BAB,Options>(opt);* > > This is from one example in the documentation. In this code, it is assumed > that solver SendMoreMoney is constructed based on the only parameter Option > "opt". > > Here come the problem: what if my customized solver needs more parameters > for constructor beside Option "opt"? How should I modify above code to run > the solver? > > Many thanks > > -- > -------------------------------------------- > Changbin Liu > Computer & Information Science Department > University of Pennsylvania > Philadelphia, PA > U.S. > > _______________________________________________ > Gecode users mailing list > [email protected] > https://www.gecode.org/mailman/listinfo/gecode-users > > -- Mikael Zayenz Lagerkvist, http://www.ict.kth.se/~zayenz/
_______________________________________________ Gecode users mailing list [email protected] https://www.gecode.org/mailman/listinfo/gecode-users
