pub enum DataCenterModelOutputFailure {
DemandExceedingSupply,
InfiniteDelay {
server_type: String,
number_of_jobs: f64,
mean_job_duration: f64,
},
LoadToInactiveServer,
OutsideDecisionSpace,
SLOMaxUtilizationExceeded,
}
Expand description
Model failure.
Variants
DemandExceedingSupply
InfiniteDelay
LoadToInactiveServer
OutsideDecisionSpace
SLOMaxUtilizationExceeded
Trait Implementations
sourceimpl Clone for DataCenterModelOutputFailure
impl Clone for DataCenterModelOutputFailure
sourcefn clone(&self) -> DataCenterModelOutputFailure
fn clone(&self) -> DataCenterModelOutputFailure
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DataCenterModelOutputFailure
impl Debug for DataCenterModelOutputFailure
sourceimpl<'a> DefaultGivenOnlineProblem<i32, SmoothedBalancedLoadOptimization<'a, i32>, DataCenterModelOutputSuccess, DataCenterModelOutputFailure> for Memory<'a>
impl<'a> DefaultGivenOnlineProblem<i32, SmoothedBalancedLoadOptimization<'a, i32>, DataCenterModelOutputSuccess, DataCenterModelOutputFailure> for Memory<'a>
fn default(o: &Online<IntegralSmoothedBalancedLoadOptimization<'_>>) -> Self
sourceimpl DefaultGivenOnlineProblem<i32, SmoothedLoadOptimization<i32>, (), DataCenterModelOutputFailure> for Memory
impl DefaultGivenOnlineProblem<i32, SmoothedLoadOptimization<i32>, (), DataCenterModelOutputFailure> for Memory
fn default(o: &Online<IntegralSmoothedLoadOptimization>) -> Self
sourceimpl<'de> Deserialize<'de> for DataCenterModelOutputFailure
impl<'de> Deserialize<'de> for DataCenterModelOutputFailure
sourcefn 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
sourceimpl Error for DataCenterModelOutputFailure
impl Error for DataCenterModelOutputFailure
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl IntoPy<Py<PyAny>> for DataCenterModelOutputFailure
impl IntoPy<Py<PyAny>> for DataCenterModelOutputFailure
sourceimpl<'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>,
sourcefn 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).
sourcefn 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).
sourceimpl<'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>,
sourcefn to(
&self,
_: DataCenterOfflineInput
) -> SmoothedBalancedLoadOptimization<'a, T>
fn to(
&self,
_: DataCenterOfflineInput
) -> SmoothedBalancedLoadOptimization<'a, T>
Notes:
- Only allows for a single location, source, and job type.
sourcefn 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).
sourceimpl<'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>,
sourcefn 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).
sourcefn 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).
sourceimpl<'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>,
sourcefn to(&self, _: DataCenterOfflineInput) -> SmoothedLoadOptimization<T>
fn to(&self, _: DataCenterOfflineInput) -> SmoothedLoadOptimization<T>
Notes:
- Only allows for a single location, source, and job type.
- Assumes full utilization and averages the energy cost over the time horizon.
sourcefn update(
&self,
o: &mut Online<SmoothedLoadOptimization<T>>,
_: DataCenterOnlineInput
)
fn update(
&self,
o: &mut Online<SmoothedLoadOptimization<T>>,
_: DataCenterOnlineInput
)
Performs an online update of the given problem instance $o$ with some $input$ (which may be uncertain).
sourceimpl ModelOutputFailure for DataCenterModelOutputFailure
impl ModelOutputFailure for DataCenterModelOutputFailure
sourcefn outside_decision_space() -> DataCenterModelOutputFailure
fn outside_decision_space() -> DataCenterModelOutputFailure
Failure when result lies outside of the decision space.
sourceimpl PartialEq<DataCenterModelOutputFailure> for DataCenterModelOutputFailure
impl PartialEq<DataCenterModelOutputFailure> for DataCenterModelOutputFailure
sourcefn eq(&self, other: &DataCenterModelOutputFailure) -> bool
fn eq(&self, other: &DataCenterModelOutputFailure) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DataCenterModelOutputFailure) -> bool
fn ne(&self, other: &DataCenterModelOutputFailure) -> bool
This method tests for !=
.
sourceimpl<'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>,
sourcefn hit_cost(
&self,
t: i32,
x: Config<T>
) -> Cost<(), DataCenterModelOutputFailure>
fn hit_cost(
&self,
t: i32,
x: Config<T>
) -> Cost<(), DataCenterModelOutputFailure>
Hitting cost.
sourcefn objective_function<'a>(&self, xs: &Schedule<T>) -> Result<Cost<C, D>> where
T: Value<'a>,
fn objective_function<'a>(&self, xs: &Schedule<T>) -> Result<Cost<C, D>> where
T: Value<'a>,
Objective function. Calculates the cost of a schedule.
sourcefn 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
sourcefn alpha_unfair_objective_function<'a>(
&self,
xs: &Schedule<T>,
alpha: f64
) -> Result<Cost<C, D>> where
T: Value<'a>,
fn alpha_unfair_objective_function<'a>(
&self,
xs: &Schedule<T>,
alpha: f64
) -> Result<Cost<C, D>> where
T: Value<'a>,
$\alpha$-unfair Objective function. Calculates the cost of a schedule.
sourcefn objective_function_with_default<'a>(
&self,
xs: &Schedule<T>,
default: &Config<T>
) -> Result<Cost<C, D>> where
T: Value<'a>,
fn objective_function_with_default<'a>(
&self,
xs: &Schedule<T>,
default: &Config<T>
) -> Result<Cost<C, D>> where
T: Value<'a>,
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,
t_end: i32
) -> Result<Cost<C, D>> where
T: Value<'a>,
sourcefn total_movement<'a>(&self, xs: &Schedule<T>, inverted: bool) -> Result<N64> where
T: Value<'a>,
fn total_movement<'a>(&self, xs: &Schedule<T>, inverted: bool) -> Result<N64> where
T: Value<'a>,
Movement in the decision space.
fn _default_config<'a>(&self) -> Config<T> where
T: Value<'a>,
sourceimpl<'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>,
sourcefn 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.
sourcefn objective_function<'a>(&self, xs: &Schedule<T>) -> Result<Cost<C, D>> where
T: Value<'a>,
fn objective_function<'a>(&self, xs: &Schedule<T>) -> Result<Cost<C, D>> where
T: Value<'a>,
Objective function. Calculates the cost of a schedule.
sourcefn 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
sourcefn alpha_unfair_objective_function<'a>(
&self,
xs: &Schedule<T>,
alpha: f64
) -> Result<Cost<C, D>> where
T: Value<'a>,
fn alpha_unfair_objective_function<'a>(
&self,
xs: &Schedule<T>,
alpha: f64
) -> Result<Cost<C, D>> where
T: Value<'a>,
$\alpha$-unfair Objective function. Calculates the cost of a schedule.
sourcefn objective_function_with_default<'a>(
&self,
xs: &Schedule<T>,
default: &Config<T>
) -> Result<Cost<C, D>> where
T: Value<'a>,
fn objective_function_with_default<'a>(
&self,
xs: &Schedule<T>,
default: &Config<T>
) -> Result<Cost<C, D>> where
T: Value<'a>,
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,
t_end: i32
) -> Result<Cost<C, D>> where
T: Value<'a>,
sourcefn total_movement<'a>(&self, xs: &Schedule<T>, inverted: bool) -> Result<N64> where
T: Value<'a>,
fn total_movement<'a>(&self, xs: &Schedule<T>, inverted: bool) -> Result<N64> where
T: Value<'a>,
Movement in the decision space.
fn _default_config<'a>(&self) -> Config<T> where
T: Value<'a>,
impl StructuralPartialEq for DataCenterModelOutputFailure
Auto Trait Implementations
impl RefUnwindSafe for DataCenterModelOutputFailure
impl Send for DataCenterModelOutputFailure
impl Sync for DataCenterModelOutputFailure
impl Unpin for DataCenterModelOutputFailure
impl UnwindSafe for DataCenterModelOutputFailure
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more