C# Class SwarmOps.ProblemWrapper

Transparently wrap a problem-object.
Inheritance: Problem
Afficher le fichier Open project: DanWBR/dwsim3

Méthodes publiques

Méthode Description
BeginOptimizationRun ( ) : void

Propagate signal to wrapped problem.

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

Return whether optimization of wrapped problem is allowed to continue.

EndOptimizationRun ( ) : void

Propagate signal to wrapped problem.

EnforceConstraints ( double &parameters ) : bool

Enforce constraints and evaluate feasiblity of the wrapped problem.

Feasible ( double parameters ) : bool

Evaluate feasibility (constraint satisfaction) of the wrapped problem.

Gradient ( double x, double &v ) : int

Compute the gradient of the wrapped problem.

ProblemWrapper ( Problem problem )

Create the object.

Method Details

BeginOptimizationRun() public méthode

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

Continue() public méthode

Return whether optimization of wrapped problem 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 problem.
public EndOptimizationRun ( ) : void
Résultat void

EnforceConstraints() public méthode

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

Feasible() public méthode

Evaluate feasibility (constraint satisfaction) of the wrapped problem.
public Feasible ( double parameters ) : bool
parameters double Candidate solution.
Résultat bool

Gradient() public méthode

Compute the gradient of the wrapped problem.
public Gradient ( double x, double &v ) : int
x double Candidate solution.
v double Array for holding the gradient.
Résultat int

ProblemWrapper() public méthode

Create the object.
public ProblemWrapper ( Problem problem )
problem Problem Problem-object to be wrapped.