pub struct Realization {Show 14 fields
pub kind: StudyPeriodKind,
pub loads: Vec<f64>,
pub deficit: Vec<f64>,
pub exchange: Vec<f64>,
pub inflow: Vec<f64>,
pub turbined_flow: Vec<f64>,
pub spillage: Vec<f64>,
pub thermal_generation: Vec<f64>,
pub water_value: Vec<f64>,
pub marginal_cost: Vec<f64>,
pub current_stage_objective: f64,
pub total_stage_objective: f64,
pub final_storage: Vec<f64>,
pub basis: Basis,
}Fields§
§kind: StudyPeriodKind§loads: Vec<f64>§deficit: Vec<f64>§exchange: Vec<f64>§inflow: Vec<f64>§turbined_flow: Vec<f64>§spillage: Vec<f64>§thermal_generation: Vec<f64>§water_value: Vec<f64>§marginal_cost: Vec<f64>§current_stage_objective: f64§total_stage_objective: f64§final_storage: Vec<f64>§basis: BasisImplementations§
Source§impl Realization
impl Realization
pub fn new( loads: Vec<f64>, deficit: Vec<f64>, exchange: Vec<f64>, inflow: Vec<f64>, turbined_flow: Vec<f64>, spillage: Vec<f64>, thermal_generation: Vec<f64>, water_value: Vec<f64>, marginal_cost: Vec<f64>, current_stage_objective: f64, total_stage_objective: f64, final_storage: Vec<f64>, basis: Basis, ) -> Self
pub fn with_capacity(kind: &StudyPeriodKind, system: &System) -> Self
Trait Implementations§
Source§impl Clone for Realization
impl Clone for Realization
Source§fn clone(&self) -> Realization
fn clone(&self) -> Realization
Returns a duplicate of the value. Read more
1.0.0 · 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 Realization
impl Debug for Realization
Auto Trait Implementations§
impl Freeze for Realization
impl RefUnwindSafe for Realization
impl Send for Realization
impl Sync for Realization
impl Unpin for Realization
impl UnwindSafe for Realization
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