pub struct ParSetpoint {
pub from_bus: u32,
pub to_bus: u32,
pub circuit: String,
pub target_mw: f64,
}Expand description
A phase-shifting transformer (PAR) operating in flow-setpoint mode.
When included in DcOpfOptions::par_setpoints or DispatchOptions::par_setpoints,
the PAR branch is removed from the passive B matrix and replaced by fixed
scheduled injections at its terminal buses. The solver then determines
the remaining network angles, and the implied shift angle is computed post-solve.
This is the standard RTO approach for modelling manually-controlled PARs (also called Phase-Angle Regulators or TAPs) in DC market clearing.
Fields§
§from_bus: u32From-bus number (external).
to_bus: u32To-bus number (external).
circuit: StringCircuit identifier matching Branch::circuit.
target_mw: f64Target MW flow from from_bus to to_bus (positive = forward direction).
Trait Implementations§
Source§impl Clone for ParSetpoint
impl Clone for ParSetpoint
Source§fn clone(&self) -> ParSetpoint
fn clone(&self) -> ParSetpoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParSetpoint
impl Debug for ParSetpoint
Source§impl<'de> Deserialize<'de> for ParSetpoint
impl<'de> Deserialize<'de> for ParSetpoint
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
Auto Trait Implementations§
impl Freeze for ParSetpoint
impl RefUnwindSafe for ParSetpoint
impl Send for ParSetpoint
impl Sync for ParSetpoint
impl Unpin for ParSetpoint
impl UnsafeUnpin for ParSetpoint
impl UnwindSafe for ParSetpoint
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