ocra-recipes
Doxygen documentation for the ocra-recipes repository
FcQuadraticFunction.cpp
Go to the documentation of this file.
2 
3 
4 using namespace ocra;
5 
7 : NamedInstance("Variable Fc Quadratic Function")
11 {
12 
13 }
14 
16 {
17 
18 }
19 
21 {
22 
23 }
24 
26 {
27  IFunction<ocra::PARTIAL_XX>::_val[0]->setIdentity(x.getSize(), x.getSize());
28 }
29 
31 {
32  _q[0]->setZero(x.getSize());
33 }
34 
36 {
37  _r[0] = 0;
38 }
Computation ability of a ocra function.
Definition: IFunction.h:243
FcQuadraticFunction(ocra::Variable &x)
Variable & x
Definition: Function.h:309
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
int getSize() const
Definition: Variable.cpp:81
std::vector< VectorXd * > _q
This class represents a variable in a mathematical sense.
Definition: Variable.h:105
QuadraticFunction class.