Constraints Examples: 43 Problems with Answers
Worked examples of Constraints to try before you open each solution, then practice problems with answers.
Worked Examples
Example 1
mediumShow solution
Answer
First step
See the full worked solution + why-it-works coaching
SetupKey insightWhy it worksCommon pitfallConnection
Example 2
hardExample 3
mediumExample 4
mediumExample 5
hardExample 6
challengePractice Problems
Try each one, then open the solution to compare your method.
Example 1
mediumExample 2
hardExample 3
easyExample 4
easyExample 5
easyExample 6
easyExample 7
easyExample 8
easyExample 9
easyExample 10
easyExample 11
mediumExample 12
mediumExample 13
mediumExample 14
mediumExample 15
mediumExample 16
mediumExample 17
mediumExample 18
mediumExample 19
mediumExample 20
challengeExample 21
challengeExample 22
challengeExample 23
easyExample 24
easyExample 25
easyExample 26
mediumExample 27
mediumExample 28
mediumExample 29
mediumExample 30
mediumExample 31
mediumExample 32
hardExample 33
hardExample 34
hardExample 35
hardExample 36
challengeExample 37
challengeWhat to focus on
Core idea: A constraint is a condition that fences off which values a variable is permitted to take.
Common stuck point: The procedure for constraints is the easy part; the trap is replacing an inequality constraint with an equation and giving one value. Asking "Does the condition limit or forbid certain values rather than compute one?" first is what keeps a correct-looking calculation from being attached to the wrong concept.
Ask yourself: Does the condition limit or forbid certain values rather than compute one?
Concept recap
Conditions or restrictions that limit which values are allowed in a problem. Constraints narrow the set of possible solutions, such as 'x must be positive' or 'the total cannot exceed 100.'
Constraints work like fences around a field: they never say where the sheep must stand, only where it may not go. Each new fence shrinks the field, and badly placed fences can leave no field at all. Unlike a fence, a constraint such as can remove a single point.
Read the full lesson on ConstraintsRelated concepts
Background knowledge
These ideas may be useful before you work through the harder examples.