Skip to content

Quick Start (10 Minutes) ​

Get your first optimization run running in Grasshopper in less than 10 minutes using the built-in synthetic benchmark.


Video Tutorial: Intro & D2 Synthetic Test-Zero ​

Watch the complete walkthrough video by Luciano Ambrosini covering problem setup, slider connections, and the optimization run:


Prefer to start from a ready file?

The synthetic benchmark definition below contains the single-objective test functions already wired; open it instead of building the canvas step by step.

.GH
Synthetic single-objective benchmark (.gh)88 KB

Single-objective test functions (centered and shifted forms) in one all-in-one component.

Rhino 8 (Windows) • SilverHawk v0.6.36

Step 1: Set up the Problem ​

  1. In Grasshopper, navigate to the SilverHawk ribbon tab, under panel 3. Benchmark.
  2. Drop the SH_BenchmarkSO component onto an empty canvas.
  3. Right-click the component and select Create / Update Sliders. SilverHawk automatically creates and configures the input sliders (x1,x2,x3) with optimal domains.
SH_BenchmarkSO component
Figure 1: SH_BenchmarkSO component on the Grasshopper canvas.

Step 2: Wire the Solver ​

  1. Go to ribbon panel 1. Solver and place the SH_Solver component onto the canvas.
  2. Connect the gene sliders to the G (Genes) input of SH_Solver.
  3. Connect the objective output F of SH_BenchmarkSO to the F (Fitness) input of SH_Solver.
Quick Start Grasshopper Wiring
Figure 2: Complete canvas wiring: gene sliders connected to G (violet wire), and benchmark fitness connected to F (green wire).

Step 3: Configure Settings ​

  1. Double-click the center of SH_Solver to open the floating solver interface.
  2. In the Settings tab:
    • Algorithm: Select STRIKE (recommended for an unknown problem: tests the candidate solvers in a warm-up, then continues with the best one).
    • FE Budget: Set a fixed evaluation limit (e.g., 200 evaluations).
    • Objective Direction: By default, single-objective targets Minimize.
Single-Objective Settings Panel
Figure 3: Solver Settings tab configured for a single-objective run.

Step 4: Run Optimization & Reinstate ​

  1. Switch to the Optimization tab.
  2. Click Start. You will observe:
    • The progress bar advancing through the evaluation budget.
    • The real-time convergence chart plotting the best fitness found so far.
    • The results table listing evaluated candidate designs.
  3. Once the status shows DONE, select the top row in the table (the best design) and click Reinstate.
  4. The sliders on your Grasshopper canvas immediately update to their optimal coordinates!
Single-Objective Optimization Run in Progress
Figure 4: Live optimization run showing the convergence trajectory and evaluated design table.

AUTO-REINSTATE FROM CSV

You can also export your full run via Export CSV, and later restore any design state at any time using the solver's right-click context menu: Reinstate from CSV....