Interface: ObjectiveFunction
@kortexya/reasoninglayer / ObjectiveFunction
Interface: ObjectiveFunction
Section titled “Interface: ObjectiveFunction”Defined in: src/types/optimize.ts:82
Objective function to optimize.
Example
Section titled “Example”// Maximize 3*chairs + 5*tablesconst obj: ObjectiveFunction = { direction: 'maximize', coefficients: { chairs: 3, tables: 5 },};Properties
Section titled “Properties”coefficients
Section titled “coefficients”coefficients:
LinearExpression
Defined in: src/types/optimize.ts:86
Coefficients per variable in the objective expression.
direction
Section titled “direction”direction:
OptimizationDirection
Defined in: src/types/optimize.ts:84
Optimization direction.