Interface: LinExpr
@kortexya/reasoninglayer / LinExpr
Interface: LinExpr
Section titled “Interface: LinExpr”Defined in: src/types/solver.ts:155
A linear expression Σ coeff·var + constant over flat decision-variable
indices.
Remarks
Section titled “Remarks”Wire shape (snake_case): { constant, terms }.
Properties
Section titled “Properties”constant?
Section titled “constant?”
optionalconstant?:number
Defined in: src/types/solver.ts:157
The constant addend.
terms?
Section titled “terms?”
optionalterms?:LinTerm[]
Defined in: src/types/solver.ts:159
The coeff·var terms.