Simulator class abstract

Annealing simulator

Implementers

Constructors

Simulator(EnergyField field, {num gammaStart = 0.7, num gammaEnd = 0.2, int outerIterations = 750, int innerIterationsStart = 5, int innerIterationsEnd = 20, int sampleSize = 500})
Simulator constructor.

Properties

acceptanceProbability num
Acceptance probability of current solution.
no setter
currentEnergy num
Energy at current field position.
no setter
currentMinEnergy num
Current energy minimum.
no setter
currentMinPosition List<num>
Current energy minimizing solution.
no setter
currentPosition List<num>
Current field position.
no setter
deltaPosition List<num>
Current perturbation magnitude.
no setter
deltaPositionEnd List<num>
Returns the perturbation magnitudes at the end of the annealing cycle.
getter/setter pair
deltaPositionStart List<num>
Returns the initial perturbation magnitudes.
getter/setter pair
field EnergyField
Energy field.
final
gammaEnd num
Acceptance probability at temperature tEnd.
final
gammaStart num
Acceptance probability at temperature tStart.
final
globalMinEnergy num
Global energy minimum.
no setter
globalMinPosition List<num>
Global energy minimizing solution.
no setter
hashCode int
The hash code for this object.
no setterinherited
info Future<String>
Returns a String containing object info.
no setter
innerIterationsEnd int
Number of iterations at constant temperature at the end of the annealing process.
final
innerIterationsStart int
Number of iterations at constant temperature at the start of the annealing process.
final
outerIterations int
Number of temperature steps defining the annealing schedule.
final
perturbationMagnitudes Future<List<List<num>>>
Returns the sequence of perturbation magnitudes.
no setter
perturbationSequence PerturbationSequence
Function used to calculate the sequence of pertubation magnitudes.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleSize int
Size of the sample used to estimate the initial and final annealing temperature.
final
startPosition List<num>
Returns the starting position of the annealing process.
getter/setter pair
t num
Current temperature.
no setter
temperatures Future<List<num>>
Returns an UnmodifiableListView of the annealing temperatures determining the annealing schedule.
no setter
temperatureSequence TemperatureSequence
Function used to calculate the temperature sequence.
getter/setter pair
tEnd Future<num>
Final annealing temperature.
no setter
tStart Future<num>
Initial annealing temperature.
no setter

Methods

anneal({bool isRecursive = false, num ratio = 0.5, bool isVerbose = false}) Future<List<num>>
Starts the simulated annealing process and returns the best solution found.
iterationMap({bool isRecursive = false, num ratio = 0.5}) Future<Map<int, int>>
Returns a map containing the number of inner iterations for each outer iteration step.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareLog() → void
Method called once from within anneal before any simulated annealing iterations.
recordLog() → void
Method called during each (inner) iteration.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited