C# Class SwarmOps.RepeatSum

Performs a number of optimization runs and returns the sum of the fitnesses. Ignores feasibility (constraint satisfaction.) This allows for Preemptive Fitness Evaluation.
Inheritance: Repeat
Show file Open project: DanWBR/dwsim3 Class Usage Examples

Public Methods

Method Description
Fitness ( double parameters, double fitnessLimit ) : double

Compute the fitness by repeating a number of optimization runs and sum the fitnesses achieved in the runs.

RepeatSum ( Optimizer optimizer, int numRuns ) : System.Diagnostics

Construct the object.

Method Details

Fitness() public method

Compute the fitness by repeating a number of optimization runs and sum the fitnesses achieved in the runs.
public Fitness ( double parameters, double fitnessLimit ) : double
parameters double Parameters to use for the Optimizer.
fitnessLimit double Preemptive Fitness Limit
return double

RepeatSum() public method

Construct the object.
public RepeatSum ( Optimizer optimizer, int numRuns ) : System.Diagnostics
optimizer Optimizer Optimizer to use.
numRuns int Number of optimization runs to perform.
return System.Diagnostics