[gecode-users] MaximizeSpace and FloatVar

Pascal Francq (Mailing lists) mailing-list at francq.info
Sun Apr 7 23:19:58 CEST 2013


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-bounces at gecode.org [mailto:users-bounces at gecode.org] On
>> Behalf Of Pascal Francq (Mailing lists)
>> Sent: Friday, April 05, 2013 4:03 PM
>> To: users at 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 at gecode.org
>> https://www.gecode.org/mailman/listinfo/gecode-users
> 


-- 
Dr. Pascal Francq
Belgium



More information about the users mailing list