I'm beginner in constraint programming and I'm using Google or-tools library
var solver = new Solver("My_CP_Colver");
var t1 = solver.MakeIntVar(12, 20,"t1");
var t2 = solver.MakeIntVar(12, 20,"t2");
solver.Add(???)//<- ((12 <= t1 <= 15) || (16<= t2 <= 18)) && ( t1 + t2 ) < 30
Any help to make above constraint please?
--
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.
I'm beginner in constraint programming and I'm using Google or-tools library
I have a scheduling problem and I want to add following constraint to my solver:((12 <= t1 <= 15) || (16<= t2 <= 18)) && ( t1 + t2 ) < 30So I write following piece of code in c#:
var solver = new Solver("My_CP_Colver");
var t1 = solver.MakeIntVar(12, 20,"t1");
var t2 = solver.MakeIntVar(12, 20,"t2");
solver.Add(???)//<- ((12 <= t1 <= 15) || (16<= t2 <= 18)) && ( t1 + t2 ) < 30
Any help to make above constraint please?