C# Class SwarmOps.Statistics

Wrapper for an optimizer providing statistics such as mean fitness achieved over a number of optimization runs, best results achieved, etc. Transparently supports the same methods as the the optimizer itself, but stores the optimization results so as to compute the statistics.
Inheritance: OptimizerWrapper
Mostra file Open project: DanWBR/dwsim3 Class Usage Examples

Public Methods

Method Description
Clear ( ) : void

Clear the stored data used for computing statistics.

Compute ( ) : void

Compute the statistics. Call this after all optimization runs have executed.

Optimize ( double parameters, double fitnessLimit ) : Result

Perform one optimization run and return the best found solution. This just wraps around the Optimizer and stores the results for later computation of statistics.

Statistics ( Optimizer optimizer, bool onlyFeasible ) : System.Collections.Generic

Create a Statistics-object.

Method Details

Clear() public method

Clear the stored data used for computing statistics.
public Clear ( ) : void
return void

Compute() public method

Compute the statistics. Call this after all optimization runs have executed.
public Compute ( ) : void
return void

Optimize() public method

Perform one optimization run and return the best found solution. This just wraps around the Optimizer and stores the results for later computation of statistics.
public Optimize ( double parameters, double fitnessLimit ) : Result
parameters double Control parameters for the optimizer.
fitnessLimit double Preemptive Fitness Limit
return Result

Statistics() public method

Create a Statistics-object.
public Statistics ( Optimizer optimizer, bool onlyFeasible ) : System.Collections.Generic
optimizer Optimizer Optimizer-object being wrapped.
onlyFeasible bool Only use feasible results.
return System.Collections.Generic