bar_set_band_constraint
Set an acceptable range for one axis of a recipe slot, applying graded penalties outside the bounds and optional hard disqualification for critical axes.
Instructions
Set a Band constraint on one axis of a recipe slot.
Band = "acceptable range; zero penalty inside, graded penalty outside."
Use Band for the forgiving axes of a slot — most slots are wide on most
axes. Set hard=True for the one or two axes that truly disqualify a
candidate (e.g. Negroni gin → floral Band(0,2,hard=True): aggressive floral
fights Campari).
For gin axes are 0–3; lo/hi are inclusive integer bounds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hi | Yes | ||
| lo | Yes | ||
| axis | Yes | ||
| hard | No | ||
| sort | Yes | ||
| out_weight | No | ||
| cocktail_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |