ocra-recipes
Doxygen documentation for the ocra-recipes repository
|
Objective class. More...
#include <Objective.h>
Public Member Functions | |
Objective (T *function, double weight=1.) | |
operator const T & () | |
virtual T & | getFunction (void) |
virtual const T & | getFunction (void) const |
Objective class.
Given a function over and possibly over the time , we can write an objective whose most generic expression is , where could be a square matrix of size the output dimension of , but we will only consider that can be a real (which generally amounts to the same since most objectives have a dimension of 1).
The Objective class is built in a very similar way as the Constraint class, with the same mechanism to replicate the Function hierarchy and the derivation from FunctionInterfaceMapping to retrieve part of the interface of the Function class given as template parameter. Please refer to Constraint documentation for more details.
Definition at line 44 of file Objective.h.
|
inline |
Definition at line 114 of file Objective.h.
|
inlinevirtual |
getter on the function on which the constraint is built
Definition at line 64 of file Objective.h.
|
inlinevirtual |
Definition at line 65 of file Objective.h.
|
inline |
Conversion operator
Definition at line 60 of file Objective.h.