Solve#
- class Solve#
Immutable record of one solver call.
A
Solvealways stores the inputInstance, adapter class name, and JSON-encoded adapter options for oneRun.log_solvecall. A finished Solve stores the outputSolution; failed and interrupted Solve records have no output.- __repr__() str#
- property adapter: str#
Read-only property.
SolverAdapter class name used for this solve.
- property adapter_options: dict[str, Any]#
Read-only property.
Keyword arguments passed to the SolverAdapter.
The artifact stores this value as a JSON string produced by Python's
json.dumps; the Python SDK decodes it withjson.loadsbefore returning it.
- property diagnostics: list[Any]#
Read-only property.
Adapter-defined diagnostics recorded during this solve.
- property input: Instance#
Read-only property.
Input
Instancepassed to the solver.
- property output: Optional[Solution]#
Read-only property.
Output
Solutionreturned by the solver, orNoneif the solve failed before returning one.
- property solve_id: int#
Read-only property.
Integer identifier of this solve within its run.
- property status: str#
Read-only property.
Solve lifecycle status:
"finished","failed", or"interrupted".