C# 클래스 SwarmOps.FitnessTrace

파일 보기 프로젝트 열기: DanWBR/dwsim3 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
Iteration ( int index ) : int

Map fitness-trace index to optimization iteration.

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

Log a fitness.

메소드 상세

Add() 공개 메소드

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.
리턴 void

FitnessTrace() 공개 메소드

Construct a new object.
public FitnessTrace ( FitnessTrace chainedFitnessTrace, int numIterations, int numIntervals, double offset ) : System.Diagnostics
chainedFitnessTrace FitnessTrace
numIterations int
numIntervals int
offset double
리턴 System.Diagnostics

Iteration() 보호된 메소드

Map fitness-trace index to optimization iteration.
protected Iteration ( int index ) : int
index int
리턴 int

Log() 보호된 추상적인 메소드

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.
리턴 void

Write() 공개 추상적인 메소드

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

WriteToFile() 공개 메소드

Write fitness-trace to a file.
public WriteToFile ( string filename ) : void
filename string Name of file.
리턴 void