Skip to content

Heuristic

Definition

A heuristic is a solution method designed to obtain a good feasible solution without a general guarantee that it is optimal. In this course, a heuristic solution is required to satisfy the original problem's constraints.


Interpretation

A heuristic gives up the guarantee of optimality in exchange for speed or simplicity: a good decision that can actually be carried out is often needed when an exact optimum is too hard or too slow to find.

A horizontal line of objective values with the value of a feasible solution on the left, the value of a relaxation on the right, the unknown optimum between them, and the gap marked.

The figure is drawn for maximization. The heuristic value zHz_H lies on the left: the heuristic solution is one of the feasible candidates, so the unknown optimum z∗z^* is at least as large. The optimal value zRz_R of a relaxation lies on the right, and the gap zR−zHz_R-z_H is the most that accepting the heuristic answer can lose. For minimization the picture is mirrored, and zHz_H is an upper bound.

Feasibility is required: an answer that breaks a constraint is not acceptable, however good its value. "No general guarantee" does not mean a poor answer: first fit may well find an optimal solution, but cannot prove it by itself; a bound from elsewhere equal to zHz_H would.


Key Results

  • For minimization, a feasible heuristic value is an upper bound on the optimum.
  • For maximization, a feasible heuristic value is a lower bound.
  • A relaxation can supply an opposing bound that measures solution quality.

Examples

For maximization, improved incumbents raise the feasible lower bound. Resolving branch-and-bound nodes can reduce the global upper bound formed from the incumbent and the remaining open-node relaxation bounds.

  • In the vehicle routing problem, visiting each routing location separately from the depot gives a feasible starting plan.
  • First-fit packs items into the first container with enough remaining capacity.

Prerequisites

Sources

Last updated: 20 October 2026 03:02