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§
Sourcefn solve(
&self,
topology: &Topology,
state: &mut StateStore,
) -> Result<SolverResult>
fn solve( &self, topology: &Topology, state: &mut StateStore, ) -> Result<SolverResult>
Solve power flow for the given topology and state