Originally posted by: SystemAdmin
Hi,
In my problem, certain tasks can be done more than once so that if one such task is scheduled k times, I receive its value k times over. E.g. if task A's duration is 10 seconds and its available time window is
20-42, then the task can be done at most twice (assuming no transition time) since 20 seconds is smaller than the time window and 30 seconds is bigger than the time window. Since the task is optional, I let the solver choose whether it is done once, twice, or not at all.
Currently, I successfully model this feature by creating k separate intervals for task A where k is the maximum number of times A could be done in its time window. I believe this is the only way to do it but thought perhaps someone knew a clever way to model this that would require only one interval variable. In practical-sized problems of mine, there may be tasks that can (and will in good solutions) be done 10, 15, or even more times, and I'd love to not have to create separate interval variables for each possible time.
Thank you
#DecisionOptimization#OPLusingCPOptimizer