Problem Solving

Integer Programming

Whole blocks fit inside a bounded tray.

Integer Programming definition

Integer programming optimizes an objective while requiring some or all decision variables to take integer values.

In Spanish
programación entera
Topic
Optimization and decision models

Integer Programming in a picture

Integer Programming diagramA model of bus allocation requires whole bus counts even if a continuous model allows fractions.Choose a decision variable xLet x be the number of busesRequire x to be an integerA fractional bus is not allowedOptimize over feasible countsCheck all other constraints too
A model of bus allocation requires whole bus counts even if a continuous model allows fractions.

How it works

In integer linear programming, the objective and constraints are linear. A pure integer model requires all decision variables to be integers. A mixed-integer model allows some variables to be continuous. Integer variables can represent counts of indivisible items.

Worked examples

Can x = 2.5 satisfy x ≤ 3 and x integer?

No. It satisfies the inequality but fails integrality.

Maximize x with integer x and 0 ≤ x ≤ 2.7.

The best allowed value is x = 2.

Can a mixed-integer model allow a real-valued time variable?

Yes, while requiring other variables such as vehicle counts to be integers.

Common mistake

Check feasibility after rounding. Rounding a continuous solution can break constraints or miss the best integer choice.

Quick check

Which value is allowed for a nonnegative integer decision variable?

What problem drops the integer requirement but keeps linear constraints?

Show answer

The linear programming relaxation.

What kind of integer variable takes only 0 or 1?

Show answer

A binary variable.

Sources

Flashcard

Integer Programming

Reveal the definition

Integer programming optimizes an objective while requiring some or all decision variables to take integer values.

Effortless Math. “Integer Programming.” Math Dictionary.