Modeling Yes/No Decisions with Binary Variables
Use binary (0/1) decision variables to represent yes/no choices, then translate counting requirements, budgets, and logical relationships into linear constraints in order to formulate integer programs.
Tutorial
Binary Variables for Yes/No Decisions
A binary variable is a decision variable restricted to the two values and :
Binary variables model yes/no decisions. We set when the action is taken and when it is not. For instance, if a firm is deciding whether to launch a new product, we let
Multiplying by a cost or revenue figure produces a quantity that activates only when the decision is "yes." If launching the product costs \80{,}000$140{,}000$ in revenue, then
- Total launch cost:
- Total launch revenue:
- Net profit:
When the profit is \60{,}000;x=00.$ This trick -- multiplying a constant by a binary -- is the foundation of every integer-programming formulation.