Skip to content
← All questions

Why must capacity constraints be linked to binary variables in the fixed cost problem?

Capacity constraints must be linked to binary variables to ensure logical consistency between machine activation and production. Simple capacity limits (Xi≤CiX_i \le C_i) allow production even if the machine is not activated (Yi=0Y_i=0), which would incur variable costs without paying the fixed setup cost. The linked constraint Xi≤CiYiX_i \le C_i Y_i forces production to zero when the machine is off (Yi=0Y_i=0) and allows up to capacity CiC_i when the machine is on (Yi=1Y_i=1).

Conditions

  • Machines have fixed setup costs.
  • Production is bounded by machine capacity.
  • Binary variables indicate machine activation.
  • The model must prevent production on inactive machines.

Reasoning, step by step

  1. Identify the simple capacity constraint Xi≤CiX_i \le C_i.
  2. Recognize that this constraint does not account for machine activation status.
  3. Introduce the binary variable YiY_i for activation.
  4. Modify the constraint to Xi≤CiYiX_i \le C_i Y_i.
  5. Verify that if Yi=0Y_i=0, then Xi≤0X_i \le 0, forcing Xi=0X_i=0.
  6. Verify that if Yi=1Y_i=1, then Xi≤CiX_i \le C_i, restoring the capacity limit.

Example

For machine 1 with capacity 400, the linked constraint is X1≤400Y1X_1 \le 400Y_1. If Y1=0Y_1=0 (machine off), X1≤0X_1 \le 0, so no production occurs. If Y1=1Y_1=1 (machine on), X1≤400X_1 \le 400, allowing full capacity production.

Common misconceptions

  • Thinking that simple capacity constraints are sufficient when fixed costs exist.
  • Believing that the objective function alone prevents production on inactive machines.
  • Confusing the capacity constant CiC_i with the binary variable YiY_i.

Watch the explanation

Explore next

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.