How to express the divisibility or the mod operator in a constraint in Gurobi

379 vistas
Ir al primer mensaje no leído

Huanfa Chen

no leída,
24 ago 2016, 4:22:45 p.m.24/8/16
para Gurobi Optimization
Hi all,

I am writing a constraint about mod: x + y is a multiple of 2, which can be represented using the mod operator.

Does anyone know how to implement this constraint? 

Thanks!


Renan Garcia

no leída,
24 ago 2016, 4:28:09 p.m.24/8/16
para gur...@googlegroups.com
You could use:

  x + y = 2z
  z integer

--

---
You received this message because you are subscribed to the Google Groups "Gurobi Optimization" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gurobi+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos