C# Класс SwarmOps.ProblemWrapper

Transparently wrap a problem-object.
Наследование: Problem
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

BeginOptimizationRun() публичный Метод

Propagate signal to wrapped problem.
public BeginOptimizationRun ( ) : void
Результат void

Continue() публичный Метод

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.
Результат bool

EndOptimizationRun() публичный Метод

Propagate signal to wrapped problem.
public EndOptimizationRun ( ) : void
Результат void

EnforceConstraints() публичный Метод

Enforce constraints and evaluate feasiblity of the wrapped problem.
public EnforceConstraints ( double &parameters ) : bool
parameters double Candidate solution.
Результат bool

Feasible() публичный Метод

Evaluate feasibility (constraint satisfaction) of the wrapped problem.
public Feasible ( double parameters ) : bool
parameters double Candidate solution.
Результат bool

Gradient() публичный Метод

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.
Результат int

ProblemWrapper() публичный Метод

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