C# 클래스 SwarmOps.ProblemIndex

Used for sorting optimization problems so that those hardest to optimize are tried first. This is used in the MetaFitness class where Pre-emptive Fitness Evaluation seeks to abort the meta-fitness evaluation as early as possible.
파일 보기 프로젝트 열기: DanWBR/dwsim3 1 사용 예제들

공개 메소드들

메소드 설명
GetProblem ( int i ) : Problem

Return the i'th optimization problem, sorted so that the problems with the worst fitness have lowest indices.

GetWeight ( int i ) : double

Return the weight associated with the i'th problem.

ProblemIndex ( Problem problems ) : System.Collections.Generic

Construct the ProblemIndex-object.

ProblemIndex ( WeightedProblem weightedProblems ) : System.Collections.Generic

Construct the ProblemIndex-object.

SetFitness ( int i, double fitness ) : void

Set the fitness associated with the i'th problem.

Sort ( ) : void

Sort the optimization problems according to their associated fitness.

메소드 상세

GetProblem() 공개 메소드

Return the i'th optimization problem, sorted so that the problems with the worst fitness have lowest indices.
public GetProblem ( int i ) : Problem
i int
리턴 Problem

GetWeight() 공개 메소드

Return the weight associated with the i'th problem.
public GetWeight ( int i ) : double
i int
리턴 double

ProblemIndex() 공개 메소드

Construct the ProblemIndex-object.
public ProblemIndex ( Problem problems ) : System.Collections.Generic
problems Problem The problems to be indexed.
리턴 System.Collections.Generic

ProblemIndex() 공개 메소드

Construct the ProblemIndex-object.
public ProblemIndex ( WeightedProblem weightedProblems ) : System.Collections.Generic
weightedProblems WeightedProblem The problems to be indexed.
리턴 System.Collections.Generic

SetFitness() 공개 메소드

Set the fitness associated with the i'th problem.
public SetFitness ( int i, double fitness ) : void
i int
fitness double
리턴 void

Sort() 공개 메소드

Sort the optimization problems according to their associated fitness.
public Sort ( ) : void
리턴 void