45 Grid dataGrid( 0.0, 5.0, 6 );
48 data.
init( 2, dataGrid );
50 data( 0, 0 ) = 0.0; data( 0, 1 ) = 1.0 ;
51 data( 1, 0 ) = 0.2; data( 1, 1 ) = 0.8 ;
52 data( 2, 0 ) = 0.4; data( 2, 1 ) = 0.7 ;
53 data( 3, 0 ) = 0.6; data( 3, 1 ) = 0.65 ;
54 data( 4, 0 ) = 0.8; data( 4, 1 ) = 0.625;
55 data( 5, 0 ) = 1.0; data( 5, 1 ) = 0.613;
69 window.
addSubplot( c1, 0.0,5.0,
"Constant data Interpolation" );
70 window.
addSubplot( c2, 0.0,5.0,
"Linear data Interpolation" );
USING_NAMESPACE_ACADO int main()
virtual returnValue plot(PlotFrequency _frequency=PLOT_IN_ANY_CASE)
returnValue add(double tStart, double tEnd, const DVector constant)
#define USING_NAMESPACE_ACADO
Provides a time grid consisting of vector-valued optimization variables at each grid point...
Allows to conveniently handle (one-dimensional) grids consisting of time points.
returnValue addSubplot(PlotWindowSubplot &_subplot)
Allows to work with piecewise-continous function defined over a scalar time interval.
Provides an interface to Gnuplot for plotting algorithmic outputs.