C# Class SwarmOps.Optimizer

Base-class for an optimizer.
Inheritance: Problem
Afficher le fichier Open project: DanWBR/dwsim3 Class Usage Examples

Méthodes publiques

Méthode Description
Fitness ( double parameters, double fitnessLimit ) : double

Compute fitness by performing one optimization run.

Optimize ( ) : Result

Optimize using default parameters.

Optimize ( double parameters ) : Result

Perform one optimization run and return the best found solution.

Optimize ( double parameters, double fitnessLimit ) : Result

Perform one optimization run and return the best found solution.

Optimizer ( )

Construct the object. This does not set the Problem which has to be done before the optimizer is being run.

Optimizer ( Problem problem )

Construct the object.

Méthodes protégées

Méthode Description
Trace ( int iteration, double fitness, bool feasible ) : void

Trace fitness progress of optimization run.

Method Details

Fitness() public méthode

Compute fitness by performing one optimization run.
public Fitness ( double parameters, double fitnessLimit ) : double
parameters double Control parameters for the optimizer.
fitnessLimit double Preemptive Fitness Limit
Résultat double

Optimize() public méthode

Optimize using default parameters.
public Optimize ( ) : Result
Résultat Result

Optimize() public méthode

Perform one optimization run and return the best found solution.
public Optimize ( double parameters ) : Result
parameters double Control parameters for the optimizer.
Résultat Result

Optimize() public méthode

Perform one optimization run and return the best found solution.
public Optimize ( double parameters, double fitnessLimit ) : Result
parameters double Control parameters for the optimizer.
fitnessLimit double Preemptive Fitness Limit
Résultat Result

Optimizer() public méthode

Construct the object. This does not set the Problem which has to be done before the optimizer is being run.
public Optimizer ( )

Optimizer() public méthode

Construct the object.
public Optimizer ( Problem problem )
problem Problem Problem to optimize.

Trace() protected méthode

Trace fitness progress of optimization run.
protected Trace ( int iteration, double fitness, bool feasible ) : void
iteration int Iteration number.
fitness double Best-found fitness for this optimization run.
feasible bool
Résultat void