C# 클래스 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.
상속: FitnessTrace
파일 보기 프로젝트 열기: DanWBR/dwsim3

보호된 프로퍼티들

프로퍼티 타입 설명
Trace SwarmOps.StatisticsAccumulator[]

공개 메소드들

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

보호된 메소드들

메소드 설명
Log ( int index, double fitness, bool feasible ) : void

Log a fitness.

메소드 상세

Clear() 공개 메소드

Clear the stored fitness trace.
public Clear ( ) : void
리턴 void

FeasibleTrace() 공개 메소드

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.
리턴 System.IO

FeasibleTrace() 공개 메소드

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.
리턴 System.IO

Log() 보호된 메소드

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

Write() 공개 메소드

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

프로퍼티 상세

Trace 보호되어 있는 프로퍼티

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