if I want solve two point boundary problem and if I want minimize the cost function
J=Integration(u1^2+u2^2)
sub to xdot=f(x,u)
where g=(u1^2+u2^2) ;
u1, u2 are torques traj
x: is the state space traj
H=g+lamda*f(x,u)
my question is about the co states traj (lamda) for the previous cost function, the value for the lamda(tf) must be equal zero or it is not necessary to check it ?