LoggingSimulator constructor

LoggingSimulator(
  1. EnergyField field, {
  2. num gammaStart = 0.8,
  3. num gammaEnd = 0.1,
  4. int outerIterations = 750,
  5. int innerIterationsStart = 5,
  6. int innerIterationsEnd = 20,
  7. int sampleSize = 500,
})

Constructs an object of type LoggingSimulator.

  • field: An object of type EnergyField encapsulating the energy function (cost function) and search space.

Optional parameters:

  • gammaStart: Probability of solution acceptance if dE == dEnergyStart and the temperature is the initial temperature of the annealing process.
  • gammaEnd: Probability of solution acceptance if dE == dEnergyEnd and the temperature is the final temperatures of the annealing process.
  • outerIterations: Number of iterations when cooling.
  • innerIterationsStart: Number of iterations at constant temperature at the start of the annealing process.
  • innerIterationsEnd: Number of iterations at constant temperature at the end of the annealing process.
  • sampleSize: Size of sample used to estimate the start temperature and the final temperature of the annealing process.

Implementation

LoggingSimulator(
  EnergyField field, {
  num gammaStart = 0.8,
  num gammaEnd = 0.1,
  int outerIterations = 750,
  int innerIterationsStart = 5,
  int innerIterationsEnd = 20,
  int sampleSize = 500,
}) : super(
        field,
        gammaStart: gammaStart,
        gammaEnd: gammaEnd,
        outerIterations: outerIterations,
        sampleSize: sampleSize,
        innerIterationsStart: innerIterationsStart,
        innerIterationsEnd: innerIterationsEnd,
      );