Chapter 7 · Simulation

Facility Location

← Chapter 7

LocationtTotalMax

Manipulation

→ 45

How to play

A single facility (a school, a hospital, a bus stop) is built somewhere on a path from 0 to 100. Each agent (blue disk) has an ideal point xi and pays the distance to the facility: costi = |xi − t|. Agents only report their points; a rule turns the reports into a location t.

  • Drag the disks along the line or type the ideal points into the table. Random draws a new profile; Example loads the points 10, 30, 45, 80, 95.
  • The red triangle is the facility. Below the axis, the green diamond marks the point with the smallest total cost (a median) and the amber square marks the point that minimizes the largest cost (the midpoint of the two extreme agents). The table compares the rule with both.
  • Manipulation: pick an agent and move the slider (or drag the dashed disk) so that this agent misreports while everyone else tells the truth. The chart shows the agent’s true cost for every integer report from 0 to 100; the green dashed line is its cost when truthful, and the red parts are profitable lies. Best lie tries all 101 reports.

Rules

  • Median: sort the reports and take the middle one. With an even number of agents there are two middle reports; this simulator always takes the left median (the n/2-th smallest report). Every point between the two middle reports minimizes total cost, and a fixed tie-breaking choice such as “always left” keeps the rule strategyproof.
  • Mean: the average of the reports. An agent can pull the mean toward itself by exaggerating, so it is not strategyproof.
  • Generalized median (Moulin, 1980): add fixed phantom points that nobody controls and take the (left) median of the reports and the phantoms together. It is strategyproof for every choice of phantoms; phantoms at 0 pull the outcome left, phantoms at 100 pull it right.
  • Midpoint of extremes: exactly halfway between the smallest and the largest report. It is best for the maximum cost, but the extreme agents can manipulate it.
  • Leftmost and Dictator: these are strategyproof too, but ignore most of the agents.

The theory in brief

On a line with distance costs, preferences are single-peaked: every agent prefers locations closer to its peak. Then the median voter’s peak is a Condorcet winner (Black) and the median rule is strategyproof: an agent to the left of the median can push the median further right only by reporting a point on its right, and reporting anything on its left changes nothing; the same holds on the other side. Moulin showed that the strategyproof, anonymous rules that use only the reported peaks are exactly the generalized medians with n + 1 phantoms (n − 1 phantoms if the rule must also be Pareto efficient); so for single-peaked preferences the Gibbard–Satterthwaite impossibility disappears. The median also minimizes total cost; for the maximum cost, the best strategyproof deterministic rule is a 2-approximation (the median achieves it), while the midpoint of the extremes, which gives the best result, can be manipulated (Procaccia and Tennenholtz).

Keep exploring

Quiz yourself

The agents’ ideal points are 10, 30, 45, 80, 95 (agents 1 to 5; press Example to load them). Cost = distance to the facility. Click an answer.

1. Where does the median rule place the facility?

2. Under the mean rule, can agent 3 (ideal point 45) gain by misreporting?

3. Under the median rule, agent 5 (ideal 95) reports 100 or 50 instead. What happens to its cost?

4. Four agents at 20, 40, 60, 90. Where does the (left) median place the facility, and where is the maximum cost smallest?

Score: 0 / 4