C# Class 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.
Afficher le fichier Open project: DanWBR/dwsim3 Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

GetProblem() public méthode

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
Résultat Problem

GetWeight() public méthode

Return the weight associated with the i'th problem.
public GetWeight ( int i ) : double
i int
Résultat double

ProblemIndex() public méthode

Construct the ProblemIndex-object.
public ProblemIndex ( Problem problems ) : System.Collections.Generic
problems Problem The problems to be indexed.
Résultat System.Collections.Generic

ProblemIndex() public méthode

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

SetFitness() public méthode

Set the fitness associated with the i'th problem.
public SetFitness ( int i, double fitness ) : void
i int
fitness double
Résultat void

Sort() public méthode

Sort the optimization problems according to their associated fitness.
public Sort ( ) : void
Résultat void