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
ファイルを表示 Open project: DanWBR/dwsim3

Public Methods

Method 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 method

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

Fitness() public method

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
return double

FitnessPrint() public method

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

FitnessPrint() public method

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.
return System