pub struct Variables {
pub deficit: Vec<usize>,
pub direct_exchange: Vec<usize>,
pub reverse_exchange: Vec<usize>,
pub thermal_gen: Vec<usize>,
pub turbined_flow: Vec<usize>,
pub spillage: Vec<usize>,
pub stored_volume: Vec<usize>,
pub inflow: Vec<usize>,
pub inflow_process: Vec<Vec<usize>>,
pub alpha: usize,
}Expand description
Helper accessor for indexing desired variables in each subproblem
Fields§
§deficit: Vec<usize>§direct_exchange: Vec<usize>§reverse_exchange: Vec<usize>§thermal_gen: Vec<usize>§turbined_flow: Vec<usize>§spillage: Vec<usize>§stored_volume: Vec<usize>§inflow: Vec<usize>§inflow_process: Vec<Vec<usize>>§alpha: usizeImplementations§
Source§impl Variables
impl Variables
pub fn with_capacity(system: &System) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Variables
impl RefUnwindSafe for Variables
impl Send for Variables
impl Sync for Variables
impl Unpin for Variables
impl UnwindSafe for Variables
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more