Indicator Variables for On/Off Activities
Use binary indicator variables to model activities that can be turned on or off, including capacity limits, fixed setup costs, and minimum operating levels.
Tutorial
Indicator Variables for On/Off Decisions
Many optimization problems involve activities that can be either on or off: a factory operates or stays idle, a facility is opened or not, a delivery route is used or not. To model these decisions, we introduce a binary indicator variable:
If the activity has a continuous level (units produced, hours run, MW generated, etc.), we must force whenever . This is done with a big-M linking constraint:
where is an upper bound on (typically the capacity). When , the constraint forces , so . When , the constraint allows to be anywhere from to .
For instance, a plant with capacity units is modeled by
If , then forces . If , then .