createCrossEntropySolver

fun createCrossEntropySolver(problemDefinition: ProblemDefinition, modelBuilder: ModelBuilderIfc, ceSampler: CESampler? = null, startingPoint: MutableMap<String, Double>? = null, maxIterations: Int = defaultMaxNumberIterations, replicationsPerEvaluation: Int = defaultReplicationsPerEvaluation, solutionCache: SolutionCacheIfc = MemorySolutionCache(), simulationRunCache: SimulationRunCacheIfc? = null, experimentRunParameters: ExperimentRunParametersIfc? = null, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = RNStreamProvider(), name: String? = null, parallelOptions: ParallelEvaluationOptions = ParallelEvaluationOptions()): CrossEntropySolver(source)

Creates and configures a cross-entropy optimization algorithm for a given problem definition.

Return

An instance of CrossEntropySolver that encapsulates the optimization process and results.

Parameters

problemDefinition

The definition of the optimization problem, including constraints and objectives.

modelBuilder

The model builder interface used to create models for evaluation.

startingPoint

Optional initial coordinates to start the optimization. If left null, the solver will automatically generate a random feasible starting point upon initialization.

ceSampler

The cross-entropy sampler (reference distribution). When null (the default), a CENormalSampler is created. The solver attaches the sampler onto its own stream provider.

maxIterations

The maximum number of iterations the algorithm will run. Defaults to 1000.

replicationsPerEvaluation

The number of replications to use during each evaluation to reduce stochastic noise. Defaults to 50.

solutionCache

Specifies if the evaluator uses a solution cache. By default, this is MemorySolutionCache.

simulationRunCache

Specifies if the simulation oracle will use a SimulationRunCache. The default is null (no cache).

experimentRunParameters

the run parameters to apply to the model during the building process

streamNum

the random number stream number for the solver; 0 (the default) means the next available stream

streamProvider

the provider of random number streams; the cross-entropy sampler draws its stream from this same provider, so the solver and sampler share one provider (distinct streams)