Companion
object Companion
Properties
Link copied to clipboard
Represents the default maximum number of iterations to be executed in a given process or algorithm. This value acts as a safeguard to prevent indefinite looping or excessive computation.
Link copied to clipboard
Represents the default number of replications to be performed during an evaluation.
Functions
Link copied to clipboard
fun simulatedAnnealer(problemDefinition: ProblemDefinition, modelBuilder: ModelBuilderIfc, startingPoint: MutableMap<String, Double>? = null, initialTemperature: Double = defaultInitialTemperature, maxIterations: Int = defaultMaxNumberIterations, replicationsPerEvaluation: Int = defaultReplicationsPerEvaluation, printer: (Solution) -> Unit? = null): SimulatedAnnealing
Creates and configures a simulated annealing optimization algorithm for a given problem definition.
Link copied to clipboard
fun stochasticHillClimber(problemDefinition: ProblemDefinition, modelBuilder: ModelBuilderIfc, startingPoint: MutableMap<String, Double>? = null, maxIterations: Int = defaultMaxNumberIterations, replicationsPerEvaluation: Int = defaultReplicationsPerEvaluation, printer: (Solution) -> Unit? = null): StochasticHillClimber
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.