Originally posted by: DavidGravot
Naively I would go for a discretization of time, create non-optional intervals a1,a2, ... (typically, create 48 intervals of 15 minutes from 08 am to 08 pm)
Then you will interpolate each of your two curves at each time point ai with di = heightAtStart(ai, demandCurve) and wi = heightAtStart(ai, workload)
summing all abs(di-wi) gives you an estimation of the area between the two curves
What would be more interesting instead is to get dynamically the points representing any step of the two curves, but I have no idea how to do so
Hope this helps
David
#DecisionOptimization#OPLusingCPOptimizer