It could be interesting to have the two class. I will try to create a FloatMaximizeSpace class based on MaximizeSpace. I send you the code.
Le 07/04/13 19:57, Christian Schulte a écrit : > Hi, > > Right now there is now predefined class to do that. But it is > straightforward to implement it yourself: have a look at gecode/minimodel.hh > and gecode/minimodel/optimize.hpp. > > Do you think it would be worth to have a IntMaximizeSpace and > FloatMaximizeSpace? I could add that for the next release. > > Cheers > Christian > > -- > Christian Schulte, www.ict.kth.se/~cschulte/ > > >> -----Original Message----- >> From: users-boun...@gecode.org [mailto:users-boun...@gecode.org] On >> Behalf Of Pascal Francq (Mailing lists) >> Sent: Friday, April 05, 2013 4:03 PM >> To: users@gecode.org >> Subject: [gecode-users] MaximizeSpace and FloatVar >> >> Hi, >> How can I, with gecode 4.0.0, use a MaximizeSpace where the variable to >> maximize in s FloatVar. The problem is that the method cost() returns an > IntVar. >> Thanks. >> -- >> Dr. Pascal Francq >> Belgium >> >> _______________________________________________ >> Gecode users mailing list >> users@gecode.org >> https://www.gecode.org/mailman/listinfo/gecode-users > -- Dr. Pascal Francq Belgium _______________________________________________ Gecode users mailing list users@gecode.org https://www.gecode.org/mailman/listinfo/gecode-users