Type Alias: LinearExpression
@kortexya/reasoninglayer / LinearExpression
Type Alias: LinearExpression
Section titled “Type Alias: LinearExpression”LinearExpression =
Record<string,number>
Defined in: src/types/optimize.ts:27
A linear expression as a map from variable names to coefficients.
Remarks
Section titled “Remarks”Variables not present in the map have an implicit coefficient of 0.
Example
Section titled “Example”// Represents: 3*chairs + 5*tablesconst expr: LinearExpression = { chairs: 3, tables: 5 };