C# Класс SwarmOps.FitnessTrace

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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