Inheritance diagram for Purple::OptimizationAlgorithm:
Public Member Functions | |
OptimizationAlgorithm (ObjectiveFunction *) | |
OptimizationAlgorithm (void) | |
virtual | ~OptimizationAlgorithm (void) |
ObjectiveFunction * | getObjectiveFunction (void) |
double | getEvaluationGoal (void) |
double | getMaximumTime (void) |
void | setObjectiveFunction (ObjectiveFunction *) |
void | setEvaluationGoal (double) |
void | setMaximumTime (double) |
virtual Vector< double > | getMinimalArgument (void)=0 |
Protected Attributes | |
ObjectiveFunction * | objectiveFunction |
double | evaluationGoal |
double | maximumTime |
Definition at line 27 of file OptimizationAlgorithm.h.
Purple::OptimizationAlgorithm::OptimizationAlgorithm | ( | ObjectiveFunction * | newObjectiveFunction | ) |
General constructor. It creates an optimization algorithm object associated to an objective function object.
newObjectiveFunction,: | Pointer to an objective function object. |
Definition at line 30 of file OptimizationAlgorithm.cpp.
Purple::OptimizationAlgorithm::OptimizationAlgorithm | ( | void | ) |
Default constructor. It creates an optimization algorithm object not associated to any objective function object.
Definition at line 41 of file OptimizationAlgorithm.cpp.
Purple::OptimizationAlgorithm::~OptimizationAlgorithm | ( | void | ) | [virtual] |
ObjectiveFunction * Purple::OptimizationAlgorithm::getObjectiveFunction | ( | void | ) |
This method returns a pointer to the objective function object to which the optimization algorithm is associated.
Definition at line 64 of file OptimizationAlgorithm.cpp.
double Purple::OptimizationAlgorithm::getEvaluationGoal | ( | void | ) |
This method returns the objective function evaluation goal value. This is used as a stopping criterium when optimizing a function.
Definition at line 77 of file OptimizationAlgorithm.cpp.
double Purple::OptimizationAlgorithm::getMaximumTime | ( | void | ) |
This method returns the maximum optimization time.
Definition at line 89 of file OptimizationAlgorithm.cpp.
void Purple::OptimizationAlgorithm::setObjectiveFunction | ( | ObjectiveFunction * | newObjectiveFunction | ) |
This method sets a pointer to an objective function object to be associated to the optimization algorithm.
newObjectiveFunction,: | Pointer to an objective function object. |
Definition at line 106 of file OptimizationAlgorithm.cpp.
void Purple::OptimizationAlgorithm::setEvaluationGoal | ( | double | newEvaluationGoal | ) |
This method sets a new goal value for the objective function evaluation. This is used as a stopping criterium when optimizing an objective function.
newEvaluationGoal,: | Goal value for the evaluation. |
Definition at line 121 of file OptimizationAlgorithm.cpp.
void Purple::OptimizationAlgorithm::setMaximumTime | ( | double | newMaximumTime | ) |
This method sets a new maximum optimization time.
newMaximumTime,: | Maximum optimization time. |
Definition at line 135 of file OptimizationAlgorithm.cpp.
virtual Vector<double> Purple::OptimizationAlgorithm::getMinimalArgument | ( | void | ) | [pure virtual] |
double Purple::OptimizationAlgorithm::evaluationGoal [protected] |
Objective function evaluation goal value. It is used as a stopping criterion.
Definition at line 41 of file OptimizationAlgorithm.h.
double Purple::OptimizationAlgorithm::maximumTime [protected] |
Maximum optimization time. It is used as a stopping criterion.
Definition at line 45 of file OptimizationAlgorithm.h.