C# 클래스 SwarmOps.ProblemWrapper

Transparently wrap a problem-object.
상속: Problem
파일 보기 프로젝트 열기: DanWBR/dwsim3

공개 메소드들

메소드 설명
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.