ACADO Toolkit
1.2.0beta
Toolkit for Automatic Control and Dynamic Optimization
|
Encapsulates functionality for defining OCPs having multiple objectives. More...
#include <multi_objective_functionality.hpp>
Public Member Functions | |
MultiObjectiveFunctionality () | |
Default constructor. | |
MultiObjectiveFunctionality (const MultiObjectiveFunctionality &rhs) | |
Copy constructor (deep copy). | |
~MultiObjectiveFunctionality () | |
Destructor. | |
MultiObjectiveFunctionality & | operator= (const MultiObjectiveFunctionality &rhs) |
Assignment operator (deep copy). | |
returnValue | minimizeMayerTerm (const int &multiObjectiveIdx, const Expression &arg) |
Adds an expression as a the Mayer term to be minimized, within a multi-objective context. | |
int | getNumberOfMayerTerms () const |
returnValue | getObjective (const int &multiObjectiveIdx, Expression **arg) const |
Protected Attributes | |
int | nMayer |
Expression ** | mayerTerms |
The class MultiObjectiveFunctionality is a data class that encapsulates all functionality for defining optimal control problems having multiple objectives.
References mayerTerms, and nMayer.
References mayerTerms, and nMayer.
References mayerTerms, and nMayer.
BEGIN_NAMESPACE_ACADO int MultiObjectiveFunctionality::getNumberOfMayerTerms | ( | ) | const [inline] |
References nMayer.
Referenced by MultiObjectiveAlgorithm::MultiObjectiveAlgorithm().
returnValue MultiObjectiveFunctionality::getObjective | ( | const int & | multiObjectiveIdx, |
Expression ** | arg | ||
) | const [inline] |
Reimplemented in OCP.
References ASSERT, mayerTerms, nMayer, and SUCCESSFUL_RETURN.
returnValue MultiObjectiveFunctionality::minimizeMayerTerm | ( | const int & | multiObjectiveIdx, |
const Expression & | arg | ||
) |
multiObjectiveIdx | The index of the objective the expression should be added to. |
arg | The expression to be added as a Mayer term. |
Reimplemented in OCP.
References ASSERT, mayerTerms, nMayer, and SUCCESSFUL_RETURN.
MultiObjectiveFunctionality & MultiObjectiveFunctionality::operator= | ( | const MultiObjectiveFunctionality & | rhs | ) |
References mayerTerms, and nMayer.
Expression** MultiObjectiveFunctionality::mayerTerms [protected] |
Referenced by getObjective(), minimizeMayerTerm(), MultiObjectiveFunctionality(), operator=(), and ~MultiObjectiveFunctionality().
int MultiObjectiveFunctionality::nMayer [protected] |