LoggingSimulator class
Annealing simulator capable of logging variables via an object of type DataLog.
Constructors
- LoggingSimulator(EnergyField field, {num gammaStart = 0.8, num gammaEnd = 0.1, int outerIterations = 750, int innerIterationsStart = 5, int innerIterationsEnd = 20, int sampleSize = 500})
-
Constructs an object of type
LoggingSimulator
.
Properties
- acceptanceProbability → num
-
Acceptance probability of current solution.
no setterinherited
-
acceptanceProbabilityLog
→ List<
num> -
Returns the current acceptance probability log.
no setter
- currentEnergy → num
-
Energy at current field position.
no setterinherited
-
currentEnergyLog
→ List<
num> -
Returns the current energy log.
no setter
- currentMinEnergy → num
-
Current energy minimum.
no setterinherited
-
currentMinEnergyLog
→ List<
num> -
Returns the current min. energy log.
no setter
-
currentMinPosition
→ List<
num> -
Current energy minimizing solution.
no setterinherited
-
currentPosition
→ List<
num> -
Current field position.
no setterinherited
-
currentPositionLog
→ List<
List< num> > -
Returns the current position log.
no setter
-
deltaPosition
→ List<
num> -
Current perturbation magnitude.
no setterinherited
-
deltaPositionEnd
↔ List<
num> -
Returns the perturbation magnitudes at the end of the annealing cycle.
getter/setter pairinherited
-
deltaPositionKeys
→ UnmodifiableListView<
String> -
Returns a valid list of keys that can be used to store
field.dimensions
coordinates.latefinal -
deltaPositionLog
→ List<
List< num> > -
Returns the current perturbation magnitude log.
no setter
-
deltaPositionStart
↔ List<
num> -
Returns the initial perturbation magnitudes.
getter/setter pairinherited
- field → EnergyField
-
Energy field.
finalinherited
- gammaEnd → num
-
Acceptance probability at temperature
tEnd
.finalinherited - gammaStart → num
-
Acceptance probability at temperature
tStart
.finalinherited - globalMinEnergy → num
-
Global energy minimum.
no setterinherited
-
globalMinPosition
→ List<
num> -
Global energy minimizing solution.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
info
→ Future<
String> -
Returns a
String
containing object info.no setterinherited - innerIterationsEnd → int
-
Number of iterations at constant temperature
at the end of the annealing process.
finalinherited
- innerIterationsStart → int
-
Number of iterations at constant temperature
at the start of the annealing process.
finalinherited
- logCount → int
-
Returns the number times
recordLog()
was called.no setter - outerIterations → int
-
Number of temperature steps defining the annealing schedule.
finalinherited
-
perturbationMagnitudes
→ Future<
List< List< >num> > -
Returns the sequence of perturbation magnitudes.
no setterinherited
- perturbationSequence ↔ PerturbationSequence
-
Function used to calculate the sequence of pertubation
magnitudes.
getter/setter pairinherited
-
positionKeys
→ List<
String> -
Returns a list of valid keys that can be used to store
field.dimensions
coordinates. The keys are the names of the Intervals used to define the SearchSpace, see EnergyField.latefinal - 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.
finalinherited
-
startPosition
↔ List<
num> -
Returns the starting position of the annealing process.
getter/setter pairinherited
- t → num
-
Current temperature.
no setterinherited
-
temperatureLog
→ List<
num> -
Returns the current temperature log.
no setter
-
temperatures
→ Future<
List< num> > -
Returns an UnmodifiableListView of the annealing temperatures
determining the annealing schedule.
no setterinherited
- temperatureSequence ↔ TemperatureSequence
-
Function used to calculate the temperature sequence.
getter/setter pairinherited
-
tEnd
→ Future<
num> -
Final annealing temperature.
no setterinherited
-
tStart
→ Future<
num> -
Initial annealing temperature.
no setterinherited
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.
inherited
-
export(
{int precision = 10, String delimiter = ' '}) → String - Exports all records.
-
exportFirst(
{int precision = 10, String delimiter = ' '}) → String - Exports the first record.
-
exportLast(
{int precision = 10, String delimiter = ' '}) → String - Exports the last record.
-
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.
inherited
-
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.override -
recordLog(
) → void -
Method called during each (inner) iteration.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited