I have 3 intervals:
dvar interval MyInterval[0..2];
And I have state function
stateFunction MyStateFunction;
And I have constraints:
alwysConstant(MyStateFunction, MyInterval[i]); alwyasIn(MyStateFunction, MyInterval[i], value_min[i], value_max[i]);
As a result, I can get a graph like this:
But can I write a constraint so that the pieces of the function only go in ascending or descending order? (so the situation on IMG_2 is undesirable)
I would use alternative:
which gives