Step functions
Step functions are typically used in scheduling models to model the efficiency of a resource over time.
In CP Optimizer, stepwise functions are typically used to model the efficiency of a resource over time. A stepwise function is a special case of piecewise linear function where all slopes are equal to 0 and the domain and image of the function are integer.
When two consecutive steps of the function have the same value, these steps are merged so that the function is always represented with the minimal number of steps.
In the C++ API of CP Optimizer, the class IloNumToNumStepFunction represents step functions.
In the Java™ API of
CP Optimizer, the interface IloNumToNumStepFunction represents
step functions.
In the C# API of CP Optimizer, the interface INumToNumStepFunction represents step functions.
Step function
Step functions are a special case of piecewise linear function where all slopes are equal to 0 and the domain and image of the function are integer.
Each interval [x1, x2) on which the function has the same value is called a step.
When two consecutive steps of the function have the same value, these steps are merged so that the function is always represented with the minimal number of steps.