[gecode-users] Gecode
Mikael Zayenz Lagerkvist
zayenz at gmail.com
Mon May 14 16:51:57 CEST 2007
Hi,
While integer division and modulo is not available directly, please
remember that they can be rewritten using other constraints. If you
have two constraints
d = a/b
r = a%b
then these can be rewritten into the following constraint
a = d*b + r
which can be implemented with
t = d*b
a = t + r
Hope this helps,
Mikael
On 5/14/07, kemmar amina <kemmami at yahoo.fr> wrote:
> Hi,
> I am using GECODE in my project, I want to know if the arithmetic operators
> : division "/ " and modulo "%" exist in gecode. this information is very
> necesery for me. please help me. If they don't exist , what is the reason?
> thank you very much.
>
> ________________________________
> Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo!
> Mail
>
>
> _______________________________________________
> Gecode users mailing list
> users at gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users
>
>
--
Mikael Zayenz Lagerkvist, http://www.ict.kth.se/~zayenz/
More information about the gecode-users
mailing list