stepwise
OPL keyword for stepwise linear functions
Purpose
OPL keyword to express stepwise linear functions.
context |
---|
Model files (.mod) |
Syntax
StepwiseExpression: . "stepwise" '{' Steps Expression '}' Offset_opt Expression | . "stepwise" '(' Qualifiers ')' '{' Step Expression '}' Offset_opt Expression
Description
A stepwise function is a special case of the piecewise linear function where all slopes are equal to 0. The primary use of stepwise is in scheduling, typically used to model the efficiency of a resource over time. In all uses with scheduling, the domain and image of the function are limited to integers.
A stepwise linear function can be used as a convenient syntax for a pwlFunction when the slopes of the function equal zero.