Solve

Solve#

class Solve#

Immutable record of one solver call.

A Solve stores the input Instance, output Solution, adapter class name, and JSON-encoded adapter options for one Run.log_solve call.

__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 input: Instance#

Read-only property.

Input Instance passed to the solver.

property output: Solution#

Read-only property.

Output Solution returned by the solver.

property solve_id: int#

Read-only property.

Integer identifier of this solve within its run.