#[non_exhaustive]pub struct LinDist3FlowScaling {
pub apparent_power_base: Option<f64>,
pub variable_scale: Vec<f64>,
pub row_scale: Vec<f64>,
}Expand description
Diagonal coordinate maps applied to the canonical SI program.
Physical primals satisfy x_si = variable_scale .* x_solver. Scaled rows
satisfy (A_solver, b_solver) = row_scale .* (A_si * variable_scale, b_si).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.apparent_power_base: Option<f64>Apparent-power base in VA, or None when solver coordinates are SI.
variable_scale: Vec<f64>One positive SI-unit multiplier per decision variable.
row_scale: Vec<f64>One positive multiplier per standard-form constraint row.
Trait Implementations§
Source§impl Clone for LinDist3FlowScaling
impl Clone for LinDist3FlowScaling
Source§fn clone(&self) -> LinDist3FlowScaling
fn clone(&self) -> LinDist3FlowScaling
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 LinDist3FlowScaling
impl Debug for LinDist3FlowScaling
Source§impl PartialEq for LinDist3FlowScaling
impl PartialEq for LinDist3FlowScaling
Source§fn eq(&self, other: &LinDist3FlowScaling) -> bool
fn eq(&self, other: &LinDist3FlowScaling) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LinDist3FlowScaling
Auto Trait Implementations§
impl Freeze for LinDist3FlowScaling
impl RefUnwindSafe for LinDist3FlowScaling
impl Send for LinDist3FlowScaling
impl Sync for LinDist3FlowScaling
impl Unpin for LinDist3FlowScaling
impl UnsafeUnpin for LinDist3FlowScaling
impl UnwindSafe for LinDist3FlowScaling
Blanket Implementations§
impl<T> Allocation for T
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