TactivergeLite

Lite / Textbooks / Foundations of Engineering / Chapter 7

7. Requirements and trade-offs

Version 1 · Technically checked (automated checks only) · 4 source lessons · Full interactive version

Introduction

"Make it better" is not a requirement. A requirement is a promise two strangers could test and agree on: a number, a condition and a way to check. Some are musts, some are shoulds, some are nice-to-haves. With those written down you can generate many ideas, score them honestly in a decision matrix, and see the trade-offs you are choosing instead of stumbling into them.

Figure 7.1. Score × weight, then add (described in words)

A weighted decision matrix with weights cost 3, mass 2 and ease 1. Design A scores 4, 2 and 5 for a total of 21; design B scores 3, 5 and 3 for a total of 22, out of a possible 30. B wins narrowly, so the weights deserve a second look.

Explanation

Built from 4 School lessons. Each part is the lesson's own explanation.

7.1 Requirements you can test

A robot gripper must lift an egg and a bolt. How do you write that down so that a computer can check whether your design passes?

A requirement is something you can check

A requirement says what the design must do, clearly enough for a test to give a yes or no. A good one has a quantity (40 g), often a tolerance (± 5 g) and a condition (at 6 pm, every day). If two people could test it and disagree, it isn't finished.

From problem to requirements

Each requirement should trace back to the problem. 'Soil stays moist for 4 days' comes straight from the problem statement. 'Holds at least 2 litres' comes from working out how much six pots need in 4 days. If a requirement doesn't trace back to anything, ask why it's there.

What, not how

Requirements say what the machine must achieve, not how. 'Uses a pump' is a design choice; 'delivers 50 mL to each pot per day' is a requirement. Keeping the 'how' out leaves room for better ideas, perhaps one with no pump at all.

Common mix-ups

Open the Lite lesson: Requirements you can test

7.2 Must, should, could

Your design can't do everything on the wish list. Which requirements would you fight for, and which would you happily drop?

Three buckets

Must: the design has failed without it. Should: important, but the design still works without it. Could: nice to have if there's time and money. (Some teams add Won't, this time for ideas deliberately left out.) A quick test: 'If this were missing, would we still call it a success?'

Safety is always a Must

If a requirement keeps someone from harm (no mains electricity near water, no sharp edges, nowhere to trap a finger), it's a Must, even if nobody asked for it. Users often forget to mention safety because they assume it. Engineers can't assume it.

Priorities help later

When two requirements clash (cheap versus reliable), priorities break the tie. When you run out of time, you know which feature to drop. When you present, you can explain each decision by pointing at the list. A few Musts, more Shoulds and some Coulds is a healthy shape.

Common mix-ups

Open the Lite lesson: Must, should, could

7.3 Choosing with a decision matrix

Wick bottles, a drip tank or a pump with a sensor? With weights 5, 3, 2 and 2, the pump wins by one point. Is one point enough?

Building the matrix

Rows are criteria from your requirements (keeps soil moist, low cost, simple to build, saves water). Columns are your options. Give each criterion a weight (1 to 5) for how much it matters, and score each option from 1 (poor) to 5 (excellent). Make sure higher is better on every row: score cost so the cheapest gets the highest score.

Calculating

For each option, multiply each score by its weight and add them up: total = Σ weight × score. The best possible total is 5 × (the sum of the weights). Comparing totals tells you which option did best on what you said you care about.

Is the decision robust?

Change one weight by one, up or down. Does the winner change? If not, the decision is robust. If it flips easily, it's fragile: say so, and consider testing the top two. Musts work differently: an option that fails a Must is out, however well it scores elsewhere.

Common mix-ups

Open the Lite lesson: Choosing with a decision matrix

7.4 No free lunch: trade-offs

Keep the seedlings warm, or save energy: the greenhouse controller can't max out both. How do you choose where to land?

What a trade-off is

A trade-off is when improving one thing makes another worse. A bigger tank lasts longer but costs more and takes more space. A brighter light is easier to see but drains the battery faster. Trade-offs aren't mistakes; they're the shape of the problem.

Spotting them in your requirements

Look at your list in pairs. Cheap and reliable? Small and long-lasting? Quiet and powerful? When two requirements pull apart, your priorities decide which gives way. If both are Musts, you need a cleverer design or a conversation with the user.

When there's no trade-off

Sometimes one option is at least as good on every measure and better on one. It dominates the other, which can be dropped with no trade-off at all. The options that nothing dominates form the Pareto frontier: the set of honest choices left.

Common mix-ups

Open the Lite lesson: No free lunch: trade-offs

Worked examples

Requirements you can test: example 1

Rewrite 'the lunchbox should stay cool' as a testable requirement.

Solution

'The inside of the lunchbox stays below 8 °C from 8 am to 12:30 pm in a 25 °C classroom.' It has a quantity (8 °C), a condition (a 25 °C room) and a duration (4.5 hours).

Must, should, could: example 1

Sort for a pet feeder: (a) drops food at set times, (b) has a camera, (c) can't trap a paw, (d) holds a week of food.

Solution

(a) Must: it's the problem. (c) Must: safety. (d) Should: three days might be acceptable. (b) Could: nice, but the cat eats without it.

Choosing with a decision matrix: example 1

The drip tank scores 3, 3, 3, 3 with weights 5, 3, 2, 2. What's its total, and what percentage of the maximum is that?

Solution

3 × (5 + 3 + 2 + 2) = 3 × 12 = 36. The maximum is 60, so 36 ÷ 60 × 100 = 60%.

No free lunch: trade-offs: example 1

Design X costs $10 and keeps 5 pots moist. Design Y costs $12 and keeps 5 pots moist. Does either dominate?

Solution

X dominates Y: it's cheaper and no worse at watering, so drop Y. If Y kept 6 pots moist, neither would dominate, and you'd have a real trade-off: $2 more for one more pot.

Interactive figures, in words

Figure 7.2 from Must, should, could

Rewrite each vague requirement, then sort all eight. Watch the warnings: what happens if everything is a Must? Then compare with one engineer's sort and decide where you disagree, and why.

The sorter lists eight plant-waterer requirements. One engineer's sort: Musts are keeping six pots moist for 4 days, running on 6 V batteries or less with no mains near water, and holding at least 2 litres. Shoulds are refilling in under 2 minutes, fitting within 80 × 30 cm, and parts costing $20 or less. Coulds are a phone alert and a chosen colour. Vague versions such as 'is safe', 'is cheap' and 'looks nice' each have a testable rewrite.

Figure 7.3 from Choosing with a decision matrix

Keep 'Choose a plant-waterer concept'. Read the totals and the robustness message. Raise 'Low cost' by one and see what happens. Then change scores you disagree with and see whether the winner survives.

The matrix as text. Criteria and weights: keeps soil moist (5), low cost (3), simple to build (2), saves water (2). Wick bottles score 3, 5, 5, 2 (total 44); drip tank 3, 3, 3, 3 (total 36); pump with sensor 5, 2, 2, 5 (total 45). The maximum is 60. Raising the cost weight to 4 makes the wicks win, 49 to 47, so the decision is fragile.

The interactive versions are in the full chapter.

Laboratory

These run in a browser on the full site (they need a faster connection). Simulations are simplified educational models.

Practice

Each question links to its Lite lesson, where your answer is checked on our server and a wrong answer gets a hint. Answers are never sent to your device.

  1. Which is a requirement, not a design choice?
    Answer it in “Requirements you can test”
  2. Two classmates test 'the alarm is loud enough'. One says pass, one says fail. What should you do?
    Answer it in “Requirements you can test”
  3. Which test best decides whether something is a Must?
    Answer it in “Must, should, could”
  4. Your design meets every Must and two of four Shoulds. Is it a success?
    Answer it in “Must, should, could”
  5. In a decision matrix for a door draught stopper, one concept is scored on three criteria: “works reliably” (weight 3, score 2), “low cost” (weight 5, score 4), “simple to build” (weight 5, score 4). What is its weighted total?
    Answer it in “Choosing with a decision matrix”
  6. An option scores highest but fails a Must requirement. What should you do?
    Answer it in “Choosing with a decision matrix”
  7. Design P: $8, 4 pots moist. Design Q: $8, 6 pots moist. What's true?
    Answer it in “No free lunch: trade-offs”

Engineering applications

Buying for a team

When a team chooses a microcontroller, a 3D printer or a supplier, a written decision matrix shows everyone why. If someone disagrees, the argument is about one weight or one score, not a vague feeling.

Musts are gates, not points

An option that fails a must is out, however well it scores on everything else. A cheap, light bridge that cannot carry the required load is not a bargain; it is not a bridge.

Watch (optional)

Streaming video uses a lot of data. Everything you need is in the text.

Summary

Glossary

Writing requirements
A requirement is a single, testable statement of what a system must do or be, usually written as 'The system shall…', with a measurable threshold and a way to verify it. Field Guide
Design review
A design review is a structured meeting where others examine a design against its requirements before it is built or released, and the outcomes are recorded as actions. Field Guide
Bill of materials
A bill of materials lists every part needed to build something, with quantity, exact part number or specification, supplier and cost. Field Guide

Project: Choose with evidence

Write five testable requirements for a device that waters a plant while its owner is away, marking each as must, should or could. Generate at least three different concepts, score them in a weighted decision matrix and explain which you would build and why.

Deliverables

Write it up on paper or in your own notes. Lite never stores what you write.

References

← 6. Circuits and electricity8. Prototype, test and improve →