pub enum TapMode {
Fixed,
Continuous,
}Expand description
Tap-ratio control mode for AC-OPF.
When Continuous, the AC-OPF treats the off-nominal turns ratio as a
continuous NLP variable bounded by [BranchOpfControl::tap_min, BranchOpfControl::tap_max].
Variants§
Fixed
Tap ratio is fixed at Branch::tap (default).
Continuous
Tap ratio is a continuous NLP variable in AC-OPF.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TapMode
impl<'de> Deserialize<'de> for TapMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for TapMode
impl StructuralPartialEq for TapMode
Auto Trait Implementations§
impl Freeze for TapMode
impl RefUnwindSafe for TapMode
impl Send for TapMode
impl Sync for TapMode
impl Unpin for TapMode
impl UnsafeUnpin for TapMode
impl UnwindSafe for TapMode
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