TactivergeLite

Lite / Textbooks / Engineering Design and Optimization / Chapter 1

1. Problems and requirements

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

Introduction

A good design starts before any idea: with a problem statement that names who has the problem, what success looks like and how you will know. Requirements then turn success into checkable sentences with a quantity, a tolerance, a condition and a verification method, without smuggling in a solution. This chapter writes them, separates constraints from functions, and traces each requirement to the test that proves it.

Figure 1.1. Anatomy of a testable requirement (described in words)

The requirement 'The feeder must dispense 25 g ± 3 g per portion at 5–35 °C, verified by 20 weighed trials' split into its parts: a binding verb, a quantity with tolerance, a condition and a verification method. Every portion must fall in the band from 22 to 28 g.

Explanation

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

1.1 Writing a sharp problem statement

'Make plants happier' and 'keep six pots moist for four days with nobody home' describe the same wish. Which one could you actually test?

Four parts

A sharp problem statement has four parts: who has the problem, what goes wrong (something you can see or measure), when it happens, and how you'll know it's solved. A template: [Who] [what goes wrong] [when]. It's solved when [test].

Words to watch

Some words feel helpful but hide the problem: better, easier, nice, works well, sometimes, people. Each makes a reader ask 'how much?' or 'who?' Swap them for numbers, names and situations. 'Sometimes' becomes 'twice a month'. 'People' becomes 'my grandmother, who uses a walking frame'.

No solutions allowed (yet)

If your statement contains a gadget (robot, app, sensor), it has already picked the answer. Take the gadget out and describe what it was supposed to fix. You might still build it, but you'll know why, and you'll have compared it with other ideas first.

Common mix-ups

Open the Lite lesson: Writing a sharp problem statement

1.2 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

1.3 Requirements two strangers would agree on

The client says the gripper must be 'strong and easy to use'. You build it, they say it fails. Who was wrong?

Three parts of a testable requirement

A good requirement says what the system must do, how much (a number with a unit) and under what conditions (load, speed, temperature, number of trials). 'The gripper must close within 0.5 s of the command, in each of 10 trials' has all three. Use must for non-negotiables and should for strong wishes.

Preferences and disguised solutions

A preference ('blue would be nice') is worth recording but nobody fails if it is missed. A solution in disguise ('must use rubber pads') jumps to a design before stating the need. Ask 'why?': the answer ('must not slip on a wet bottle') is the real requirement, and rubber becomes one option among several.

Fixing a vague requirement

Words like strong, fast, easy, safe and reliable need numbers. Ask: strong enough for what load? Fast compared with what time? Easy for whom, doing what, in how long? 'Easy to use' might become 'a new operator sets it up in under 5 minutes using only the README'.

Common mix-ups

Open the Lite lesson: Requirements two strangers would agree on

1.4 From a vague brief to budgets with margins

Your robot must weigh under 1 kg. Today's estimate is 850 g. Are you safe, or are you about to run out of room?

Constraints are limits

A requirement says what the design must do; a constraint limits how it can do it: at most 1 kg, under £40, no more than 10 W, must fit in a 20 cm cube. Clients often state constraints vaguely ('light', 'cheap', 'small'). Your job is to ask until each has a number and a unit.

Budgets add up

Mass, cost and power add across parts, so list every part with its estimate and total them. Frame 150 g + motors 100 g + battery 120 g + electronics 45 g = 415 g. Power works the same way: three 2 W motors plus a 1.5 W controller draw 7.5 W, so a 15 Wh battery lasts about 2 hours.

Keep a margin

Margin = (limit − total) ÷ limit × 100%. Early in a design, estimates are guesses and always grow, so teams aim for 20–30% margin at the start and accept less as numbers firm up. A negative margin means you are over budget now, before anything has been built.

Common mix-ups

Open the Lite lesson: From a vague brief to budgets with margins

1.5 Every requirement needs a test and a reason

The gripper build runs 24 checks on your design. Where did those 24 come from, and what if one of your requirements has no check at all?

Four ways to verify

Inspection: look or measure ('the README lists every part'). Analysis: calculate ('motor torque under 0.15 N·m by free-body diagram'). Demonstration: show it works once ('the gripper opens and closes'). Test: measure performance under set conditions, usually repeated ('holds the bolt in 10 of 10 fast lifts'). Choose the cheapest method that gives trustworthy evidence.

The traceability table

Make a table with columns: requirement ID, requirement text, verification method, test or calculation, result, and the design decision it drove. R3 'squeeze ≤ 3 N on the paper cup' might trace to 'test: cup case in the build' and to 'decision: rubber pads, so a low squeeze still holds the bolt'.

Gaps tell you something

A requirement with no test is a promise you can't keep. A design decision with no requirement may be gold-plating, or may reveal a requirement you forgot to write. When a requirement changes, the table shows every test to re-run.

Common mix-ups

Open the Lite lesson: Every requirement needs a test and a reason

Worked examples

Writing a sharp problem statement: example 1

Sharpen: 'Kids find school bags annoying.'

Solution

Who: pupils at our school who walk 20 minutes uphill. What goes wrong: on PE days their bags weigh over 6 kg and their shoulders hurt by the time they arrive. When: PE days. Solved when: a PE-day load can be carried uphill without sore shoulders, by the pupils' own report.

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).

Requirements two strangers would agree on: example 1

Rewrite: 'The robot must be fast.'

Solution

'The robot must cross the 2 m test track in under 8 s, averaged over 5 runs, on the standard floor.' Now there is a number, a unit and a condition.

Requirements two strangers would agree on: example 2

Rewrite: 'The sorter must use a colour camera.'

Solution

Ask why: to tell red parts from blue. Requirement: 'The sorter must place at least 95% of 200 mixed red and blue parts in the correct bin.' A camera, a colour sensor or something cleverer could meet it.

From a vague brief to budgets with margins: example 1

Client: 'It has to be cheap enough for schools.' Turn this into a constraint.

Solution

Ask what schools pay. If the answer is 'under £50 a kit, bought in packs of 10', the constraint is: parts cost at most £50 per unit at a quantity of 10.

From a vague brief to budgets with margins: example 2

Power budget: two 3 W motors, a 0.5 W sensor and a 1 W controller. A 12 Wh battery lasts how long?

Solution

Total = 6 + 0.5 + 1 = 7.5 W. Time = 12 ÷ 7.5 = 1.6 h, about 96 minutes, if everything runs at full power the whole time.

Every requirement needs a test and a reason: example 1

Pick a verification method: 'The gripper's motors must stay under 0.15 N·m in every grasp.'

Solution

Analysis first (torque = force × distance for the worst case), then test in the build, which reports torque for each object. Two methods agreeing is stronger evidence.

Every requirement needs a test and a reason: example 2

Your design uses rubber pads, but no requirement mentions friction. What should you do?

Solution

Find the requirement the pads serve: 'hold the bolt in a 4.9 m/s² lift without crushing the cup'. Add it to the table and trace the pads to it. If no requirement needs them, question the choice.

Interactive figures, in words

Figure 1.2 from Writing a sharp problem statement

Start with the vague choices, then sharpen one part at a time and read the note under each. Which single change makes the statement most useful? Aim for 4/4.

The problem-statement builder works on paper. For each of four parts (who, what goes wrong, when, how you'll know it's solved) there are three choices: vague ones such as 'people' or 'sometimes', a solution in disguise ('need a robot that waters plants'), and a sharp one ('our family, away most weekends'; 'come home to find the six windowsill pots dried out'; 'after being away for 2 to 4 days'; 'every pot's soil is still moist after 4 days'). Combining the sharp choices gives a statement a designer could start from.

Figure 1.3 from Requirements two strangers would agree on

Sort every statement in the recycling-gripper brief as testable, vague, preference or solution in disguise, then check. For each vague one, write a testable rewrite on paper before moving on.

The requirements checker lists statements from a client brief. For each one you choose testable requirement, vague, preference or solution in disguise, then press check: each answer is marked with an explanation, for example 'The gripper should be really strong' is vague because it gives no load or test.

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. 'We need a phone app that reminds Gran to take her tablets.' What's the main issue?
    Answer it in “Writing a sharp problem statement”
  2. Which success test can you actually check?
    Answer it in “Writing a sharp problem statement”
  3. Which is a requirement, not a design choice?
    Answer it in “Requirements you can test”
  4. 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”
  5. 'The gripper must hold 300 g.' What is missing that could cause an argument later?
    Answer it in “Requirements two strangers would agree on”
  6. Why do engineers keep a margin in a mass budget early in a project?
    Answer it in “From a vague brief to budgets with margins”
  7. Which is a constraint rather than a functional requirement?
    Answer it in “From a vague brief to budgets with margins”
  8. Your traceability table shows a design decision ('add a second sensor') that traces to no requirement. What is the best response?
    Answer it in “Every requirement needs a test and a reason”

Engineering applications

Medical devices

Every requirement for a medical device is traced to a test and every test to a requirement. An untested requirement, or a feature nobody asked for, is a finding in an audit.

Small projects

Even a weekend robot benefits from five testable requirements. They end arguments about whether it works and show which test to run after each change.

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
Fair test and randomisation
A fair test compares conditions so that the only systematic difference between them is the thing being studied; randomising the order of trials stops time-related effects favouring one condition. 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

Project: A requirements table you can verify

Choose a small device to design. Write a problem statement, then eight requirements (at least two constraints), each with a tolerance, a condition and a verification method. Build a traceability table that links each to a planned test.

Deliverables

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

References

← Contents2. Decisions and trade-offs →