SolverResult

sealed class SolverResult(source)

A strongly-typed, immutable snapshot of a solver's result state.

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
data class Completed(val solverName: String, val problemName: String, val initialSolution: Solution?, val currentSolution: Solution, val bestSolution: Solution?, val totalIterations: Int, val evaluatorMetrics: EvaluatorMetrics, val isStoppingCriteriaMet: Boolean, val executionTimeMillis: Long? = null) : SolverResult

Represents the completed (or partially completed/halted) trajectory of a solver run.

Link copied to clipboard
data class NotExecuted(val solverName: String, val problemName: String) : SolverResult

Represents a state where the solver has been configured but not yet executed.

Functions

Link copied to clipboard
abstract fun toReportString(): String

Generates a human-readable summary of the current state or results.