62 cout <<
"The grid consists of the following grid points:\n" 64 <<
"Its number of grid points is: " << equidistantGrid.
getNumPoints() << endl
65 <<
"Each vector has dimension: " << equidistantGrid.
getNumValues() << endl;
69 gridFromFile.
read(
"./data.txt" );
71 cout <<
"\nThe second grid consists of the following grid points:\n" 77 cout <<
"\nNow, the grid consists of the following grid points:\n" 79 <<
"Its number of grid points is: " << equidistantGrid.
getNumPoints() << endl
80 <<
"Each vector has dimension: " << equidistantGrid.
getNumValues() << endl;
87 for (
unsigned int i = 0; i < thirdGrid.
getNumPoints(); ++i)
88 thirdGrid(i, 0) = (double) i;
90 cout <<
"\nThe third grid consists of the following grid points:\n" << thirdGrid;
95 cout <<
"\nNow, the grid consists of the following grid points:\n";
96 equidistantGrid.
print();
97 cout <<
"Its number of grid points is: " << equidistantGrid.
getNumPoints() << endl;
98 cout <<
"Each vector has dimension: " << equidistantGrid.
getNumValues() << endl;
returnValue print(std::ostream &stream=std::cout, const char *const name=DEFAULT_LABEL, const char *const startString=DEFAULT_START_STRING, const char *const endString=DEFAULT_END_STRING, uint width=DEFAULT_WIDTH, uint precision=DEFAULT_PRECISION, const char *const colSeparator=DEFAULT_COL_SEPARATOR, const char *const rowSeparator=DEFAULT_ROW_SEPARATOR) const
#define USING_NAMESPACE_ACADO
Provides a time grid consisting of vector-valued optimization variables at each grid point...
returnValue appendValues(const VariablesGrid &arg)
returnValue setVector(uint pointIdx, const DVector &_values)
returnValue appendTimes(const VariablesGrid &arg, MergeMethod _mergeMethod=MM_DUPLICATE)
returnValue read(std::istream &stream)
uint getNumPoints() const
void setAll(const T &_value)
uint getNumValues() const
USING_NAMESPACE_ACADO int main()