Skip to content

Interface: VariableSpec

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Solver / VariableSpec

Interface: VariableSpec

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

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

Remarks

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

Properties

kind?

optional kind: VarKind

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

Variable kind. Defaults to "continuous".


lowerBound?

optional lowerBound: number

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

Lower bound. Use negative infinity for unbounded below.


name

name: string

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

Caller-chosen identifier. Must be unique.


upperBound?

optional upperBound: number

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

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