Chapter 3: Vectors and constraints
The event now offers two refreshment packs. A standard pack costs 4 currency units and a larger pack costs 6. We need to track both counts without confusing them.
Real plans involve several quantities at once, and several requirements that must all hold. This chapter introduces the vector, a way to keep related quantities together in a fixed order, and shows how to combine requirements into a set of conditions a plan must satisfy. By the end you will be able to decide whether a plan is feasible and find the most of something a budget allows.
Learning objectives
- Write related quantities as a vector and explain why the order matters.
- Compute a total cost by multiplying matching entries of two vectors and adding.
- Combine an equation and an inequality and solve them by substitution.
- Decide whether a given plan is feasible.
Keep related quantities together
Section titled “Keep related quantities together”A vector is an ordered collection of numbers. Write the pack counts as : standard first, larger second. The plan means 12 standard packs and 8 larger packs. The order matters.
The corresponding prices are . Multiply matching entries and add to find the refreshment cost:
For , the cost is . Including the room, the total is .
Combine requirements
Section titled “Combine requirements”A cost is only half of a plan; the plan also has to meet its requirements. Suppose we need exactly 20 packs and have a total budget of 160. The plan must satisfy both:
Since , substitute into the budget:
which simplifies to , so . Counts must also be whole numbers at least zero. Up to ten larger packs fit this budget.
Try it
Section titled “Try it”For the same 20 packs, increase the budget to 170. What is the maximum number of larger packs? Is feasible?
Check your reasoning
gives . The maximum is 15 larger packs and 5 standard packs. The plan costs , so it exceeds the budget.
Where this leads
Section titled “Where this leads”Every calculation so far has assumed you know exactly how many people will come. The next chapter, Uncertainty and evidence, drops that assumption. For the full theory of vectors and of choosing the best feasible plan, see the Linear Algebra and Optimization chapters in Mathematics.
Key terms
Section titled “Key terms”- Vector: an ordered collection of numbers, such as .
- Constraint: a condition a plan must satisfy, written as an equation or an inequality.
- Feasible plan: a plan that satisfies every constraint at once.
- Substitution: using one equation to replace a quantity in another, such as .
Summary
Section titled “Summary”- A vector keeps related quantities together; the position of each entry says what it means.
- Multiplying matching entries of a count vector and a price vector and adding gives a total cost.
- Requirements become constraints; a feasible plan satisfies all of them.
- Substitution reduces several constraints to one condition on a single quantity, such as .
Review questions
Section titled “Review questions”- Explain why satisfying the pack count alone does not guarantee a feasible plan.
Answer
The pack count $s + l = 20$ is only one of the constraints. A plan with the right number of packs can still cost too much: $(4, 16)$ has 20 packs but costs 172, more than a budget of 170. A feasible plan must satisfy the budget constraint and the count constraint together, and have whole-number counts at least zero. - What is the difference between the plans and ?
Answer
Order matters in a vector. $(12, 8)$ is 12 standard and 8 larger packs, costing $48 + 48 = 96$; $(8, 12)$ is 8 standard and 12 larger packs, costing $32 + 72 = 104$.