Updated · By Pete Bromfield, IB examiner

IA idea · Optimisation & linear programming

Where should a shared mast go? Minimising total distance to villages

AA HLAI HLAA SL Ambitious Also in: Geometry & Voronoi, Numerical methods

Research question

For three or more real villages, where should a single shared mast or depot be placed to minimise the total cable or travel distance, how does the answer compare with the centroid, and how quickly does an iterative method find it?

Adapt it: change the place, the data or the comparison until the question is yours.

Free: the A–E checklist an examiner uses, by email ↓

Why it makes a good exploration

For three points there is a geometric answer (the 120° Fermat point); for more points there is no formula and you need an iteration. Moving from one to the other is a genuine piece of exploration.

The mathematics you'll need

  • Distance function of two variables
  • The Fermat point and its 120° property (proved with geometry or vectors)
  • Weiszfeld's iteration for the geometric median (new: explain it)
  • Comparison with the centroid (which minimises the sum of squared distances)
  • Convergence of the iteration

Course labels show where a technique sits; using maths from outside your course is fine if you explain it clearly and say it is new to you.

Where the data comes from

Read coordinates of real villages, schools or farms from OpenStreetMap and state your scale and origin.

  • OpenStreetMap — Free map with exact coordinates of schools, hospitals, shops and stations; export or read off coordinates.
  • GeoGebra — Free geometry and graphing software — Voronoi diagrams, loci and regression built in.

Cite every source in a footnote where you use it and in your bibliography. Check the licence of any dataset you download.

A possible outline

  1. Choose real sites and set up coordinates.
  2. Solve the three-site case and verify the 120° property.
  3. Introduce the iteration for more sites and show one step by hand.
  4. Compare the result with the centroid and with a grid search.
  5. Reflect on roads, terrain and weighting by population.

Pitfalls that cost marks

  • Confusing the centroid with the point of minimum total distance.
  • Running an iteration without checking it converges or explaining why.
  • Ignoring that real cables follow roads.

Showing personal engagement

  • Use places you know.
  • Weight each village by its population and see the point move.
  • Check your answer with a quick experiment (string and weights on a map, if you can).

See Criterion C: personal engagement for what examiners look for.

Which course is it for?

CourseFitMaths to lean on
AA SLFits — ambitious at SLDistance function of two variables; The Fermat point and its 120° property (proved with geometry or vectors)
AA HLGood fitDistance function of two variables; The Fermat point and its 120° property (proved with geometry or vectors)
AI SLNot a natural fitThe mathematics is mainly AA or HL (calculus or proof beyond AI SL); an AI SL version would need a data-driven, technology-based approach.
AI HLGood fitDistance function of two variables; The Fermat point and its 120° property (proved with geometry or vectors)

Level: Ambitious. Suits confident students; expect to learn some mathematics on your own. See how the IA differs between AA and AI, SL and HL.

How this idea reaches the top bands

Personal engagement (C)

Optimise a decision that is really yours or your school's (a timetable, a budget, a delivery), gather the real constraints yourself, and say which ones you chose to ignore and why.

Reflection (D)

Compare the mathematical optimum with what people actually do, and test how sensitive the optimum is: which constraint, if relaxed a little, would change the answer most? For this idea, start with: confusing the centroid with the point of minimum total distance — say how it affects your answer.

Use of mathematics (E)

SL: An objective function and constraints set up from the context, solved correctly (graphically for two variables, or with differentiation), the optimum checked and interpreted, and any new method such as linear programming explained in your own words.

HL: Optimisation with two or more variables, a justified numerical search, a proof that the optimum lies at a vertex, or a sensitivity analysis with calculus, used because the problem needs it.

Criteria A and B (presentation and communication) work the same way for every idea: see the guides to Criterion A and Criterion B.

Taking it further

Prove that the centroid minimises the sum of squared distances, or explore weighted versions and when the optimum sits exactly on one village.

Extending it for HL

Add a second variable or a non-linear constraint, use a numerical search where calculus alone is not enough, and analyse how the optimum moves as a parameter changes.

Before you start: the checklist an examiner uses

Every check for Criteria A–E in a 4-page PDF, the mistakes that cost the most marks and a self-assessment grid. We'll email it with a short IA tip every few days, timed to your deadline if you give it. Free — no account, no payment.

Turn this idea into your IA

Similar ideas

All optimisation ideas · AA HL ideas · AI HL ideas · AA SL ideas · All 239 IA ideas