public function removed_columns(me) result(cols_to_remove)
The columns (optimization variables) of the full problem that are removed
(fixed) by the problem options. The full problem has 7 columns per node
([t, rx, ry, rz, vx, vy, vz]), with nodes in time order.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Source Code
function removed_columns(me)result(cols_to_remove)implicit none class(mission_type),intent(in)::meinteger,dimension(:),allocatable::cols_to_removeinteger::n!! number of optimization variables in the full problemcall me%define_problem_size(n=n,full_problem=.true.)allocate(cols_to_remove(0))if(me%fix_initial_time)&cols_to_remove=[cols_to_remove,1]if(me%fix_initial_r)&cols_to_remove=[cols_to_remove,[2,3,4]]if(me%fix_ry_at_end_of_rev>0)then! remove Ry at end of specified rev! e.g. rev 1 : SEG8 Ry (km) : column 31!! patch point: [t rx ry rz vx vy vz]! ^^cols_to_remove=[cols_to_remove,me%fix_ry_at_end_of_rev*7*5-4]end if if(me%fix_final_ry_and_vx)&cols_to_remove=[cols_to_remove,[n-4,n-2]]! last segment Ry & Vxend function removed_columns