Skip to content

Interface: Objective

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Solver / Objective

Interface: Objective

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

Objective function to optimize.

Remarks

Wire shape (snake_case): { coefficients, constant, sense }.

Properties

coefficients?

optional coefficients: Record<string, number>

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

Variable-name → coefficient.


constant?

optional constant: number

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

Constant addend.


sense

sense: ObjectiveSense

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

Direction of the objective function.