Completed

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(source)

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

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Why the run ended: "Stopping Criteria Satisfied", "Maximum Iterations Reached", "Maximum Execution Time Reached", "Halted Before Completion", "Ended With An Error" when an exception ended the run, or "Not Finished" for a run read before it ended. A run stepped with runNextIteration and then ended with endIterations is halted only if it could have gone on; one that had used every iteration, or reached its time limit, reports that limit. The solver records it when the run ends, so a later change to the solver's settings does not alter it. A property of the body rather than the constructor, so the constructor and copy keep their signatures; copy does not carry it, and a result made directly reports the criteria or a halt.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun toReportString(): String

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

Link copied to clipboard
open override fun toString(): String