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 <[EMAIL PROTECTED]> 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
[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

Reply via email to