Skip to content

SH_Solver ​

The SH_Solver component is the central nerve center of SilverHawk. It coordinates the optimization process, drives Grasshopper number sliders (and Galapagos gene pools), collects fitness metrics, and displays the interactive UI panel.

SH_Solver Component on Canvas
Figure 1: SH_Solver component.
SH_Solver Context Menu
Figure 2: SH_Solver right-click context menu.

Component Ports Reference ​

Input Ports ​

PortNameTypeDescription
GGenesNumber, listNumber sliders (native Galapagos gene pools are also accepted). Each slider's Min and Max define the search domain.
FFitnessNumber, listOne value (single-objective) or several values (multi-objective) to optimize. Direction and weights are set by SH_Objective or in the panel.

Output Ports ​

PortNameTypeDescription
BfBest FitnessNumberBest fitness found during the run.
BoBest ObjectivesNumber, listRaw per-objective values of the best solution; for MO, of the first Pareto-front member. Empty for a single objective without SH_Objective.
DDataSolver resultComplete optimization session result: convergence history, best genes, Pareto front, variable metadata, and algorithm profiling.
RReportTextOptimization summary report.

The component status message beneath the component name displays the version and the run status (IDLE, RUNNING, DONE, STOPPED...) with elapsed iterations or time.


Context Menu Commands ​

Right-clicking the SH_Solver component provides the following commands:

  • Open Solver Panel: Opens the main interface window. Only one solver panel can be open at a time across all active definitions; a second attempt displays an alert dialog (Figure 3).
  • Add all sliders / Add selected sliders: Connects canvas sliders directly to input G.
  • Remove ALL Genes / Remove selected genes: Detaches connected sliders.
  • Remove slider (Hover Menu): Allows detaching individual sliders directly by hovering over the submenu, which highlights the target slider with an orange REMOVE bounding box on the canvas (Figure 4).
  • Remove ALL Fitness / Remove fitness: Detaches fitness inputs.
  • Reinstate from CSV...: Restores canvas sliders from a previously exported .csv log.
  • License: Displays the registered email address and allows changing or removing the license.
Single instance warning
Figure 3: Warning shown if a second solver panel is requested.
Remove slider hover menu
Figure 4: Removing a single slider through the hover menu.

Operational Notes & Performance Safeguards ​

COMPONENT DELETION & CLOSING

The solver panel is a direct child window of the component. While it is open, the component cannot be accidentally deleted with the keyboard. Closing the panel, closing the definition, or removing the component closes the panel as well. While a run is actively in progress, the panel cannot be closed with the Close button: press Stop first.

EVALUATION OVERHEAD WARNING

All components located between the sliders and the objective are recomputed at every single evaluation. Anything that depends on the sliders but is not needed for the objective (e.g. heavy mesh previews, bakes, or secondary analyses) will slow down every evaluation and should be disabled or detached during an optimization run.