59 A(0,0) = 1.0;
A(1,1) = 2.0;
A(2,2) = 3.0;
60 b(0) = 1.0; b(1) = 1.0; b(2) = 1.0;
73 for (i = 0; i < 7; i++)
76 cout <<
"f[" << i <<
"] is convex" << endl;
80 if (f[i].isConcave() ==
BT_TRUE)
81 cout <<
"f[" << i <<
"] is concave" << endl;
83 cout <<
"f[" << i <<
"] is neither convex nor concave" << endl;
Allows to setup and evaluate a general function based on SymbolicExpressions.
#define USING_NAMESPACE_ACADO
IntermediateState log_sum_exp(const Expression &arg)
IntermediateState sum_square(const Expression &arg)
IntermediateState euclidean_norm(const Expression &arg)
USING_NAMESPACE_ACADO int main()
IntermediateState square(const Expression &arg)
Derived & setZero(Index size)