Zhaolu

Zhao Lü

code · read · fitness

Posts
Portfolio
Photos
Teach
Travels
Talks & Patents

Recent Posts

  • Fire Detection: Heat, RGB, and a Viral BBQ Sign 2026-11-29
  • JavaFX click circles, events, and properties 2026-11-28
  • CMCC box for media streaming 2026-11-26
Read more posts →
CS Glossary / Binary variable

Binary variable

Also known as: 0-1 variable, Boolean decision variable

A binary decision variable takes values in ${0,1}$ — on/off, selected/not, open/closed.

Special case of an integer variable. Encodes logical constraints and matching decisions in assignment, facility location, and routing MIPs.

Related terms

  • Integer programming
  • Decision variable
  • Assignment problem

← Back to CS Glossary