C# Class SwarmOps.OptimizerWrapper

Transparently wrap an Optimizer-object.
Inheritance: Optimizer
Afficher le fichier Open project: DanWBR/dwsim3

Méthodes publiques

Méthode Description
BeginOptimizationRun ( ) : void

Propagate signal to wrapped Optimizer.

Continue ( int iterations, double fitness, bool feasible ) : bool

Return whether optimization of wrapped Optimizer is allowed to continue.

EndOptimizationRun ( ) : void

Propagate signal to wrapped Optimizer.

EnforceConstraints ( double &parameters ) : bool

Enforce constraints and evaluate feasiblity of the wrapped Optimizer.

Feasible ( double parameters ) : bool

Evaluate feasibility (constraint satisfaction) of the wrapped Optimizer.

OptimizerWrapper ( Optimizer optimizer )

Create an OptimizerWrapper-object.

This is very similar to ProblemWrapper but C# does not allow for multiple inheritance and we need this class to inherit from Optimizer and therefore cannot make it inherit from ProblemWrapper as well.

Method Details

BeginOptimizationRun() public méthode

Propagate signal to wrapped Optimizer.
public BeginOptimizationRun ( ) : void
Résultat void

Continue() public méthode

Return whether optimization of wrapped Optimizer is allowed to continue.
public Continue ( int iterations, double fitness, bool feasible ) : bool
iterations int Number of iterations performed in optimization run.
fitness double Best fitness found in optimization run.
feasible bool Feasibility of best found candidate solution.
Résultat bool

EndOptimizationRun() public méthode

Propagate signal to wrapped Optimizer.
public EndOptimizationRun ( ) : void
Résultat void

EnforceConstraints() public méthode

Enforce constraints and evaluate feasiblity of the wrapped Optimizer.
public EnforceConstraints ( double &parameters ) : bool
parameters double Control parameters.
Résultat bool

Feasible() public méthode

Evaluate feasibility (constraint satisfaction) of the wrapped Optimizer.
public Feasible ( double parameters ) : bool
parameters double Control parameters.
Résultat bool

OptimizerWrapper() public méthode

Create an OptimizerWrapper-object.
This is very similar to ProblemWrapper but C# does not allow for multiple inheritance and we need this class to inherit from Optimizer and therefore cannot make it inherit from ProblemWrapper as well.
public OptimizerWrapper ( Optimizer optimizer )
optimizer Optimizer Optimizer-object being wrapped.