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.
Показать файл Открыть проект Примеры использования класса

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

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