Interface: VariableSpec
@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?
optionalkind:VarKind
Defined in: src/types/solver.ts:105
Variable kind. Defaults to "continuous".
lowerBound?
optionallowerBound: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?
optionalupperBound:number
Defined in: src/types/solver.ts:109
Upper bound. Use positive infinity for unbounded above. Ignored for "binary" (forced to 1).