conspire/math/optimize/strategy/mod.rs
1use super::NewtonRaphson;
2
3/// Possible strategies for problems split into global and local variables.
4#[derive(Clone, Debug)]
5pub enum SolveStrategy {
6 /// Local variables converged at fixed global variables before each global
7 /// step, by a solver of their own.
8 ///
9 /// The local problem is small, dense, and handed an exact tangent, so it is
10 /// always Newton, but it need not be converged as tightly nor safeguarded
11 /// the same way as the global one.
12 Condensed(NewtonRaphson),
13 /// Global and local variables stepped together, optionally eliminating the local block.
14 Monolithic { elimination: bool },
15}