Hello,

I've got a truck doing deliveries en pickups along the road. (Both are possible at the same time.) I've also got a cumulFunction called "load[k]" that describes the load of a truck as it makes deliveries.

I would like to minimize the standard deviation of the load in my objective.

dexpr int objLoad = standardDeviation(all (k in Camions, i in cities) cumulFunctionValue(load[k],i));

However, cumulFunctionValue is only available in postprocessing AFAIK. How can I better express this?

Furthermore:

It seems not possible to use heightAtStart/End either, because they somehow return 0 at all times...?

cumulFunction unloadStep[k in Camions] = sum(i in cities) stepAtStart(visit[k][i], 0, k.capacity);cumulFunction loadStep[k in Camions] = sum(i in cities) stepAtEnd(visit[k][i], 0, k.capacity);cumulFunction load[k in Camions] = loadStep[k] - unloadStep[k];

In the result view, I see NOTHING besides stepwise{ 0 -> 0; 0 } for both the unloadSteps and loadSteps. Although the combined value shows the correct result. Weird!

Kinds regards,

Cedric