liveBook · Manning

Constraint

As explained in Statistics Slam Dunk

A constraint is a condition that restricts the feasible values or combinations of variables in an optimization problem.

A constraint is a condition that restricts which values or combinations of variables are feasible. In optimization, it defines a boundary that cannot be breached while another function is minimized or maximized. section 4.1

A roster-selection problem turns constraints into explicit requirements:

  • Sign exactly five free agents. section 4.1
  • Select one point guard, shooting guard, center, power forward, and small forward. section 4.1
  • Keep combined annual salaries at or below $90 million. section 4.6
  • Keep the selected group’s average age at or below 30. section 4.6

Choosing an NBA roster

The team is not simply looking for the five highest-rated free agents. It is looking for the strongest group that satisfies every restriction simultaneously. This separates feasible combinations from choices that exceed the salary limit, miss a position, select too many or too few players, or produce an excessive average age. section 4.0 section 4.6

Table 4.1 List of available free agents (view table figure)

Player

Age

Position

Annual Salary

Win Shares

Chris Paul

37

PG

$32,000,000

6.9

Rajon Rondo

36

PG

$6,500,000

2.3

Ricky Rubio

31

PG

$18,500,000

4.7

Patrick Beverley

34

PG

$16,500,000

4.2

Marcus Smart

28

PG

$15,500,000

4.7

Cory Joseph

31

PG

$14,500,000

3.6

Josh Richardson

29

SG

$11,000,000

3.0

Gary Harris

28

SG

$22,500,000

3.7

Zach LaVine

27

SG

$10,500,000

3.8

Jonas Valančiūnas

30

C

$15,000,000

5.1

Jusuf Nurkić

28

C

$14,000,000

3.8

Serge Ibaka

33

C

$12,000,000

2.9

Aron Baynes

35

C

$7,000,000

2.5

Blake Griffin

33

PF

$35,000,000

5.2

Montrezl Harrell

28

PF

$26,000,000

4.2

Thaddeus Young

34

PF

$17,000,000

3.9

Marvin Bagley III

23

PF

$14,500,000

4.7

Taurean Prince

28

PF

$14,500,000

1.7

Robert Covington

31

PF

$13,500,000

3.1

Kawhi Leonard

31

SF

$37,000,000

9.4

Rodney Hood

29

SF

$19,500,000

2.1

Will Barton

31

SF

$14,500,000

3.8

Justise Winslow

26

SF

$15,000,000

2.8

TJ Warren

29

SF

$13,500,000

3.7

Use the free-agent table to compare candidate ages, positions, salaries, and win shares before testing combinations against the constraints. section 4.6

How Statistics Slam Dunk covers it

How deep it goes
Defines constraints and works through four roster requirements as concrete feasibility conditions.
Examples
Uses NBA free-agent selection, capital-project funding, and triathlete packing decisions.
What you can do after
Apply constrained optimization to restricted selection problems by changing the target function and constraints.
How it connects
Links constraints to constrained optimization and operations research.

Also explained in

Compare how 19 books explain constraint →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Statistics Slam Dunk. The section links point to the parts of the book it draws on.