Lesson 9.2Lesson 9.2 · Reality, Limits & Honesty
The Optimization Trap
Computation can optimize only what is measurable, a great city is made largely of the unmeasurable, so optimizing hard quietly erases what matters most - the permanent boundary of the field, and how to design around it
Optimization only ever works on what you can measure - and a great city is mostly made of what you cannot.
Here is the single most important idea in this course, stated as plainly as it can be. To optimize anything, a computer needs an objective it can measure - a number to push up or down. It can measure density, daylight hours, travel time, cost, a walkability score. It cannot measure community, belonging, memory, meaning, dignity, justice, the feeling of a street at dusk, the unplanned encounter, or the fine-grained mixture of life that makes a place worth being in. So when you optimize a city *hard* for the measurable things - and optimization, by its nature, pushes hard - you do not leave the unmeasurable things untouched. You quietly sacrifice them, because they were never in the objective, and anything not in the objective is, to the optimizer, free to spend.
This is the optimization trap, and it is not a bug to be fixed by better data or a cleverer algorithm. It is a permanent, structural boundary of the entire enterprise: the gap between what can be measured and what actually matters. The trap is dangerous precisely because it is invisible from inside the model - every metric on the dashboard goes green while the life of the place drains away, and the render looks better than ever. The failure of the worst top-down 'drawn' cities was exactly this: optimizing an abstract order and calling the result a city. Naive computational urbanism automates that failure and gilds it with objectivity. This lesson argues the trap in full, shows why it cannot be engineered away, and - crucially, because this module is honest and not cynical - shows how a good urbanist designs *around* it.
THE OPTIMIZATION TRAP: objective = only the measurable; the humane city = the unmeasurable; optimize hard -> spend the unmeasurable to buy the measurable, loss invisible. Permanent, not a data gap. Design around it: satisfice, protect the unmeasurable, keep the choice democratic.
The trap stated precisely: optimization only sees the objective
Optimization is a precise mathematical idea, and understanding it precisely is what makes the trap unarguable. To optimize is to search for the inputs that maximise or minimise an objective function - a single measurable quantity, or a weighted combination of several. The optimizer does exactly one thing: it moves whatever it can change in the direction that improves that number. It has no knowledge of, and no regard for, anything not expressed in the objective. This is not a limitation of today's algorithms; it is the definition of optimization. A thing that is not in the objective function does not exist for the optimizer, and if sacrificing that thing improves the objective, the optimizer will sacrifice it - not maliciously, but necessarily.
Now apply this to a city. Whatever you put in the objective - density, yield, daylight, travel time, a walkability score - the optimizer will pursue relentlessly, spending anything not in the objective to get there. And here is the asymmetry that makes it a trap rather than merely a limitation: the things you *can* put in the objective are the measurable ones, and the things you *cannot* are precisely the ones that make a city humane - community, belonging, memory, meaning, justice, the texture of everyday life. So optimization does not fail randomly; it fails in a specific, systematic direction. It reliably trades away the unmeasurable to buy the measurable, every time, harder the more you optimize.
There is a well-known formulation of the underlying problem, Goodhart's Law: when a measure becomes a target, it ceases to be a good measure. A walkability score is a rough proxy for the rich, unmeasurable reality of a place that is good to walk in; the moment you *optimize* for the score, you start producing places that score well and are not actually good to walk in, because the optimizer exploits the gap between the proxy and the reality. The trap is therefore not that computation is bad at cities, but that optimization has a built-in blindness, and a city's most important qualities live exactly in its blind spot. Naming this precisely is the whole foundation of using computation honestly - because once you see that the objective is everything and the objective can only hold the measurable, you can never again mistake an optimized plan for a good one.
Optimization moves ONE number (the objective). Anything not in the objective = free to spend. The measurable can be in it; the humane (community, meaning, justice) cannot. So optimizing hard reliably trades the unmeasurable for the measurable. Goodhart: measure becomes target, stops being a good measure.
The measurable and the unmeasurable - and why the gap is permanent
Draw the line down the middle of a city. On the measurable side sit the quantities computation handles brilliantly: density and floor-area ratio, daylight hours and solar gain, travel time and network centrality, construction cost and land value, a walkability or accessibility score. These are real and worth analysing - the course has never said otherwise. On the unmeasurable side sit the things a great city is actually made of: community and belonging, memory and identity, meaning and beauty, justice and dignity, trust and safety-as-felt, the unplanned encounter, the corner where life happens, the fine-grained mixture of uses and people that no metric captures. Ask anyone what makes a place they love worth living in and they name the right-hand column almost every time - and that column is exactly what optimization cannot hold.
Why is the gap permanent, and not just a frontier that better data will close? Because the unmeasurable qualities are not merely *unmeasured* - many are constitutively resistant to measurement. You can build a proxy for 'sense of community' (say, number of local ties), but the proxy is not the thing, and optimizing the proxy corrupts it (Goodhart again). Some qualities are irreducibly subjective and plural - what feels like belonging to one person is exclusion to another - so there is no single number to optimize even in principle. Some emerge only over time and cannot be designed directly at all. And some, like justice, are *contested political values*, not measurements - to 'optimize' them you would first have to fix a single definition, which is itself the political act the model is not entitled to make.
This is why the trap cannot be engineered away. More data measures more of the measurable; it does not convert the unmeasurable into the measurable, because the barrier is not a shortage of sensors but the nature of the qualities themselves. A richer model with a hundred objectives is still a model of the measurable hundred, blind to the unmeasurable rest, and now more dangerous because it looks more complete. Accepting the permanence of this gap is not defeatism - it is the precondition for honesty. The competent urbanist stops trying to close the gap and starts designing for a world in which it will always be there.
LEFT (measurable, optimizable): density, daylight, travel time, cost, score. RIGHT (unmeasurable, what a great city IS): community, memory, meaning, justice, the encounter, the fine grain. The line is PERMANENT - more data measures more of the left, never converts the right.
Optimize hard, erase what matters - the mechanism of the failure
It is worth walking through exactly *how* optimizing the measurable destroys the unmeasurable, because the mechanism is specific and repeatable, not a vague worry. Take a concrete case: optimize a district hard for vehicular travel time. The optimizer widens roads, straightens routes, separates uses to reduce cross-traffic, and pushes densities to feed the network efficiently. Every measurable target improves; the dashboard glows. But widening the road killed the narrow street where children played and vendors sold; separating uses destroyed the fine-grained mixture where you could live, work and shop in one lane; straightening the route erased the crooked corner that held a shrine and a tea stall and a century of memory. Nothing 'went wrong' in the optimization - it did precisely what it was told. The unmeasurable qualities were simply not in the objective, so they were spent to buy travel time. The result scores beautifully and is dead to live in.
Now generalise. Optimize hard for density and you can crush light, air and the human scale of the street. Optimize hard for developer yield and you erase affordability and mix. Optimize hard for a 'liveability index' and you produce a place tuned to whatever the index measured and hollow everywhere it did not. The pattern is always the same: the optimizer, seeking the measurable, spends the unmeasurable, and because the unmeasurable is invisible to the model, the loss never appears in the results. This is the deep sense in which the trap is worse than an ordinary mistake - a mistake shows up as a bad number, but this failure shows up as *excellent* numbers over a lifeless place.
This is exactly the failure of the worst modernist masterplans, which optimized for abstract order, hygiene and vehicular flow and produced magnificent-from-the-air, desolate-at-street-level cities. Computation does not cure that failure; used naively it automates and accelerates it, searching thousands of variants of the same mistake and crowning the one with the best measurable score. The seduction of parametric-washing (Module 9.1) then presents this hollow optimum as objective triumph. Seeing the mechanism clearly - measurable up, unmeasurable spent, loss invisible - is what lets you refuse it.
Push the measurable UP (travel time, density, yield) -> the unmeasurable is SPENT (the play street, the mix, the shrine-corner, affordability). Loss is INVISIBLE to the model. Best numbers over a dead place = worse than an ordinary mistake.
Designing around the trap - honest, not cynical
The trap is permanent, but the response is not despair - it is discipline. A good urbanist keeps computation's genuine power for analysis and exploration while refusing to let optimization make the binding call, and there are concrete ways to design around the gap. Use computation to inform, not to decide. Let it explore options, test how the measurable things perform, surface trade-offs and surprises - and then bring the results to human judgement, which is the only faculty that can weigh the unmeasurable. Optimization proposes; people dispose. Optimize gently, satisfice rather than maximise. Instead of maximising one objective to its ruthless extreme, seek options that are *good enough* on the measurable things while leaving room for everything not in the model - a plan that hits an 80th-percentile daylight and density is far safer for the unmeasurable than one squeezed to the theoretical optimum.
Treat metrics as questions, not verdicts. A low walkability score is a prompt to go and look, not a command to widen a road. Protect the unmeasurable explicitly. Name the community, the memory, the fine grain, the informal economy on a site as first-order constraints the optimization may not touch, precisely because the model cannot see them - fence them off rather than hoping they survive. Keep humans and communities in the loop, especially those the model cannot see. The people who live the unmeasurable qualities are the sensors the model lacks; participatory process is not a courtesy but the only instrument that reads the right-hand column. Show alternatives and trade-offs, never a single optimum, so the binding choice stays a human, political, democratic one.
The honest position is therefore neither the techno-optimist's ('optimize the city') nor the romantic's ('computation has no place in the humane city') but the disciplined middle: computation is a powerful lamp that lights only the measurable part of the room, and the good urbanist uses the light gratefully while remembering, always, that most of what matters is in the dark beyond it - and that the binding planning, land-use and equity decisions belong to the planning authority, the participatory process, the affected communities and the law, not to the objective function. That is how you use the tool without falling into its trap.
Design around the trap: inform not decide . satisfice not maximise . metrics = questions not verdicts . protect the unmeasurable as hard constraints . communities are the sensors the model lacks . show alternatives, keep the binding choice democratic.
The objective is everything
What optimization can and cannot see
An optimizer improves only its objective function and spends anything not in it. The objective can hold the measurable, never the unmeasurable, so optimizing hard reliably trades away what a great city is made of. Modules 5.1, 5.4.
Goodhart's Law
Proxies corrupt when targeted
When a measure becomes a target it ceases to be a good measure. A walkability or liveability score is a rough proxy; optimizing it produces places that score well and are not good to live in. Modules 9.1, 6.2.
Satisfice, do not maximise
How to optimize safely
Seek options good enough on the measurable while leaving slack for the unmeasurable, rather than squeezing one metric to its extreme. Treat metrics as questions to investigate, not verdicts. Modules 5.4, 7.4.
Protect the unmeasurable
Design around the permanent gap
Name community, memory, the fine grain and the informal city as first-order constraints the optimization may not touch, and keep affected communities in the loop as the only sensors of what the model cannot see. Binding choices stay democratic. Modules 9.4, 7.2.
Workshop — run an optimization in your head and watch it erase what matters
The optimization trap becomes unforgettable once you have felt an optimizer spend the unmeasurable to buy the measurable. In this workshop you take a real street or neighbourhood, pick one measurable objective, and reason step by step through what a hard optimization for that objective would do - and destroy.
Just a place you know and a notebook - no software. The point is to feel the mechanism by hand; and the binding urban decisions always stay with the planning authority, the participatory process, the affected communities and the law.
Goal: feel the mechanism of the trap from the inside Inputs: a real street or neighbourhood you know well + a notebook Time: ~40 minutes
- 1Choose the place and one measurable objective a planner might optimize hard for - vehicular travel time, density, developer yield, or a walkability score.
- 2List what the optimizer would do: reason through the moves that improve that single number - widen, straighten, separate uses, raise density, remove friction. Be concrete about the place.
- 3List what each move spends: for every move, name the unmeasurable quality it damages - the play street, the fine-grained mix, the corner shrine, the trust between neighbours, affordability.
- 4Check the dashboard: confirm the uncomfortable point - every measurable target improved while the loss appears nowhere in the numbers. Write why the loss is invisible to the model.
- 5Design around it: rewrite the exercise as 'satisfice' - a plan that is good enough on the objective while protecting the unmeasurable qualities as explicit constraints, and name who (which community) would have to be in the loop to see them.
- 6Write a short reflection on why the binding decision about this place must stay human and democratic - flagged as your reasoning, not a determination binding on anyone.
You’ll walk away with
A two-column worked example - the moves that improve one metric, and the unmeasurable qualities each move spends - plus a 'satisfice' rewrite that protects the unmeasurable, and a reflection on keeping the binding choice democratic. Framed as reasoning.
Three altitudes on the same idea
Read the band that fits you — or all three.
For the architect or urban designer, the optimization trap is the discipline that separates a computational showreel from real judgement: optimize gently, and protect the unmeasurable explicitly. When you run a multi-objective study, resist maximising any single measure to its extreme - satisfice for options that perform well on the measurable while leaving slack for everything the model cannot see. Treat a poor metric as a prompt to go and look at the place, not a mandate to reshape it. Above all, name the unmeasurable qualities of a site - the community, the memory, the fine-grained mix, the informal livelihoods - as first-order constraints the optimization may not touch, precisely because the objective function is blind to them. Present alternatives and trade-offs rather than one triumphant optimum, and let human judgement and the affected communities weigh what no number can hold. Your craft is to use computation's light on the measurable part of the room while designing for the far larger part that stays in the dark - and to defer the binding planning and equity choices to the planning authority, the participatory process and the law.
For the planner or urbanist, the optimization trap is most dangerous exactly where planning is most consequential, because the qualities you are charged with protecting - equity, community, the public realm, the informal city - are the ones no objective function can hold. Use computation to strengthen the evidence base: test how the measurable things perform, compare scenarios, surface trade-offs. But never let an optimized metric become the decision, because the moment a measure becomes the target it stops describing the reality you care about (Goodhart's Law), and the people who live the unmeasurable qualities are the only sensors that can read them. Build participatory process in not as a courtesy but as the instrument that reads what the model cannot, protect the unmeasurable and the informal as explicit constraints, and present options and trade-offs to public debate rather than a single 'optimal' plan. Keep the binding decisions where they belong - with the statutory process, the affected communities and the law - and treat the optimum as one input to a human, political judgement, never as the judgement itself.
As a student, if you take one idea from this whole course, take this: a city is not an optimization problem, because optimization can only ever work on what you can measure, and a great city is mostly made of what you cannot. Learn the mechanism precisely - the optimizer moves one number and spends anything not in that number, so it reliably trades the unmeasurable (community, memory, meaning, justice, the fine grain of life) to buy the measurable (density, travel time, cost, a score), and the loss never shows up in the results. Learn why the gap is permanent: the humane qualities are not merely unmeasured but resist measurement, some are contested political values, and more data never converts one column into the other. And learn that the honest response is not to reject computation but to use it as a lamp that lights only part of the room - optimize gently, treat metrics as questions, protect the unmeasurable explicitly, keep communities in the loop, and keep the binding choice human and democratic. Understanding the optimization trap deeply is what turns you from a tool-user into a critical, trustworthy urbanist.
“The optimization trap is just a temporary limitation of today's models. As we get more sensors, bigger data and smarter AI, we will be able to measure the 'soft' things too - community, wellbeing, even happiness - and then we really will be able to optimize a genuinely great city, unmeasurable qualities included.”
Do it yourself
No software needed - reason it through.
- 1State the optimization trap precisely: why does an optimizer spend anything not in its objective function?
- 2Sort ten qualities of a city into measurable and unmeasurable, and explain why the line between them is permanent, not a frontier data will close.
- 3Walk through the mechanism: how does optimizing hard for travel time or density erase specific unmeasurable qualities, and why is the loss invisible?
- 4Explain Goodhart's Law with a walkability score, and why it makes proxy metrics dangerous as targets.
- 5Give three concrete ways to design around the trap without abandoning computation's genuine value.
The one line to carry out
Peer-reviewed journals & authoritative standards
- 01Mathematical optimization — Wikipedia - Mathematical optimization, 2026.
- 02Multi-objective optimization — Wikipedia - Multi-objective optimization, 2026.
- 03The Death and Life of Great American Cities — Wikipedia - The Death and Life of Great American Cities, 2026.
- 04Walkability — Wikipedia - Walkability, 2026.
- 05Pareto efficiency — Wikipedia - Pareto efficiency, 2026.
The optimization trap assumes computation is at least modelling the city correctly, only optimizing the wrong things. But there is a deeper problem underneath it: a city is a complex adaptive system whose emergence and feedback defeat the model itself. That deeper truth is next.
The author
Amogh N P
Architect, interior designer, and creative polymath. Studio Matrx began in his notebooks — his vision of design made honest, useful, and open to everyone. Its Academy is written and taught in his memory, and free, forever.
More about Amogh →