C# Class SwarmOps.FitnessTrace

Afficher le fichier Open project: DanWBR/dwsim3 Class Usage Examples

Méthodes publiques

Méthode Description
Add ( int iteration, double fitness, bool feasible ) : void

Add a fitness value to the trace at the given iteration number.

FitnessTrace ( FitnessTrace chainedFitnessTrace, int numIterations, int numIntervals, double offset ) : System.Diagnostics

Construct a new object.

Write ( TextWriter writer ) : void

Write fitness-trace to a TextWriter stream.

WriteToFile ( string filename ) : void

Write fitness-trace to a file.

Méthodes protégées

Méthode Description
Iteration ( int index ) : int

Map fitness-trace index to optimization iteration.

Log ( int index, double fitness, bool feasible ) : void

Log a fitness.

Method Details

Add() public méthode

Add a fitness value to the trace at the given iteration number.
public Add ( int iteration, double fitness, bool feasible ) : void
iteration int Iteration number of fitness.
fitness double Fitness value to be traced.
feasible bool Feasibility (constraint satisfaction) to be traced.
Résultat void

FitnessTrace() public méthode

Construct a new object.
public FitnessTrace ( FitnessTrace chainedFitnessTrace, int numIterations, int numIntervals, double offset ) : System.Diagnostics
chainedFitnessTrace FitnessTrace
numIterations int
numIntervals int
offset double
Résultat System.Diagnostics

Iteration() protected méthode

Map fitness-trace index to optimization iteration.
protected Iteration ( int index ) : int
index int
Résultat int

Log() protected abstract méthode

Log a fitness.
protected abstract 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 abstract méthode

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

WriteToFile() public méthode

Write fitness-trace to a file.
public WriteToFile ( string filename ) : void
filename string Name of file.
Résultat void