nyx_space/md/opti/mod.rs
1/*
2 Nyx, blazing fast astrodynamics
3 Copyright (C) 2018-onwards Christopher Rabotin <christopher.rabotin@gmail.com>
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Affero General Public License as published
7 by the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Affero General Public License for more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <https://www.gnu.org/licenses/>.
17*/
18
19pub mod multipleshooting;
20pub use multipleshooting::{ctrlnodes, multishoot};
21/// Uses a [Newton Raphson](https://en.wikipedia.org/wiki/Newton%27s_method_in_optimization) method where the Jacobian is computed via finite differencing.
22pub mod raphson_finite_diff;
23/// Uses a [Newton Raphson](https://en.wikipedia.org/wiki/Newton%27s_method_in_optimization) method where the Jacobian is computed via hyperdual numbers.
24pub mod raphson_hyperdual;
25pub mod solution;
26pub mod target_variable;
27pub mod targeter;
28
29#[derive(Copy, Clone, Debug, PartialEq, Eq)]
30pub enum DiffMethod {
31 /// Slower, but more commonly used
32 FiniteDiff,
33 /// Significantly faster, but requires the automatic differentiation to be coded
34 AutoDiff,
35}