Skip to content

Worked Example A: Single-Objective Daylight Optimization ​

This step-by-step tutorial demonstrates how to configure a single-objective optimization workflow in Grasshopper using the ADO-D22 building envelope benchmark to maximize natural daylight autonomy.

.GH
ADO-D22 building problem (2–3 objectives) (.gh)91 KB

22 variables, evaluated by the GBR–ANN surrogate trained on the Zorn et al. (2025) dataset. Also the starting point for Examples A and B.

Rhino 8 (Windows) • SilverHawk v0.6.36

In the file, choose the single-objective mode of SH_BenchmarkADO (right-click, problem mode) to follow this example. All files: Demo Definitions.


Tutorial Goal ​

Maximize the Useful Daylight Illuminance / Daylight Factor (DF) of a multi-zone commercial building by adjusting 22 envelope variables (glazing ratios, shading depths, orientation, and window geometry) under a strict budget of 150 function evaluations.


Step 1: Place the Problem Component ​

  1. On your Grasshopper canvas, drop the SH_BenchmarkADO component from the 3. Benchmark ribbon panel.
  2. Right-click the component and select Create / Update Sliders.
  3. SilverHawk automatically generates the 22 decision sliders (x1 to x22) representing envelope geometry, window-to-wall ratios (WWR), and shading louvers.
Context Menu: Create / Update Sliders
Figure 1: Context menu command to automatically instantiate and configure all problem decision sliders.

Step 2: Configure the Maximization Objective ​

  1. Add an SH_Objective component from the 2. Utility panel.
  2. Connect the F3 (Daylight Factor) output of SH_BenchmarkADO to the input of SH_Objective.
  3. Right-click SH_Objective and select Maximize (▲).
    • Notice that the component displays a magenta ▲ MAX badge.
    • No negative multiplication (−1) is necessary.
Grasshopper Canvas Setup
Figure 2: Canvas wiring: Gene sliders connected to G (violet wire), and objective metric connected to F (green wire).

Step 3: Connect and Configure the Solver ​

  1. Place SH_Solver on the canvas.
  2. Wire all 22 sliders to the G (Genes) input.
  3. Wire the output of SH_Objective to the F (Fitness) input.
  4. Double-click SH_Solver to open the interface:
    • Settings Tab:
      • Algorithm: Select STRIKE (recommended for autonomous selection).
      • FE Budget: Enter 150.
      • Suppress Preview (Eye Icon): Click to enable (accelerates runtime by pausing viewport redraws).
Single-Objective Settings Panel
Figure 3: Solver Settings configured for single-objective optimization with STRIKE.

Step 4: Run and Reinstate ​

  1. Switch to the Optimization tab.
  2. Click Start.
  3. Watch the real-time convergence curve climb upward towards higher daylight factor values.
Optimization Run in Progress
Figure 4: Real-time convergence plot showing continuous fitness improvement.
  1. When the status reaches DONE, select the top row in the results table and click Reinstate.
  2. The 22 number sliders on your canvas immediately snap to their optimal coordinates!
Run Complete and Reinstate Button
Figure 5: Completed run showing best fitness achieved and Reinstate command ready.

DOWNLOADABLE DEFINITION

You can replicate this tutorial directly in Rhino 8 / 9 using the built-in benchmark components without needing external daylight simulation plugins installed.