Solver

Trait Solver 

Source
pub trait Solver: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn solve(
        &self,
        topology: &Topology,
        state: &mut StateStore,
    ) -> Result<SolverResult>;
}
Expand description

Trait for power flow solvers

Required Methods§

Source

fn name(&self) -> &'static str

Solver name for debugging

Source

fn solve( &self, topology: &Topology, state: &mut StateStore, ) -> Result<SolverResult>

Solve power flow for the given topology and state

Implementors§