Skip to content

Objective Direction: The MIN / MAX Rule ​

In parametric design, objectives naturally point in different directions: some metrics must be minimized (energy demand, structural mass, fabrication cost, material deflection), while others must be maximized (useful daylight illuminance, structural stiffness, views, floor area).

Some optimization tools minimize every objective, so a maximized quantity has to be negated by hand. SilverHawk declares the direction explicitly (the Direction Rule) and reports results in their natural, un-negated units.

Direction Rule Canvas in Grasshopper
Figure 1: ADO 3-objective setup on canvas: two SH_Objective components configured as MIN (F1, F2) and one as MAX (F3) wired into the solver.

The Problem with Multiplying by -1 ​

In tools that assume minimization only, a designer who wants to maximize an objective such as Daylight Factor (DF) has to multiply the fitness output by −1.

This introduced severe friction into the design workflow:

  1. Inverted Charts: The convergence curve plunged into negative numbers (e.g. searching towards −65%).
  2. Distorted Pareto Fronts: Scatter plots displayed inverted axes that were counter-intuitive to present to clients or review committees.
  3. Data Post-Processing Overhead: Every exported CSV or table required manual multiplication by −1 in Excel or Python before reporting real performance figures.

SilverHawk's Three Operational Cases ​

SilverHawk handles objective direction natively through the SH_Objective component and solver inspection:

SH_Objective in MAX mode with context menu
Figure 2: SH_Objective component toggled to ▲ MAX via its right-click context menu.

Case 1: Raw Numbers (No SH_Objective) ​

If you connect raw numerical outputs directly from your Grasshopper components into the solver's F input, SilverHawk applies the global direction specified in the solver's Settings tab (which defaults to Minimize).

Case 2: Explicit Direction via SH_Objective ​

Placing SH_Objective between your analytical model and SH_Solver allows you to explicitly toggle between Minimize (▼) and Maximize (▲) via its right-click context menu. The solver automatically reads the upstream component state.

Case 3: Mixed Multi-Objective Optimization ​

In multi-objective scenarios, different objectives often have opposing goals:

  • For example, in the ADO-D22 architectural benchmark:
    • F1 (Annual energy demand, Qtot): MIN
    • F2 (Overheating hours, Kh): MIN
    • F3 (Daylight Factor): MAX
  • By wiring individual SH_Objective components with their respective directions into the solver's F input, SilverHawk coordinates the Pareto dominance sorting automatically.

Canonical Internal Handling vs. Natural Reporting ​

To maintain mathematical consistency across all 20 solvers:

  • Internal Canonicalization: Solvers internally minimize −f(x) for maximization objectives so that algorithm mathematical operators (e.g., velocity updates in PSO, mutation in DE) remain mathematically exact.
  • Transparent External Reporting: The solver GUI, real-time convergence charts, 2D/3D Pareto scatter plots, CSV export logs, and the Bf and Bo component outputs always display the true, un-negated physical values. A Daylight Factor of 65% is displayed as +65%, not −65%.