constant_limits#

Lower- and upper-bound limits for variables that should remain constant.

These limits are used to limit the range of possible values for variables defined inside the optimization model.

Usage#

To add new variables that should contain constant lower and upper bounds, specify the variable’s name as a key in the constant_limits dictionary, and a dictionary with the keys "min" and "max", representing its lower and upper limits. When one of the variable’s limits is set to None, then that limit is unrestrained.