C# Класс SwarmOps.LogSolutions

Log best solutions found during optimization, that is, log parameters and their associated fitness. Transparently wraps around a problem-object.
Наследование: ProblemWrapper
Показать файл Открыть проект

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

Метод Описание
Clear ( ) : void

Clear the log.

Fitness ( double parameters, double fitnessLimit, bool oldFeasible, bool newFeasible ) : double

Compute the fitness measure by passing the given parameters to the wrapped problem, and if candidate solution is an improvement then log the results.

LogSolutions ( Problem problem, int capacity, bool onlyFeasible ) : System.Collections.Generic

Create the object.

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

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

Clear the log.
public Clear ( ) : void
Результат void

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

Compute the fitness measure by passing the given parameters to the wrapped problem, and if candidate solution is an improvement then log the results.
public Fitness ( double parameters, double fitnessLimit, bool oldFeasible, bool newFeasible ) : double
parameters double Candidate solution.
fitnessLimit double Preemptive Fitness Limit
oldFeasible bool Feasibility of new candidate solution.
newFeasible bool Feasibility of old candidate solution.
Результат double

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

Create the object.
public LogSolutions ( Problem problem, int capacity, bool onlyFeasible ) : System.Collections.Generic
problem Problem Problem-object to be wrapped.
capacity int Log capacity.
onlyFeasible bool Only log feasible solutions.
Результат System.Collections.Generic