Skip to content

Interface: LinExpr

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Solver / LinExpr

Interface: LinExpr

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

A linear expression Σ coeff·var + constant over flat decision-variable indices.

Remarks

Wire shape (snake_case): { constant, terms }.

Properties

constant?

optional constant: number

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

The constant addend.


terms?

optional terms: LinTerm[]

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

The coeff·var terms.