Studio Matrx Monthly · Volume 1 · Issue 3 · August 2026
Amogh N P
 In loving memory of Amogh N P — Architect · Designer · Visionary 
Galapagos: Single-Objective SearchLesson 8.2
CPD for Architecture, Planning & Urban Design/Module 8 · Optimization & Design-Space Exploration

Lesson 8.2 · Optimization & Design-Space Exploration

Galapagos: Single-Objective Search

Grasshopper's built-in solver - wiring genes to a fitness and reading the run

13 min Interactive lessonFree · open lessonByAmogh N P· Architect & interior designer
The hook

The solver is already installed. Two wires - genes in, fitness in - and Grasshopper starts turning your sliders for you, thousands of times.

Galapagos is the quiet component that ships inside every copy of Grasshopper, and most people never open it. It is a single-objective optimizer: give it some sliders to control and one number to improve, and it will search - by evolution or by simulated annealing - for the slider settings that push that number as high (or low) as you asked.

This lesson is hands-on. You will wire it, run it, and - crucially - learn to read what it is doing rather than just watching numbers scroll. And because a single objective is a seductive, dangerous thing, you will learn how a Galapagos run can 'win' by cheating your fitness, and how to catch it.

Genome in, fitness in, run. Then look at the SHAPE, not just the score.

Meet Galapagos: two inputs, one job

Drop the Galapagos component onto the canvas (Params tab, under Util). It has exactly two inputs and that simplicity is the whole point. Genome takes the sliders it is allowed to change - wire one or several number sliders into it, and each becomes a gene. Fitness takes a single number: the output of your definition that measures how good the current design is.

Double-click the component to open the Galapagos editor - a separate window with a Solvers tab (settings and the two engines) and a Record tab (the live view of the run). In the options you set whether you are maximising or minimising the fitness, and you tune the engine. Then you press Start, and Galapagos begins writing values into your sliders, letting the definition re-solve, reading the resulting fitness, and repeating - hundreds or thousands of times a minute for a light definition.

The mental model matters: Galapagos does not understand your geometry at all. It sees only genes going in and a fitness coming out. It is turning knobs blindfolded, guided solely by whether the number improved. Everything clever - the geometry, the meaning - lives in your definition between the genome and the fitness.

This blindness is worth sitting with, because it explains most beginner frustration. Galapagos will not tell you your fitness is nonsense, that a slider does nothing, or that the winning shape is hideous - it cannot see any of that. It is a knob-turner with a single readout. The intelligence of the whole exercise is front-loaded into how you build the definition and, above all, how you define the number that comes out. Get those right and Galapagos is remarkably powerful; get them wrong and it will confidently optimize your mistake.

GENES -> MODEL -> FITNESS -> GALAPAGOS slider: angle slider: depth slider: count Parametricmodel Measure-> one number fitness= 0.83 Galapagos Genome Fitness Galapagos writes new gene values back to the sliders each run (dashed) and reads the resulting fitness.
Zoom
The whole Galapagos interface: sliders wire into Genome as genes, one measured number wires into Fitness. The solver writes new gene values back to the sliders each run (dashed) and reads the resulting fitness - it never sees the geometry itself.

Genome = the sliders it may turn. Fitness = the one number it chases. That's the entire interface.

Wiring it properly: genes, ranges, and one clean fitness

A good Galapagos setup is mostly good wiring. Choose your genes deliberately. Every slider you add multiplies the search space, so include only the parameters that genuinely matter, and set their ranges sensibly - too wide and the solver wastes runs on absurd designs; too narrow and it cannot reach the good region. Integer sliders (counts) and floating sliders (angles, depths) both work as genes.

Collapse everything you care about into one fitness number. With a single objective you get exactly one wire into Fitness, so if you care about more than one thing you must combine them - typically a weighted sum, for example 0.7 * shading_score + 0.3 * view_score, or you fold constraints in as penalties: subtract a big number when the design breaks a rule so the solver learns to avoid it. This is the moment to be honest, because whatever you put in that wire is exactly what Galapagos will pursue.

Before running, exercise the definition by hand: drag each gene slider across its range and confirm the fitness responds sensibly and the definition never errors. A run that hits a null geometry halfway through is a wasted afternoon. When the manual behaviour looks right, you are ready to let the solver take the wheel. A minute spent driving the sliders by hand routinely saves an hour of a long run quietly chasing a broken or meaningless fitness.

Evolutionary vs simulated annealing: the two engines

Galapagos ships with two search engines, and knowing when to pick each is worth real time.

The Evolutionary Solver - the default, and the one David Rutten describes at length in his classic Evolutionary Principles applied to Problem Solving essay - keeps a population of genomes. Each generation it evaluates them, keeps the fittest, and breeds new genomes by combining parents and applying small random mutations. Because many individuals are spread across the landscape, it explores broadly and is comparatively good at avoiding local optima. Its key options are population size (more = broader search, slower), and the maintain/inbreeding sliders that trade exploration against exploitation.

Simulated Annealing works differently: it holds a single point and wanders, accepting improvements always and worse moves sometimes - often early, when the 'temperature' is high - so it can climb out of a local dip. As it cools, it accepts fewer downhill moves and settles into a peak. It can be faster on smoother problems and where you want to refine near a known-good region. Neither is universally better. A sound habit: start with the Evolutionary Solver to explore, note the promising region, then optionally anneal to refine. And run it more than once - if several runs agree, trust the result more.

READING THE RUN generations -> best fitness -> curve flattens: converging extra runtime buys little steep early gains watch for over-fitting a great number, an odd shape
Zoom
Reading a run. Best fitness should rise steeply then flatten; a long plateau means it has converged and you can stop. A superb score attached to an odd shape is the signature of over-fitting - fix the objective, not the ranking.

Evolutionary = a crowd exploring many hills. Annealing = one wanderer that cools onto a peak.

Reading the run, and the trap of over-fitting one objective

Do not just stare at the best number. In the Record tab, watch the convergence: fitness should climb steeply at first, then flatten. A curve still rising fast means keep going; a curve that has been flat for many generations means the solver has converged and extra runtime buys little - stop it. If it plateaus almost immediately at a poor value, suspect a landscape with a dominant local trap, a fitness that barely responds to your genes, or ranges that are too tight.

Then comes the essential discipline: look at the winning geometry, not only its score. A single-objective solver is a literal-minded optimizer, and it will happily over-fit - exploit any loophole in your fitness to inflate the number in ways you never intended. Maximise daylight and it may dissolve the whole facade into glass, brilliant on your metric and a solar-gain disaster you did not measure. Minimise structural depth and it may find a razor-thin section that scores well and buckles in reality. When the optimum looks wrong, the fitness is wrong. This is not a flaw in Galapagos; it is the nature of pointing a relentless searcher at one number. Add the missing term, re-penalise the loophole, and run again - the loop between reading the result and fixing the objective is where the real design thinking lives.

READING THE RUN generations -> best fitness -> curve flattens: converging extra runtime buys little steep early gains watch for over-fitting a great number, an odd shape
Zoom
Reading a run. Best fitness should rise steeply then flatten; a long plateau means it has converged and you can stop. A superb score attached to an odd shape is the signature of over-fitting - fix the objective, not the ranking.

Practical settings, speed, and running it honestly

A few practical habits turn Galapagos from a toy into a dependable instrument. The single biggest lever is definition speed: Galapagos re-evaluates your entire definition once for every candidate, thousands of times, so anything slow inside it - a dense mesh, a heavy Boolean, a full daylight simulation - is multiplied enormously. Before optimizing, strip the definition to the essentials, coarsen any analysis meshes for the search and refine only the winner, and switch off unrelated components so they are not re-solving alongside. A run that would take hours often drops to minutes after this trim.

On the engine options, resist the urge to over-tune. Sensible defaults and a larger population generally beat clever fiddling, because population is what buys exploration and protects you from local traps. Give the run enough generations to actually flatten - stopping too early is the commonest mistake - but do not sit watching a converged curve crawl for hours of no gain.

Most importantly, run it more than once. Evolutionary search is stochastic: two runs from different random seeds can settle on different peaks, especially on a rugged landscape. If several independent runs agree, you can trust the result; if they scatter widely, that itself is telling you the landscape is rugged or your fitness barely responds to the genes. Treating a single run as gospel is how people get burned - reproducibility is your cheapest and most honest quality check, and it costs nothing but a little patience.

READING THE RUN generations -> best fitness -> curve flattens: converging extra runtime buys little steep early gains watch for over-fitting a great number, an odd shape
Zoom
Reading a run. Best fitness should rise steeply then flatten; a long plateau means it has converged and you can stop. A superb score attached to an odd shape is the signature of over-fitting - fix the objective, not the ranking.
Components & options this lesson uses

Galapagos

Grasshopper's built-in single-objective solver

Two inputs - Genome and Fitness. Ships free; no plug-in needed. Set maximise/minimise in the editor.

Evolutionary Solver

Population-based engine inside Galapagos

Selection, recombination and mutation over generations. Good at exploring; relatively robust to local optima.

Simulated Annealing

Single-point engine inside Galapagos

Accepts some worse moves early to escape local peaks, then cools. Often faster to refine near a good region.

Weighted-sum fitness

Combining several concerns into one number

The usual way to fake multi-objective in a single-objective solver. Weights are a value judgement - state them. Wallacei (8.3) avoids this.

Hands-on workshop

Workshop - your first real Galapagos search

You will take a small definition, wire Galapagos, run both engines, and practise the crucial habit of reading the run and checking the winner rather than trusting the number.

Rhino + Grasshopper (Galapagos is built in - no plug-in). A definition light enough to re-solve quickly.

Given & goal
Goal: run a single-objective search and diagnose its result
Inputs: a light parametric definition with 2-3 meaningful sliders and one computable quality (e.g. a louvre screen with a shading measure)
Time: ~60 minutes
  1. 1Build or open a definition where 2-3 sliders drive a form and one number measures quality. Keep it light so it re-solves fast - the solver will evaluate it thousands of times.
  2. 2Wire the sliders into Galapagos Genome and the quality number into Fitness. Open the editor, set maximise or minimise, and confirm by dragging each gene that the fitness moves sensibly and nothing errors.
  3. 3Run the Evolutionary Solver. Watch the Record tab: note where the convergence curve flattens, and stop when extra generations stop helping. Record the best fitness and screenshot the winning geometry.
  4. 4Reset, run Simulated Annealing on the same setup, and compare - similar answer, faster or slower, different peak? Run the evolutionary engine a second time to see whether it agrees with itself.
  5. 5The diagnosis step: open the best design and ask 'is this actually good, or did it cheat my fitness?' If it gamed the metric, add a penalty or a second weighted term, re-run, and note what changed. Write two sentences on what the run taught you about the problem.

You’ll walk away with
A short case study: the wired Galapagos setup, a convergence screenshot, the winning geometry from each engine, and a paragraph on whether the optimum was honest - plus one fitness fix you made after reading the result.

The worked example

Three altitudes on the same idea

Read the band that fits you — or all three.

For the architectDesign intent, geometry & delivery

Galapagos is your quickest bridge from intuition to tested massing. Wire orientation, setback and floor-count as genes, put annual daylight or view as fitness, and in minutes you have a defensible best-of-search to argue from. Just budget time to interrogate the winning form - a single-objective optimum often needs a second, unmeasured concern added before it is buildable, and that iteration is the point, not a failure.

For the interior designerParametric interiors, pattern & furniture

Single-objective search suits the crisp problems interiors throw up. Minimise plywood offcuts across a run of joinery; maximise seats that keep a clear sightline; tune a slat pitch to a privacy target. The fitness is usually easy to state honestly here, which is exactly when Galapagos shines - and you can often read the winning layout at a glance to confirm it is sane.

For the studentSkills, portfolio & jobs

This is the lesson that makes optimization real in your portfolio. Show the Galapagos wiring, the convergence graph and - the mature part - one slide where the naive optimum cheated your fitness and how you fixed the objective. Examiners and studios have seen a hundred evolved blobs; they have seen far fewer students who can explain why a run went wrong and what they changed.

Misconception check

If Galapagos converged on a high fitness, the design it found must be good.

A high fitness only means the solver found sliders that maximise the number you wired in - nothing more. If your fitness is an incomplete proxy, the 'winner' can be an over-fit design that games the metric: all-glass to win daylight, paper-thin to win material. Convergence tells you the search settled, not that the objective was right. Always open the winning geometry and check it against the goals you did not measure. When the optimum looks wrong, trust your eyes, fix the fitness, and re-run - the answer is a candidate for judgement, never a verdict.
Try it

Do it yourself

Check your grip on the solver.

  1. 1What are the only two inputs Galapagos needs, and what does each carry?
  2. 2How do you optimize for two concerns at once in a single-objective solver?
  3. 3In one line each, how do the evolutionary and simulated-annealing engines differ?
  4. 4On the convergence curve, what does a long flat section tell you?
  5. 5Give a concrete example of a Galapagos run 'over-fitting' a fitness, and how you'd fix it.
Take this with you

The one line to carry out

Galapagos searches your sliders for one number: wire genes and a clean fitness, pick evolutionary to explore or annealing to refine, read the convergence, and always inspect the winning geometry - because a single-objective solver will happily over-fit exactly the metric you gave it.
Take it further
References & further reading

Peer-reviewed journals & authoritative standards

  1. 01Rutten, D. - Evolutionary Principles applied to Problem Solving (Galapagos)grasshopper3d.com, 2011.
  2. 02Genetic algorithmWikipedia, 2026.
  3. 03Grasshopper - Algorithmic modeling for Rhino (official)Robert McNeel & Associates, 2026.
  4. 04Rutten, D. - The Guide to Grasshopper (community)grasshopper3d.com, 2026.
Related lessons
Recap
Galapagos is Grasshopper's built-in single-objective solver: Genome takes the sliders, Fitness takes one number, and it searches by evolution (a population that explores) or simulated annealing (a single point that cools). Read the convergence to know when to stop, combine multiple concerns as a weighted sum or penalties, and always open the winning geometry to catch over-fitting.
Carry forward →

Weighted sums force competing goals into one number and hide the trade-offs. The next lesson meets Wallacei, an evolutionary multi-objective solver that keeps the goals separate and hands you a whole Pareto front of trade-offs to choose from.

A

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 →