createStochasticHillClimbingSolver

fun createStochasticHillClimbingSolver(problemDefinition: ProblemDefinition, modelBuilder: ModelBuilderIfc, startingPoint: MutableMap<String, Double>? = null, maxIterations: Int = defaultMaxNumberIterations, replicationsPerEvaluation: Int = defaultReplicationsPerEvaluation, solutionCache: SolutionCacheIfc = MemorySolutionCache(), simulationRunCache: SimulationRunCacheIfc? = null, experimentRunParameters: ExperimentRunParametersIfc? = null, defaultKSLDatabaseObserverOption: Boolean = false): StochasticHillClimber(source)

Creates and configures a stochastic hill climber to solve the given problem definition using a simulation-based evaluation approach. The default configuration has the evaluator configured to use a solution cache.

Return

A configured instance of the StochasticHillClimber ready to begin optimization.

Parameters

problemDefinition

The definition of the optimization problem to solve, including parameters and constraints.

modelBuilder

An interface for building the simulation model required for evaluations.

startingPoint

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

maxIterations

The maximum number of hill climbing iterations to perform.

replicationsPerEvaluation

The number of simulations or evaluations performed per solution to estimate its quality.

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

defaultKSLDatabaseObserverOption

indicates if a default KSL database should be created and attached to the model. The default is false.