C# Class SwarmOps.FeasibleTrace

Store feasibility-values during optimization runs and write them to a file afterwards. The number of iterations per optimization run must be known in advance.
Inheritance: FitnessTrace
Afficher le fichier Open project: DanWBR/dwsim3

Protected Properties

Свойство Type Description
Trace SwarmOps.StatisticsAccumulator[]

Méthodes publiques

Méthode Description
Clear ( ) : void

Clear the stored fitness trace.

FeasibleTrace ( int numIterations, int numIntervals ) : System.IO

Construct a new object.

FeasibleTrace ( int numIterations, int numIntervals, FitnessTrace chainedFitnessTrace ) : System.IO

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

FeasibleTrace() public méthode

Construct a new object.
public FeasibleTrace ( int numIterations, int numIntervals ) : System.IO
numIterations int Number of iterations per optimization run.
numIntervals int Approximate number of intervals to show mean.
Résultat System.IO

FeasibleTrace() public méthode

Construct a new object.
public FeasibleTrace ( int numIterations, int numIntervals, FitnessTrace chainedFitnessTrace ) : System.IO
numIterations int Number of iterations per optimization run.
numIntervals int Approximate number of intervals to show mean.
chainedFitnessTrace FitnessTrace Chained FitnessTrace object.
Résultat System.IO

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

Storage for the feasibility trace.
protected StatisticsAccumulator[],SwarmOps Trace
Résultat SwarmOps.StatisticsAccumulator[]