C# Class 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.
Inheritance: ProblemWrapper
Afficher le fichier Open project: DanWBR/dwsim3

Méthodes publiques

Méthode Description
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.

Method Details

BeginOptimizationRun() public méthode

At beginning of new optimization run print a newline.
public BeginOptimizationRun ( ) : void
Résultat void

Fitness() public méthode

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
Résultat double

FitnessPrint() public méthode

Constructs a new object.
public FitnessPrint ( Problem problem ) : System
problem Problem The problem being wrapped.
Résultat System

FitnessPrint() public méthode

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.
Résultat System