Hello,
I am a new user of choco solver and I have some issues to optimize my modelisation of the problem.
I have N IntVar[] which I already now at start have a finite number of valid combination.
For exemple, 5 combinations are possible :
- [2, 2, 2, 1, 1]
- [1, 2, 2, 2, 1]
- [1, 1, 2, 2, 2]
- [2, 1, 1, 2, 2]
- [2, 2, 1, 1, 2]
I have a implementation that works using model.intVarArray(locDuration, 1, 2);
I also used the regular method from the Model class to check that the pattern is correct.
The problem is that the execution is too long beacause all the combinations are tested (or at least far too much than we could anticipate).
Could you help me find a more optimized way to do the exploration ?
Thank you !
--
Nicolas Prodanic