SolverMemberResult

data class SolverMemberResult(val memberIndex: Int, val label: String, val bestSolution: Solution, val numOracleCalls: Int, val numReplicationsRequested: Int, val solverResult: SolverResult?, val status: MemberStatus, val error: Throwable? = null, val cpuTimeMillis: Long? = null)(source)

The result of one member of a concurrent solver run, captured on the member's worker after its solver finished (or failed). Results are safe to read once obtained from the runner: the await establishes the necessary happens-before ordering.

Parameters

memberIndex

the 0-based index of the member within the run

label

the member's label

bestSolution

the best solution the member found; the problem's bad solution when the member failed or never ran

numOracleCalls

the member solver's cumulative oracle-call count

numReplicationsRequested

the member solver's cumulative requested replications

solverResult

the member solver's full result record, when the solver was created and ran; null when the member never ran

status

the member's lifecycle outcome

error

the failure cause when status is FAILED; null otherwise

cpuTimeMillis

the CPU time the member's worker thread spent running the solver, in milliseconds. Unlike wall-clock time this does not depend on the worker count or on how busy the machine was, so it is comparable across machines. It counts only the worker thread: any work the evaluator hands to other threads is not included, so on a delegating evaluator this is below wall clock rather than above it. Null when the member never ran or when the JVM does not support or has disabled per-thread CPU time.

Constructors

Link copied to clipboard
constructor(memberIndex: Int, label: String, bestSolution: Solution, numOracleCalls: Int, numReplicationsRequested: Int, solverResult: SolverResult?, status: MemberStatus, error: Throwable? = null, cpuTimeMillis: 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
Link copied to clipboard