RandomRestartSolver

class RandomRestartSolver(val restartingSolver: Solver, maxNumRestarts: Int = defaultMaxRestarts, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider, name: String? = null) : StochasticSolver(source)

A class that implements the Random Restart optimization algorithm. This algorithm repeatedly runs the solver with a different starting point until it finds a solution.

Parameters

restartingSolver

The solver to be used for the randomized restarts.

maxNumRestarts

The maximum number of restarts to be performed.

streamNum

The random number stream number to be used for this solver.

streamProvider

The random number stream provider to be used for this solver.

name

Optional name identifier for this instance of the solver.

Constructors

Link copied to clipboard
constructor(restartingSolver: Solver, maxNumRestarts: Int = defaultMaxRestarts, streamNum: Int = 0, streamProvider: RNStreamProviderIfc = KSLRandom.DefaultRNStreamProvider, name: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Indicates whether the evaluator cache should be cleared between runs. Defaults to true. If the evaluator does not support caching, this value is ignored.

Link copied to clipboard