Struct smoothed_online_convex_optimization::problem::SmoothedLoadOptimization [−][src]
pub struct SmoothedLoadOptimization<T> {
pub d: i32,
pub t_end: i32,
pub bounds: Vec<T>,
pub switching_cost: Vec<f64>,
pub hitting_cost: Vec<f64>,
pub load: Vec<T>,
}
Expand description
Smoothed Load Optimization (SLO).
- SSCO
- hitting costs are time independent and linear in some incoming load
Fields
d: i32
Number of dimensions.
t_end: i32
Finite, positive time horizon.
bounds: Vec<T>
Vector of upper bounds of each dimension.
switching_cost: Vec<f64>
Vector of positive real constants resembling the switching cost of each dimension (strictly ascending). Dimensions must be efficient, i.e. there must not be dimensions with a higher switching and higher hitting cost than onether dimension.
hitting_cost: Vec<f64>
Time-independent cost of each dimension (strictly descending).
load: Vec<T>
Non-negative load at each time step.
Implementations
Convert instance to an instance of Smoothed Balanced-Load Optimization.
Trait Implementations
impl<'a, T> Model<T, SmoothedLoadOptimization<T>, DataCenterOfflineInput, DataCenterOnlineInput, (), DataCenterModelOutputFailure> for DataCenterModel where
T: Value<'a>,
impl<'a, T> Model<T, SmoothedLoadOptimization<T>, DataCenterOfflineInput, DataCenterOnlineInput, (), DataCenterModelOutputFailure> for DataCenterModel where
T: Value<'a>,
Notes:
- Only allows for a single location, source, and job type.
- Assumes full utilization and averages the energy cost over the time horizon.
Performs an online update of the given problem instance $o$ with some $input$ (which may be uncertain).
impl<'a, T> Problem<T, (), DataCenterModelOutputFailure> for SmoothedLoadOptimization<T> where
T: Value<'a>,
impl<'a, T> Problem<T, (), DataCenterModelOutputFailure> for SmoothedLoadOptimization<T> where
T: Value<'a>,
Hitting cost.
Objective function. Calculates the cost of a schedule.
fn inverted_objective_function<'a>(
&self,
xs: &Schedule<T>
) -> Result<Cost<C, D>> where
T: Value<'a>,
fn inverted_objective_function<'a>(
&self,
xs: &Schedule<T>
) -> Result<Cost<C, D>> where
T: Value<'a>,
Inverted Objective function. Calculates the cost of a schedule. Pays the switching cost for powering down rather than powering up. Read more
$\alpha$-unfair Objective function. Calculates the cost of a schedule.
Objective function starting from an initial configuration other than $\mathbf{0}$.
fn _objective_function_with_default<'a>(
&self,
xs: &Schedule<T>,
default: &Config<T>,
alpha: f64,
inverted: bool
) -> Result<Cost<C, D>> where
T: Value<'a>,
Movement in the decision space.
Auto Trait Implementations
impl<T> RefUnwindSafe for SmoothedLoadOptimization<T> where
T: RefUnwindSafe,
impl<T> Send for SmoothedLoadOptimization<T> where
T: Send,
impl<T> Sync for SmoothedLoadOptimization<T> where
T: Sync,
impl<T> Unpin for SmoothedLoadOptimization<T> where
T: Unpin,
impl<T> UnwindSafe for SmoothedLoadOptimization<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.