Simulator class Null safety

Annealing simulator

Implementers

Constructors

Simulator(EnergyField field, {num gammaStart = 0.7, num gammaEnd = 0.5, int iterations = 750})
Simulator constructor.

Properties

acceptanceProbability num
Acceptance probability of current solution.
read-only
currentEnergy num
Energy at current field position.
read-only
currentGrid List<int>
Returns the grid used in the current iteration step.
read-only
currentMinEnergy num
Current energy minimum.
read-only
currentMinPosition List<num>
Current energy minimizing solution.
read-only
currentPosition List<num>
Current field position.
read-only
deltaPosition List<num>
Current perturbation magnitude.
read-only
deltaPositionEnd List<num>
Returns the perturbation magnitudes at the end of the annealing cycle.
read / write
deltaPositionStart List<num>
Returns the initial perturbation magnitudes.
read / write
gammaEnd num
Acceptance probability at temperature tEnd.
final
gammaStart num
Acceptance probability at temperature tStart.
final
globalMinEnergy num
Global energy minimum.
read-only
globalMinPosition List<num>
Global energy minimizing solution.
read-only
grid Future<List<List<int>>>
Returns the currently used sequence of grid vectors.
read-only
gridEnd List<int>
Returns the number of grid points along each dimension at the end of the annealing process.
read / write
gridStart List<int>
Returns the grid sizes at the beginning of the annealing process.
read / write
hashCode int
The hash code for this object.
read-only, inherited
info Future<String>
Returns a String containing object info.
read-only
iterations int
Number of outer simulated annealing iterations.
final
perturbationMagnitudes Future<List<List<num>>>
Returns the sequence of perturbation magnitudes.
read-only
perturbationSequence PerturbationSequence
Function used to calculate the sequence of pertubation magnitudes.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
startPosition List<num>
Returns the starting position of the annealing process.
read / write
t num
Current temperature.
read-only
temperatures Future<List<num>>
The annealing temperatures (annealing schedule).
read-only
temperatureSequence TemperatureSequence
Function used to calculate the temperature sequence.
read / write
tEnd Future<num>
Final annealing temperature.
read-only
tStart Future<num>
Initial annealing temperature.
read-only

Methods

anneal(MarkovChainLength markov, {bool isRecursive = false, num ratio = 0.5, bool isVerbose = false}) Future<List<num>>
Starts the simulated annealing process and returns the best solution found.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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