StochasticHillClimber

constructor(evaluator: EvaluatorIfc, maxIterations: Int = defaultMaxNumberIterations, replicationsPerEvaluation: Int = defaultReplicationsPerEvaluation, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider, name: String? = null)

Constructs an instance of StochasticHillClimber with specified parameters.

Parameters

evaluator

The evaluator responsible for assessing the quality of solutions. Must implement the EvaluatorIfc interface.

maxIterations

The maximum number of iterations allowed for the hill climbing process.

replicationsPerEvaluation

The number of replications to perform for each evaluation of a solution.

streamNum

the random number stream number, defaults to 0, which means the next stream

streamProvider

the provider of random number streams, defaults to KSLRandom.DefaultRNStreamProvider

name

Optional name identifier for this instance of StochasticHillClimber.


constructor(evaluator: EvaluatorIfc, maxIterations: Int = defaultMaxNumberIterations, replicationsPerEvaluation: ReplicationPerEvaluationIfc, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider, name: String? = null)

Creates a StochasticHillClimber instance with the provided evaluator, maximum iterations, replications per evaluation strategy, and an optional random number stream and name.

Parameters

evaluator

An evaluator object that provides the problem definition and performs solution evaluation.

maxIterations

The maximum number of iterations the algorithm is allowed to execute.

replicationsPerEvaluation

An instance of ReplicationPerEvaluationIfc defining the strategy for determining the number of replications per evaluation.

streamNum

the random number stream number, defaults to 0, which means the next stream

streamProvider

the provider of random number streams, defaults to KSLRandom.DefaultRNStreamProvider

name

An optional name for this solver instance.