Skip to main content

BlockSolver

Trait BlockSolver 

Source
pub trait BlockSolver {
    // Required method
    fn solve(
        &mut self,
        x0: &[Number],
        eqs: &mut dyn BlockEquations,
        options: &BlockSolveOptions,
    ) -> Result<BlockSolveOutcome, BlockSolveError>;
}
Expand description

Strategy for solving an auxiliary block. PR 6 ships the damped-Newton implementation; PR 11 will add an IPM-backed fallback that handles blocks the lightweight Newton refuses.

Required Methods§

Source

fn solve( &mut self, x0: &[Number], eqs: &mut dyn BlockEquations, options: &BlockSolveOptions, ) -> Result<BlockSolveOutcome, BlockSolveError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§