Skip to content

SH_SlidersUnBias ​

The SH_SlidersUnBias component randomizes slider values within their bounds so that optimization runs do not all begin from the same hand-set configuration, and defines which variables are active or fixed.

Its label displays the count of active and fixed variables (for example, 8 active, 2 fixed).

SH_SlidersUnBias Component
Figure 1: SH_SlidersUnBias component.
SH_SlidersUnBias Context Menu
Figure 2: Context menu options.

Component Ports Reference ​

PortNameDescription
GGenesThe sliders to act on (the exact same sliders connected to SH_Solver).
SSeedRandom seed: 0 = different seed each time; > 0 = strictly reproducible run. Supplying the same seed guarantees every solver starts from the exact same initial coordinates.
Min, MaxDomainNew lower and upper bounds applied to all connected sliders via Set Domain.
FxFixedZero-based indices of variables to exclude from the optimization (e.g. a panel containing 14, 23, 27). Fixed variables retain their current value throughout the entire run.
L, VOutputsL: Log summary of the last randomization (old → new values). V: List of newly assigned slider values.

Variable Masking & Canvas Setup ​

Wiring a panel of zero-based integers into input Fx fixes those specific variables, allowing you to selectively freeze parameters without dismantling your Grasshopper definition:

SH_SlidersUnBias Wired in Grasshopper
Figure 3: Solver with SH_SlidersUnBias wired: the Fx panel fixes variables 2 and 4.

Multiple UnBias Warning (Union Merge) ​

If several SH_SlidersUnBias components with Fx are placed on the canvas, the solver merges their fixed variables (union) and reports it with an orange warning balloon on the component:

SH_SlidersUnBias Duplicate Warning Balloon
Figure 4: Two SH_SlidersUnBias components: the fixed variables are merged and the solver flags it with a warning.

BENCHMARK INTEGRITY & REPRODUCIBILITY

When conducting academic benchmarks or multi-run statistical comparisons, setting an integer seed in S (>0) ensures identical initial populations across competing algorithms. Batch runs automatically generate independent starts by design.