fusee - a set of Scilab macro for a landing rocket problem
Iterate a gradient method and returns the computed control.
adjoint equation for the landing rocket problem.
computes the rocket trajectory when a bang-bang control is used tau is the commutation time.
[xk,pk]=equad(tf,uk)
Computes the state and adjoint state of the rocket system for a given control ur.
[xdot]=fusee(t,x)
Dynamical motion equation for the rocket
finit()
Initialises the following parameters for rocket landing.
[ukp1]=fuseegrad(niter,ukp1,pasg)
[pdot]=fuseep(t,p)
[ut]=pousse(t)
return the value of a piece wise constant control build on the discrete control uk
[uk]=ubang(tf,tcom)
returns a bang-bang control, 0 form time 0 to tcom and 1 form tcom to tf.
[c,xk,pk,ukp1]=fcout(tf,uk,pasg)
optimise the following cost function by gradient iterations.
c = -m(tf) + C*( h(tf)**2 + v(tf)**2)
[]=sfusee(tau,h0,v0,m0,Tf)
[xt]=traj(t)
returns a piece wise value of the mass evolution.