Solve

Solve#

class Solve#

Immutable record of one solver call.

A Solve always stores the input Instance, adapter class name, and JSON-encoded adapter options for one Run.log_solve call. A finished Solve stores the output Solution; 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 with json.loads before returning it.

property diagnostics: list[Any]#

Read-only property.

Adapter-defined diagnostics recorded during this solve.

property input: Instance#

Read-only property.

Input Instance passed to the solver.

property output: Optional[Solution]#

Read-only property.

Output Solution returned by the solver, or None if 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".