pub struct GenCost {
pub model: usize,
pub startup: f64,
pub shutdown: f64,
pub ncost: usize,
pub points: Option<Vec<(f64, f64)>>,
pub coeffs: Option<Vec<f64>>,
}Expand description
Generator cost function.
Fields§
§model: usizeCost function model.
startup: f64Startup cost (US dollars).
shutdown: f64Shutdown cost (US dollars).
ncost: usizeNumber of end/breakpoints in piecewise linear cost function or coefficients in polynomial cost function.
points: Option<Vec<(f64, f64)>>Piecewise linear cost function end/breakpoints.
coeffs: Option<Vec<f64>>Polynomial cost function coefficients.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GenCost
impl<'de> Deserialize<'de> for GenCost
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<'v_a> ValidateArgs<'v_a> for GenCost
impl<'v_a> ValidateArgs<'v_a> for GenCost
Auto Trait Implementations§
impl Freeze for GenCost
impl RefUnwindSafe for GenCost
impl Send for GenCost
impl Sync for GenCost
impl Unpin for GenCost
impl UnwindSafe for GenCost
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