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
Mostrar archivo Open project: DanWBR/dwsim3

Protected Properties

Property Type Description
Trace SwarmOps.StatisticsAccumulator[]

Public Methods

Method 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.

Protected Methods

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

Log a fitness.

Method Details

Clear() public method

Clear the stored fitness trace.
public Clear ( ) : void
return void

FeasibleTrace() public method

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.
return System.IO

FeasibleTrace() public method

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.
return System.IO

Log() protected method

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.
return void

Write() public method

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

Property Details

Trace protected_oe property

Storage for the feasibility trace.
protected StatisticsAccumulator[],SwarmOps Trace
return SwarmOps.StatisticsAccumulator[]