Interface: VariableSpec
@kortexya/reasoninglayer / VariableSpec
Interface: VariableSpec
Section titled “Interface: 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.
Remarks
Section titled “Remarks”Wire shape (snake_case): { kind, lower_bound, name, upper_bound }.
Properties
Section titled “Properties”
optionalkind?:VarKind
Defined in: src/types/solver.ts:93
Variable kind. Defaults to "continuous".
lowerBound?
Section titled “lowerBound?”
optionallowerBound?: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.
upperBound?
Section titled “upperBound?”
optionalupperBound?:number
Defined in: src/types/solver.ts:97
Upper bound. Use positive infinity for unbounded above. Ignored for "binary" (forced to 1).