Differential Evolution C++ library
de::differential_evolution< T > Class Template Reference

#include <differential_evolution.hpp>

List of all members.

Public Member Functions

 differential_evolution (size_t varCount, size_t popSize, typename processors< T >::processors_ptr processors, constraints_ptr constraints, bool minimize, termination_strategy_ptr terminationStrategy, selection_strategy_ptr selectionStrategy, mutation_strategy_ptr mutationStrategy, de::listener_ptr listener)
void run ()
individual_ptr best () const

Detailed Description

template<typename T>
class de::differential_evolution< T >

Differential evolution main class

Runs an optimization session based on various input parameters or strategies

Author:
adrian (12/1/2011)

Constructor & Destructor Documentation

template<typename T >
de::differential_evolution< T >::differential_evolution ( size_t  varCount,
size_t  popSize,
typename processors< T >::processors_ptr  processors,
constraints_ptr  constraints,
bool  minimize,
termination_strategy_ptr  terminationStrategy,
selection_strategy_ptr  selectionStrategy,
mutation_strategy_ptr  mutationStrategy,
de::listener_ptr  listener 
) [inline]

constructs a differential_evolution object

Author:
adrian (12/4/2011)
Parameters:
varCounttotal number of variables. It includes the variables required by the objective function but has many more elements as required by the algorithm
popSizetotal number of individuals in a population
processorsnumber of parallel processors used during an optimization session
constraintsa vector of constraints that contains the constraints for the variables used by the objective function as well as constraints for all other variables used internally by the algorithm
minimizewill attempt to minimize the cost if true, or maximize the cost if false
terminationStrategya termination strategy
selectionStrategya selection strategy
mutationStrategya mutation strategy
listenera listener

Here is the call graph for this function:


Member Function Documentation

template<typename T >
individual_ptr de::differential_evolution< T >::best ( ) const [inline]

returns the best individual resulted from the optimization process

Author:
adrian (12/4/2011)
Returns:
individual_ptr
template<typename T >
void de::differential_evolution< T >::run ( ) [inline]

starts a differential evolution optimization process

although the processing is done in parallel, this function is synchronous and won't return until the optimization is complete, or an error triggered an exception

Author:
adrian (12/4/2011)

The documentation for this class was generated from the following file: