Companion

object Companion

Functions

Link copied to clipboard
fun createProblemEvaluator(problemDefinition: ProblemDefinition, modelBuilder: ModelBuilderIfc): Evaluator

Creates an instance of an Evaluator for a given problem definition and simulation model which uses a memory-based solution cache to improve the efficiency of evaluations. The simulation execution is based on a SimulationProvider, which runs locally in the same thread as the evaluator. During the evaluation process the same model is used repeatedly.

Link copied to clipboard
fun createSimulationServiceProblemEvaluator(problemDefinition: ProblemDefinition, modelIdentifier: String, modelBuilder: ModelBuilderIfc): Evaluator

Creates an instance of Evaluator for managing simulation service problem evaluation. The method validates the compatibility of the problem definition with the provided model, constructs a simulator using the model, and initializes the evaluator with a solution cache.

Link copied to clipboard

The list of requests may come from different solvers. The requests may have the same design point (inputs). If so, we need to remove any requests for the same inputs, and keep the duplicate that has the maximum number of replications. This ensures that the evaluation covers any request with fewer replications and does not repeat expensive simulation evaluations on the same input values.