pub enum ApplySolutionError {
Show 16 variants
GeneratorDispatchLengthMismatch {
expected: usize,
actual: usize,
},
GeneratorReactiveDispatchLengthMismatch {
expected: usize,
actual: usize,
},
GeneratorBusMappingLengthMismatch {
expected: usize,
actual: usize,
},
GeneratorMachineIdMappingLengthMismatch {
expected: usize,
actual: usize,
},
GeneratorIdMappingLengthMismatch {
expected: usize,
actual: usize,
},
GeneratorIdentityMismatch {
position: usize,
expected_bus: u32,
expected_machine_id: String,
actual_bus: u32,
actual_machine_id: String,
},
AmbiguousGeneratorIdentity {
bus: u32,
machine_id: String,
},
DuplicateGeneratorIdInSolution {
generator_id: String,
},
GeneratorIdMismatch {
position: usize,
expected_id: String,
actual_id: String,
},
AmbiguousGeneratorIdInNetwork {
generator_id: String,
},
VoltageMagnitudeLengthMismatch {
expected: usize,
actual: usize,
},
VoltageAngleLengthMismatch {
expected: usize,
actual: usize,
},
VoltageBusNumberLengthMismatch {
expected: usize,
actual: usize,
},
VoltageBusNumberNotFound {
bus_number: u32,
},
DuplicateBusNumberInNetwork {
bus_number: u32,
},
DuplicateBusNumberInSolution {
bus_number: u32,
},
}Expand description
Error returned when applying solver outputs back into a Network.
Variants§
GeneratorDispatchLengthMismatch
GeneratorReactiveDispatchLengthMismatch
GeneratorBusMappingLengthMismatch
GeneratorMachineIdMappingLengthMismatch
GeneratorIdMappingLengthMismatch
GeneratorIdentityMismatch
Fields
AmbiguousGeneratorIdentity
DuplicateGeneratorIdInSolution
GeneratorIdMismatch
AmbiguousGeneratorIdInNetwork
VoltageMagnitudeLengthMismatch
VoltageAngleLengthMismatch
VoltageBusNumberLengthMismatch
VoltageBusNumberNotFound
DuplicateBusNumberInNetwork
DuplicateBusNumberInSolution
Trait Implementations§
Source§impl Debug for ApplySolutionError
impl Debug for ApplySolutionError
Source§impl Display for ApplySolutionError
impl Display for ApplySolutionError
impl Eq for ApplySolutionError
Source§impl Error for ApplySolutionError
impl Error for ApplySolutionError
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 ApplySolutionError
impl PartialEq for ApplySolutionError
impl StructuralPartialEq for ApplySolutionError
Auto Trait Implementations§
impl Freeze for ApplySolutionError
impl RefUnwindSafe for ApplySolutionError
impl Send for ApplySolutionError
impl Sync for ApplySolutionError
impl Unpin for ApplySolutionError
impl UnsafeUnpin for ApplySolutionError
impl UnwindSafe for ApplySolutionError
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