Skip to content
← All questions

How does the linking constraint Xi≤CiYiX_i \le C_i Y_i enforce the on/off production rule?

The linking constraint Xi≤CiYiX_i \le C_i Y_i enforces the on/off production rule by scaling the capacity limit CiC_i with the binary activation variable YiY_i. When the machine is active (Yi=1Y_i=1), the constraint becomes Xi≤CiX_i \le C_i, allowing production up to the full capacity. When the machine is inactive (Yi=0Y_i=0), the constraint becomes Xi≤0X_i \le 0. Combined with the non-negativity requirement Xi≥0X_i \ge 0, this forces production to be exactly zero.

Conditions

  • XiX_i is the production quantity on machine ii.
  • YiY_i is the binary activation indicator for machine ii.
  • CiC_i is the maximum capacity of machine ii.
  • Xi≥0X_i \ge 0 is enforced.

Reasoning, step by step

  1. Start with the constraint Xi≤CiYiX_i \le C_i Y_i.
  2. Case 1: Assume Yi=1Y_i = 1 (machine active). Substitute to get Xi≤Ci⋅1X_i \le C_i \cdot 1, so Xi≤CiX_i \le C_i.
  3. Case 2: Assume Yi=0Y_i = 0 (machine inactive). Substitute to get Xi≤Ci⋅0X_i \le C_i \cdot 0, so Xi≤0X_i \le 0.
  4. Apply the non-negativity constraint Xi≥0X_i \ge 0.
  5. Conclude that in Case 2, XiX_i must be 0.
  6. Verify that the constraint correctly models the logical dependency.

Example

For machine 1 with capacity 400, the constraint is X1≤400Y1X_1 \le 400Y_1. If Y1=1Y_1=1, X1≤400X_1 \le 400. If Y1=0Y_1=0, X1≤0X_1 \le 0, and since X1≥0X_1 \ge 0, X1=0X_1=0.

Common misconceptions

  • Thinking that YiY_i only records usage without affecting the production bound.
  • Believing that XiX_i can be negative when Yi=0Y_i=0.
  • Assuming the constraint works without the non-negativity condition on XiX_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.