OptimizationVariables.bounds#

OptimizationVariables.bounds(total_budget, overrides=None)[source]#

Assemble per-entry bounds, variable by variable.

Parameters:
total_budgetfloat

Total budget, used by variables’ default bounds.

overridesMapping[str, list[tuple]] or None

Explicit per-entry bounds for specific variables, replacing that variable’s defaults. Each list must have one (low, high) pair per flat entry of the variable.

Returns:
list[tuple]

One (low, high) pair per flat entry, in flat-vector order.