C# Класс 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.
Наследование: OptimizerWrapper
Показать файл Открыть проект Примеры использования класса

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

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

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

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

Clear the stored data used for computing statistics.
public Clear ( ) : void
Результат void

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

Compute the statistics. Call this after all optimization runs have executed.
public Compute ( ) : void
Результат void

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

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
Результат Result

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

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.
Результат System.Collections.Generic