Enum smoothed_online_convex_optimization::model::data_center::DataCenterModelOutputFailure [−][src]
pub enum DataCenterModelOutputFailure {
DemandExceedingSupply,
InfiniteDelay {
server_type: String,
number_of_jobs: f64,
mean_job_duration: f64,
},
LoadToInactiveServer,
OutsideDecisionSpace,
SLOMaxUtilizationExceeded,
}
Expand description
Model failure.
Variants
Trait Implementations
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<'a, T> Model<T, SimplifiedSmoothedConvexOptimization<'a, T, DataCenterModelOutputSuccess, DataCenterModelOutputFailure>, DataCenterOfflineInput, DataCenterOnlineInput, DataCenterModelOutputSuccess, DataCenterModelOutputFailure> for DataCenterModel where
T: Value<'a>,
impl<'a, T> Model<T, SimplifiedSmoothedConvexOptimization<'a, T, DataCenterModelOutputSuccess, DataCenterModelOutputFailure>, DataCenterOfflineInput, DataCenterOnlineInput, DataCenterModelOutputSuccess, DataCenterModelOutputFailure> for DataCenterModel where
T: Value<'a>,
fn to(
&self,
_: DataCenterOfflineInput
) -> SimplifiedSmoothedConvexOptimization<'a, T, DataCenterModelOutputSuccess, DataCenterModelOutputFailure>
fn to(
&self,
_: DataCenterOfflineInput
) -> SimplifiedSmoothedConvexOptimization<'a, T, DataCenterModelOutputSuccess, DataCenterModelOutputFailure>
Generates an offline problem instance given some $input$ (with certainty).
fn update(
&self,
o: &mut Online<SimplifiedSmoothedConvexOptimization<'a, T, DataCenterModelOutputSuccess, DataCenterModelOutputFailure>>,
_: DataCenterOnlineInput
)
fn update(
&self,
o: &mut Online<SimplifiedSmoothedConvexOptimization<'a, T, DataCenterModelOutputSuccess, DataCenterModelOutputFailure>>,
_: DataCenterOnlineInput
)
Performs an online update of the given problem instance $o$ with some $input$ (which may be uncertain).
impl<'a, T> Model<T, SmoothedBalancedLoadOptimization<'a, T>, DataCenterOfflineInput, DataCenterOnlineInput, DataCenterModelOutputSuccess, DataCenterModelOutputFailure> for DataCenterModel where
T: Value<'a>,
impl<'a, T> Model<T, SmoothedBalancedLoadOptimization<'a, T>, DataCenterOfflineInput, DataCenterOnlineInput, DataCenterModelOutputSuccess, DataCenterModelOutputFailure> for DataCenterModel where
T: Value<'a>,
Notes:
- Only allows for a single location, source, and job type.
fn update(
&self,
o: &mut Online<SmoothedBalancedLoadOptimization<'a, T>>,
_: DataCenterOnlineInput
)
fn update(
&self,
o: &mut Online<SmoothedBalancedLoadOptimization<'a, T>>,
_: DataCenterOnlineInput
)
Performs an online update of the given problem instance $o$ with some $input$ (which may be uncertain).
impl<'a, T> Model<T, SmoothedConvexOptimization<'a, T, DataCenterModelOutputSuccess, DataCenterModelOutputFailure>, DataCenterOfflineInput, DataCenterOnlineInput, DataCenterModelOutputSuccess, DataCenterModelOutputFailure> for DataCenterModel where
T: Value<'a>,
impl<'a, T> Model<T, SmoothedConvexOptimization<'a, T, DataCenterModelOutputSuccess, DataCenterModelOutputFailure>, DataCenterOfflineInput, DataCenterOnlineInput, DataCenterModelOutputSuccess, DataCenterModelOutputFailure> for DataCenterModel where
T: Value<'a>,
fn to(
&self,
input: DataCenterOfflineInput
) -> SmoothedConvexOptimization<'a, T, DataCenterModelOutputSuccess, DataCenterModelOutputFailure>
fn to(
&self,
input: DataCenterOfflineInput
) -> SmoothedConvexOptimization<'a, T, DataCenterModelOutputSuccess, DataCenterModelOutputFailure>
Generates an offline problem instance given some $input$ (with certainty).
fn update(
&self,
o: &mut Online<SmoothedConvexOptimization<'a, T, DataCenterModelOutputSuccess, DataCenterModelOutputFailure>>,
_: DataCenterOnlineInput
)
fn update(
&self,
o: &mut Online<SmoothedConvexOptimization<'a, T, DataCenterModelOutputSuccess, DataCenterModelOutputFailure>>,
_: DataCenterOnlineInput
)
Performs an online update of the given problem instance $o$ with some $input$ (which may be uncertain).
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).
Failure when result lies outside of the decision space.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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.
impl<'a, T> Problem<T, DataCenterModelOutputSuccess, DataCenterModelOutputFailure> for SmoothedBalancedLoadOptimization<'a, T> where
T: Value<'a>,
impl<'a, T> Problem<T, DataCenterModelOutputSuccess, DataCenterModelOutputFailure> for SmoothedBalancedLoadOptimization<'a, T> where
T: Value<'a>,
fn hit_cost(
&self,
t: i32,
x: Config<T>
) -> Cost<DataCenterModelOutputSuccess, DataCenterModelOutputFailure>
fn hit_cost(
&self,
t: i32,
x: Config<T>
) -> Cost<DataCenterModelOutputSuccess, DataCenterModelOutputFailure>
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 Send for DataCenterModelOutputFailure
impl Sync for DataCenterModelOutputFailure
impl Unpin for DataCenterModelOutputFailure
impl UnwindSafe for DataCenterModelOutputFailure
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.