Skip to content

Interface: SolveProblemResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / SolveProblemResponse

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

Response body for POST /api/v1/solver/solve.

Wire shape (snake_case): { message, objective_value, solve_time_ms, solver, status, values }.

optional message?: string | null

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

Optional diagnostic message (e.g. when status is "unknown").


optional objectiveValue?: number | null

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

Objective value at the optimum, when an objective was supplied.


solver: string

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

"cp_sat" or "highs".


solveTimeMs: number

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

Wall-clock solve time inside the solver service, in milliseconds.


status: SolutionStatus

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

Status reported by the solver.


values: Record<string, number>

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

Variable-name → optimal value. Empty for infeasible/unbounded.