C# Класс SwarmOps.FitnessPrint

Prints parameters and fitness to Console. Useful in viewing the progress of meta-optimization. Works as a 'transparent' wrapper for the problem to be optimized. Note that feasibility is computed here.
Наследование: ProblemWrapper
Показать файл Открыть проект

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

Метод Описание
BeginOptimizationRun ( ) : void

At beginning of new optimization run print a newline.

Fitness ( double parameters, double fitnessLimit, bool oldFeasible, bool newFeasible ) : double

Compute fitness of wrapped problem and print the result.

FitnessPrint ( Problem problem ) : System

Constructs a new object.

FitnessPrint ( Problem problem, bool formatAsArray ) : System

Constructs a new object.

Описание методов

BeginOptimizationRun() публичный Метод

At beginning of new optimization run print a newline.
public BeginOptimizationRun ( ) : void
Результат void

Fitness() публичный Метод

Compute fitness of wrapped problem and print the result.
public Fitness ( double parameters, double fitnessLimit, bool oldFeasible, bool newFeasible ) : double
parameters double
fitnessLimit double
oldFeasible bool
newFeasible bool
Результат double

FitnessPrint() публичный Метод

Constructs a new object.
public FitnessPrint ( Problem problem ) : System
problem Problem The problem being wrapped.
Результат System

FitnessPrint() публичный Метод

Constructs a new object.
public FitnessPrint ( Problem problem, bool formatAsArray ) : System
problem Problem The problem being wrapped.
formatAsArray bool Format output string as C# array.
Результат System