C# Class SwarmOps.OptimizerWrapper

Transparently wrap an Optimizer-object.
Inheritance: Optimizer
Exibir arquivo Open project: DanWBR/dwsim3

Public Methods

Method 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 method

Propagate signal to wrapped Optimizer.
public BeginOptimizationRun ( ) : void
return void

Continue() public method

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.
return bool

EndOptimizationRun() public method

Propagate signal to wrapped Optimizer.
public EndOptimizationRun ( ) : void
return void

EnforceConstraints() public method

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

Feasible() public method

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

OptimizerWrapper() public method

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.