createProblemEvaluator

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.

Return

An Evaluator instance configured with the specified problem definition, simulation provider, and a memory-based solution cache.

Parameters

problemDefinition

Represents the definition of the problem, including the objectives, constraints, and other domain-specific configurations required for evaluation.

modelBuilder

a builder instance responsible for constructing the simulation model used during problem evaluation.

Throws

if the problem definition and the model are not input/response compatible use ProblemDefinition.validateProblemDefinition to check.