ParallelEvaluationOptions

data class ParallelEvaluationOptions(val enabled: Boolean = false, val numWorkers: Int? = null, val shortCircuitSinglePoint: Boolean = true)(source)

Options that select and configure parallel evaluation when building an evaluator via Evaluator.createProblemEvaluator (and the Solver.create* factories that delegate to it).

Defaults preserve the historical behavior: enabled = false builds the sequential SimulationProvider. When enabled is true, a ParallelSimulationProvider is built instead, which evaluates the points of a multi-point request concurrently (single-point requests still run on one reused model — see shortCircuitSinglePoint).

Parameters

enabled

when true, build a parallel evaluation oracle; default false (sequential)

numWorkers

the maximum number of concurrent model evaluations; null uses the number of available processors. Must be > 0 when specified.

shortCircuitSinglePoint

when true (default), a single-point request runs on one reused model rather than the parallel path; see ParallelSimulationProvider

Constructors

Link copied to clipboard
constructor(enabled: Boolean = false, numWorkers: Int? = null, shortCircuitSinglePoint: Boolean = true)

Properties

Link copied to clipboard
Link copied to clipboard