Originally posted by: stevedwards
Hi everyone,
I have a question regarding a modelling decision using interval variables.
Currently I have two interval variables, say 'u' and 'v'. All units of a production-consumption resource are consumed at the start of 'u' and then released at the end of 'v'. Currently I'm modelling this using two step functions for the cumul expression; one at the beginning of 'u' and the other at the end of 'v'. This production-consumption resource is used frequently so I want to tell the solver that it should be trying to keep the distance between 'u' and 'v' as short as possible - however for other practical reasons I don't want to introduce an artificial time-lag constraint between u and v.
Would the default solver operate any differently if instead I model this using an additional interval variable 'w', where I constrain the start of 'w' to the start of 'u', the end of 'w' to the end of 'v', and then model the resource usage as a pulse function on 'w'? As far as I can see this is an equivalent expression of constraints. I'm just thinking whether the default solver would have more luck minimizing the duration of 'w', than trying to minimize the time between two seperate variables, 'u' and 'v'.
Hope that makes sense.
Best Regards,
Steve
#CPOptimizer#DecisionOptimization