C# Class SwarmOps.FitnessTraceQuartiles

Store fitness-values at intervals during optimization runs and write their quartiles to a file afterwards. This only supports a fixed number of optimization runs and iterations per run which must therefore be known in advance. Keep the number of intervals small because it requires much memory.
A matrix of fitness values is being stored and their quartiles computed after optimization.
Inheritance: FitnessTrace
Afficher le fichier Open project: DanWBR/dwsim3 Class Usage Examples

Protected Properties

Свойство Type Description
Trace List[]

Méthodes publiques

Méthode Description
Clear ( ) : void

Clear the stored fitness trace.

FitnessTraceQuartiles ( int numRuns, int numIterations, int numIntervals ) : System.Collections.Generic

Construct a new object.

FitnessTraceQuartiles ( int numRuns, int numIterations, int numIntervals, FitnessTrace chainedFitnessTrace ) : System.Collections.Generic

Construct a new object.

Write ( TextWriter writer ) : void

Write fitness-trace to a TextWriter stream.

Méthodes protégées

Méthode Description
Log ( int index, double fitness, bool feasible ) : void

Log a fitness.

Method Details

Clear() public méthode

Clear the stored fitness trace.
public Clear ( ) : void
Résultat void

FitnessTraceQuartiles() public méthode

Construct a new object.
public FitnessTraceQuartiles ( int numRuns, int numIterations, int numIntervals ) : System.Collections.Generic
numRuns int Number of optimization to be performed.
numIterations int Number of iterations per optimization run.
numIntervals int Approximate number of intervals to show quartiles.
Résultat System.Collections.Generic

FitnessTraceQuartiles() public méthode

Construct a new object.
public FitnessTraceQuartiles ( int numRuns, int numIterations, int numIntervals, FitnessTrace chainedFitnessTrace ) : System.Collections.Generic
numRuns int Number of optimization to be performed.
numIterations int Number of iterations per optimization run.
numIntervals int Approximate number of intervals to show quartiles.
chainedFitnessTrace FitnessTrace Chained FitnessTrace object.
Résultat System.Collections.Generic

Log() protected méthode

Log a fitness.
protected Log ( int index, double fitness, bool feasible ) : void
index int Index into fitness-trace, mapped from optimization iteration.
fitness double Fitness value to log.
feasible bool Feasibility (constraint satisfaction) to log.
Résultat void

Write() public méthode

Write fitness-trace to a TextWriter stream.
public Write ( TextWriter writer ) : void
writer System.IO.TextWriter
Résultat void

Property Details

Trace protected_oe property

Matrix for storage of the fitness trace.
protected List[] Trace
Résultat List[]