-
Of course. I should have done that to begin with, sorry.
2009-07-30 13:25:16 UTC in choco
-
Thanks!
2009-07-29 18:41:08 UTC in choco
-
The following code causes a solver exception that reads "cant initialize Alternative Edge finding TL Tree" in version 2.1.0 of choco.
model.addConstraint(Choco.eq(Choco.plus(JobA_Res1, JobA_Res2), 1));
model.addConstraint(Choco.eq(Choco.plus(JobB_Res1, JobB_Res2), 1));
model.addConstraint(Choco.eq(Choco.plus(JobC_Res1, JobC_Res2), 1));
model.addConstraint(Choco.disjunctive( new...
2009-07-29 18:39:20 UTC in choco
-
I have noticed that the above approach works great for most situations, but I'm still getting errors in some instances. For example, the following code causes a solver exception that reads "cant initialize Alternative Edge finding TL Tree."
model.addConstraint(Choco.eq(Choco.plus(JobA_Res1, JobA_Res2), 1));
model.addConstraint(Choco.eq(Choco.plus(JobB_Res1, JobB_Res2), 1));...
2009-07-29 17:55:00 UTC in choco
-
That does help, thanks. I have the alternate resource approach working for my application now.
2009-07-14 13:01:27 UTC in choco
-
(and thank you very much for your help earlier -- it is much appreciated)
2009-07-08 19:54:58 UTC in choco
-
Out of curiosity, why does something like this not work:
Constraint ResourceA = Choco.disjunctive(new TaskVariable[ ]{Task1, Task2});
Constraint ResourceB = Choco.disjunctive(new TaskVariable[ ]{Task4, Task5});
Constraint temp = Choco.or(Choco.disjunctive(new TaskVariable[ ]{Task1, Task2, Task3}), Choco.disjunctive(new TaskVariable[]{Task4, Task5, Task3}));.
2009-07-08 19:43:27 UTC in choco
-
I cannot find a disjunctive method with that signature. I am using choco 2.0.0.3 -- do I need to switch to a later version?
Here is what my test code looks like. Task1 needs ResourceA and ResourceB in order to complete. Task2 needs only ResourceB. Task3 needs either ResourceB or ResourceC. The code fails on ResourceB.addOptionalTask(Task3).
import choco.scheduling.Scheduling;
import...
2009-07-07 15:13:32 UTC in choco
-
Is there a way in the scheduling package to specify that TaskA needs to use either MachineA or MachineB, but not both?.
2009-07-02 18:28:18 UTC in choco
-
I knew I should have poked around more before posting that question. CumulativeResource for the win.
2009-06-30 18:53:20 UTC in choco