pub enum CtmNetworkGenItemCostPgModel {
Polynomial,
PiecewiseLinear,
MarginalCost,
}Expand description
type of generation cost model (i.e., function translating power/energy to money); POLYNOMIAL => cost_pg_parameters is an array with n+1 coefficients <a_i> for f(x) = a_0 + a_1 x^1 + … + a_n x^n; PIECEWISE_LINEAR => cost_pg_parameters is a series of values <x_i, f_i> and cost (f) should be interpolated linearly in between points; MARGINAL_COST => cost_pg_parameters is a series of values <b_i, m_i>, where m_i is a marginal cost ($/MWh or $/(puh)) and b_i is the amoung of power (MWh or puh) sold at marginal cost m_i
JSON schema
{
"description": "type of generation cost model (i.e., function translating power/energy to money); POLYNOMIAL => cost_pg_parameters is an array with n+1 coefficients <a_i> for f(x) = a_0 + a_1 x^1 + ... + a_n x^n; PIECEWISE_LINEAR => cost_pg_parameters is a series of values <x_i, f_i> and cost (f) should be interpolated linearly in between points; MARGINAL_COST => cost_pg_parameters is a series of values <b_i, m_i>, where m_i is a marginal cost ($/MWh or $/(pu*h)) and b_i is the amoung of power (MWh or pu*h) sold at marginal cost m_i",
"type": "string",
"enum": [
"POLYNOMIAL",
"PIECEWISE_LINEAR",
"MARGINAL_COST"
]
}Variants§
Trait Implementations§
Source§impl Clone for CtmNetworkGenItemCostPgModel
impl Clone for CtmNetworkGenItemCostPgModel
Source§fn clone(&self) -> CtmNetworkGenItemCostPgModel
fn clone(&self) -> CtmNetworkGenItemCostPgModel
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CtmNetworkGenItemCostPgModel
impl Debug for CtmNetworkGenItemCostPgModel
Source§impl<'de> Deserialize<'de> for CtmNetworkGenItemCostPgModel
impl<'de> Deserialize<'de> for CtmNetworkGenItemCostPgModel
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
Source§impl From<&CtmNetworkGenItemCostPgModel> for CtmNetworkGenItemCostPgModel
impl From<&CtmNetworkGenItemCostPgModel> for CtmNetworkGenItemCostPgModel
Source§fn from(value: &CtmNetworkGenItemCostPgModel) -> Self
fn from(value: &CtmNetworkGenItemCostPgModel) -> Self
Converts to this type from the input type.
Source§impl Hash for CtmNetworkGenItemCostPgModel
impl Hash for CtmNetworkGenItemCostPgModel
Source§impl Ord for CtmNetworkGenItemCostPgModel
impl Ord for CtmNetworkGenItemCostPgModel
Source§fn cmp(&self, other: &CtmNetworkGenItemCostPgModel) -> Ordering
fn cmp(&self, other: &CtmNetworkGenItemCostPgModel) -> Ordering
1.21.0§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for CtmNetworkGenItemCostPgModel
impl PartialOrd for CtmNetworkGenItemCostPgModel
Source§impl TryFrom<&String> for CtmNetworkGenItemCostPgModel
impl TryFrom<&String> for CtmNetworkGenItemCostPgModel
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for CtmNetworkGenItemCostPgModel
impl TryFrom<&str> for CtmNetworkGenItemCostPgModel
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for CtmNetworkGenItemCostPgModel
impl TryFrom<String> for CtmNetworkGenItemCostPgModel
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for CtmNetworkGenItemCostPgModel
impl Eq for CtmNetworkGenItemCostPgModel
impl StructuralPartialEq for CtmNetworkGenItemCostPgModel
Auto Trait Implementations§
impl Freeze for CtmNetworkGenItemCostPgModel
impl RefUnwindSafe for CtmNetworkGenItemCostPgModel
impl Send for CtmNetworkGenItemCostPgModel
impl Sync for CtmNetworkGenItemCostPgModel
impl Unpin for CtmNetworkGenItemCostPgModel
impl UnwindSafe for CtmNetworkGenItemCostPgModel
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)