pub enum BatchError {
OutagesUnsupported {
scenario: usize,
},
BusOutOfRange {
scenario: usize,
bus: usize,
n_buses: usize,
},
BranchOutOfRange {
scenario: usize,
branch: usize,
n_branches: usize,
},
ThreadPool(String),
DcSingular,
}Variants§
OutagesUnsupported
Scenario::branch_outages was non-empty on
BatchSolver::solve, which cannot
honor it. See that field’s doc comment, and use
BatchSolver::solve_contingencies
instead.
BusOutOfRange
A BusOverride::bus was not a valid index into the bus template.
BranchOutOfRange
A Scenario::branch_outages entry was not a valid flat branch index.
ThreadPool(String)
rayon refused to build the requested thread pool.
DcSingular
The reduced susceptance matrix was singular, so no scenario in a
linear::batch::DcBatchSolver
batch can be solved.
Unlike the Newton path — where a scenario that fails is reported in its own result and never poisons the batch — this is a property of the shared topology rather than of any one scenario, so it fails the whole call.
Trait Implementations§
Source§impl Clone for BatchError
impl Clone for BatchError
Source§impl Debug for BatchError
impl Debug for BatchError
Source§impl Display for BatchError
impl Display for BatchError
impl Eq for BatchError
Source§impl Error for BatchError
impl Error for BatchError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for BatchError
impl PartialEq for BatchError
impl StructuralPartialEq for BatchError
Auto Trait Implementations§
impl Freeze for BatchError
impl RefUnwindSafe for BatchError
impl Send for BatchError
impl Sync for BatchError
impl Unpin for BatchError
impl UnsafeUnpin for BatchError
impl UnwindSafe for BatchError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more