Prev Next set_T_p_and_q

@(@\newcommand{\B}[1]{{\bf #1}} \newcommand{\R}[1]{{\rm #1}}@)@
Set T, p, and q

T
This is the total time in the optimal control example.

p
This is the initial value for the state vector at time zero.

q
This is the multiplier, in the objective, for each component of the final state vector squared.
void set_T_p_and_q(double& T, VECTOR(double)& p, VECTOR(double) &q )
{    T    = 1.0;
     //
     p[0] = 0.2;
     p[1] = 0.2;
     p[2] = 0.1;
     p[3] = 0.1;
     //
     q[0] = 25.0;
     q[1] = 25.0;
     q[2] = 25.0;
     q[3] = 25.0;
     //
     return;
}

Input File: src/time.cpp