Skip to content

Interface: VariableSpec

@kortexya/reasoninglayer


@kortexya/reasoninglayer / VariableSpec

Defined in: src/types/solver.ts:89

A single decision variable. Names must be unique within a problem and are echoed verbatim in the response values map.

Wire shape (snake_case): { kind, lower_bound, name, upper_bound }.

optional kind?: VarKind

Defined in: src/types/solver.ts:93

Variable kind. Defaults to "continuous".


optional lowerBound?: number

Defined in: src/types/solver.ts:95

Lower bound. Use negative infinity for unbounded below.


name: string

Defined in: src/types/solver.ts:91

Caller-chosen identifier. Must be unique.


optional upperBound?: number

Defined in: src/types/solver.ts:97

Upper bound. Use positive infinity for unbounded above. Ignored for "binary" (forced to 1).