Skip to content

Interface: SolveProblemRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / SolveProblemRequest

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

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

Wire shape (snake_case): { constraints, gap_tolerance, hint, objective, time_limit_ms, variables }.

optional constraints?: LinearConstraint[]

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

Linear constraints over the variables.


optional gapTolerance?: number | null

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

Relative MIP gap tolerance (e.g. 0.01 for 1%). 0.0 means solve to proven optimum.


optional hint?: SolverHint

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

Backend-selection hint.


optional objective?: Objective | null

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

Objective function; omit for a pure feasibility solve.


optional timeLimitMs?: number | null

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

Wall-clock limit per solve, in milliseconds. Defaults server-side to 30000.


variables: VariableSpec[]

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

The decision variables of the problem.