the solver class, which contains an instance of the mission
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(mission_type), | public | :: | mission |
the Halo mission |
|||
| procedure(iteration_callback_func), | public, | pointer, nopass | :: | iteration_callback | => | null() |
if associated, it receives the trajectory of each solver iteration |
| procedure(stop_check_func), | public, | pointer, nopass | :: | stop_check | => | null() |
if associated, checked at each solver iteration: true stops the solver |
| procedure(epoch_callback_func), | public, | pointer, nopass | :: | epoch_callback | => | null() |
if associated, it receives the epochs at the constraint points of each solver iteration (cheap: no propagation) |
Initialize the mission.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(my_solver_type), | intent(inout) | :: | me | |||
| character(len=*), | intent(in) | :: | config_file_name |
the config file to read |
||
| real(kind=wp), | intent(out), | optional, | dimension(:), allocatable | :: | x |
initial guess |
move a converged solution out of the Earth's shadow (in halo_eclipse_opt_submodule)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(my_solver_type), | intent(inout), | target | :: | me | ||
| real(kind=wp), | intent(inout), | dimension(:) | :: | x |
the converged solution (scaled); replaced by the result |
Read the config file that defines the problem to be solved and set all the global variables.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(my_solver_type), | intent(inout) | :: | me | |||
| character(len=*), | intent(in) | :: | filename |
the JSON config file to read |
type,extends(nlesolver_type) :: my_solver_type !! the solver class, which contains !! an instance of the mission type(mission_type) :: mission !! the Halo mission ! optional hooks (used by the GUI): procedure(iteration_callback_func),pointer,nopass :: iteration_callback => null() !! if associated, it receives the trajectory of each solver iteration procedure(stop_check_func),pointer,nopass :: stop_check => null() !! if associated, checked at each solver iteration: true stops the solver procedure(epoch_callback_func),pointer,nopass :: epoch_callback => null() !! if associated, it receives the epochs at the constraint points of each !! solver iteration (cheap: no propagation) contains procedure,public :: init => initialize_the_solver procedure,public :: eclipse_optimize procedure :: read_config_file end type my_solver_type