dummy#

Variable

Usage

Quadratic Model

Nonlinear Model

Binary.

\(v_i \in\{-1,+1\} \text{ or } \{0,1\}\).

Typically used for applications that optimize over decisions that could either be true (or yes) or false (no); for example,

  • Should the antenna transmit or no?

  • Did a network node experience failure?

BINARY and SPIN

BinaryVariable

Discrete.

For example, a variable that can be assigned one of the values of the set {red, green, blue, yellow}.

Typically used for applications that optimize over several distinct options; for example,

  • Which shift should employee X work?

  • Should the state be colored red, blue, green or yellow?

INTEGER

Integer.

Typically used for applications that optimize the number of something; for example,

  • How many widgets should be loaded onto the truck?

INTEGER

IntegerVariable

Real.

Typically used for applications that optimize over an uncountable set; for example,

  • Where should the sensor be built?

REAL

linprog()