Skip to content

Interface: OptimalResult

@kortexya/reasoninglayer


@kortexya/reasoninglayer / OptimalResult

Defined in: src/types/optimize.ts:150

A successful optimization result with an optimal solution.

objectiveValue: number

Defined in: src/types/optimize.ts:156

Objective function value at the optimum.


solveTimeMs: number

Defined in: src/types/optimize.ts:158

Solve time in milliseconds.


status: "optimal"

Defined in: src/types/optimize.ts:152

The problem was solved to optimality.


optional validBefore?: string

Defined in: src/types/optimize.ts:165

The instant at which this result may stop being true without any write: the earliest end of a governed authority relation fact, or of a conclusion resting on one, that the solver’s proof could read. Do not reuse the result at or after this instant. Absent when no such fact ends.


variables: Record<string, number>

Defined in: src/types/optimize.ts:154

Variable values at the optimum.