pub enum PhaseMode {
Fixed,
Continuous,
}Expand description
Phase-shifting transformer control mode for AC-OPF.
When Continuous, the AC-OPF treats the phase shift angle as a
continuous NLP variable bounded by
[BranchOpfControl::phase_min_rad, BranchOpfControl::phase_max_rad].
Variants§
Fixed
Phase shift is fixed at Branch::phase_shift_rad (default).
Continuous
Phase shift is a continuous NLP variable in AC-OPF.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PhaseMode
impl<'de> Deserialize<'de> for PhaseMode
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 PhaseMode
impl StructuralPartialEq for PhaseMode
Auto Trait Implementations§
impl Freeze for PhaseMode
impl RefUnwindSafe for PhaseMode
impl Send for PhaseMode
impl Sync for PhaseMode
impl Unpin for PhaseMode
impl UnsafeUnpin for PhaseMode
impl UnwindSafe for PhaseMode
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