pub struct ModelFile {
pub milestone_years: Vec<u32>,
pub candidate_asset_capacity: Capacity,
pub pricing_strategy: PricingStrategy,
pub capacity_limit_factor: Dimensionless,
pub value_of_lost_load: MoneyPerFlow,
pub max_ironing_out_iterations: u32,
pub price_tolerance: Dimensionless,
}
Expand description
Represents the contents of the entire model file.
Fields§
§milestone_years: Vec<u32>
Milestone years
candidate_asset_capacity: Capacity
The (small) value of capacity given to candidate assets.
Don’t change unless you know what you’re doing.
pricing_strategy: PricingStrategy
Defines the strategy used for calculating commodity prices
capacity_limit_factor: Dimensionless
Affects the maximum capacity that can be given to a newly created asset.
It is the proportion of maximum capacity that could be required across time slices.
value_of_lost_load: MoneyPerFlow
The cost applied to unmet demand.
Currently this only applies to the LCOX appraisal.
max_ironing_out_iterations: u32
The maximum number of iterations to run the “ironing out” step of agent investment for
price_tolerance: Dimensionless
The relative tolerance for price convergence in the ironing out loop
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelFile
impl<'de> Deserialize<'de> for ModelFile
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 StructuralPartialEq for ModelFile
Auto Trait Implementations§
impl Freeze for ModelFile
impl RefUnwindSafe for ModelFile
impl Send for ModelFile
impl Sync for ModelFile
impl Unpin for ModelFile
impl UnwindSafe for ModelFile
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> 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