--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
solve.Add(x[i] <= i+1)for i in range(nc):Hi Cathal.First, let me correct my original symmetry breaking. It should - of course - be x[0] and x[1] (and not x[1] and x[2]):
solver.Add(x[0] == 1);
solver.Add(x[1] <= 2);
Sorry about that.The constraint scales, though it's only meaningful for the possible colors (in this model the domain is 1..nc):
However, in neither our models (with the small problem instance) it gives any improvement. Please try it out with your larger instances./Hakan
On Fri, Mar 14, 2014 at 10:35 PM, cathal coffey <coffey...@gmail.com> wrote:
Hi Hakan,thanks for your reply.Does the following strategy scale or does it only work for the first two nodes?solver.Add(x[1] == 1);
solver.Add(x[2] <= 2);
Is the following a generalization or are the above two statements enough for the general case?for i in range(node_count):solver.Add(x[1] == 1);solver.Add(x[i] <= i);
Kind regards,Cathal
--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/08a26d57-38bc-44ff-ba1e-381eee4e97dd%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/205bed55-2bc2-4f19-99a6-103d598f4cb7%40googlegroups.com.
for n in node_range: idx = node_connect_sort_idx[node_count - 1 - n] solver.Add(x[idx] <= n+1) for n in node_range: model.Add(x[n] <= n+1)To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/a23c85a8-d596-49f9-8199-2cd42e736783%40googlegroups.com.