Struct soco::model::data_center::DataCenterModelOutputSuccess
source · [−]pub struct DataCenterModelOutputSuccess {
pub energy_cost: f64,
pub revenue_loss: f64,
pub assignments: Vec<Vec<Vec<f64>>>,
}
Expand description
Model result.
Fields
energy_cost: f64
Energy cost of model.
revenue_loss: f64
Revenue loss of model.
assignments: Vec<Vec<Vec<f64>>>
All possible assignments of fractions of loads to server types for each time slot.
Implementations
Trait Implementations
sourceimpl Clone for DataCenterModelOutputSuccess
impl Clone for DataCenterModelOutputSuccess
sourcefn clone(&self) -> DataCenterModelOutputSuccess
fn clone(&self) -> DataCenterModelOutputSuccess
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 DataCenterModelOutputSuccess
impl Debug for DataCenterModelOutputSuccess
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<'de> Deserialize<'de> for DataCenterModelOutputSuccess
impl<'de> Deserialize<'de> for DataCenterModelOutputSuccess
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 IntoPy<Py<PyAny>> for DataCenterModelOutputSuccess
impl IntoPy<Py<PyAny>> for DataCenterModelOutputSuccess
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 ModelOutputSuccess for DataCenterModelOutputSuccess
impl ModelOutputSuccess for DataCenterModelOutputSuccess
sourcefn vertical_merge(self, output: Self) -> Self
fn vertical_merge(self, output: Self) -> Self
Computes the mean energy cost and revenue loss.
sourcefn horizontal_merge(self, output: Self) -> Self
fn horizontal_merge(self, output: Self) -> Self
Merge two outputs across time steps.
sourceimpl PartialEq<DataCenterModelOutputSuccess> for DataCenterModelOutputSuccess
impl PartialEq<DataCenterModelOutputSuccess> for DataCenterModelOutputSuccess
sourcefn eq(&self, other: &DataCenterModelOutputSuccess) -> bool
fn eq(&self, other: &DataCenterModelOutputSuccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DataCenterModelOutputSuccess) -> bool
fn ne(&self, other: &DataCenterModelOutputSuccess) -> bool
This method tests for !=
.
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>,
sourceimpl PyClass for DataCenterModelOutputSuccess
impl PyClass for DataCenterModelOutputSuccess
type Dict = PyClassDummySlot
type Dict = PyClassDummySlot
Specify this class has #[pyclass(dict)]
or not.
type WeakRef = PyClassDummySlot
type WeakRef = PyClassDummySlot
Specify this class has #[pyclass(weakref)]
or not.
type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
. Read more
sourceimpl PyClassDescriptors<DataCenterModelOutputSuccess> for PyClassImplCollector<DataCenterModelOutputSuccess>
impl PyClassDescriptors<DataCenterModelOutputSuccess> for PyClassImplCollector<DataCenterModelOutputSuccess>
fn py_class_descriptors(self) -> &'static [PyMethodDefType]
sourceimpl PyClassImpl for DataCenterModelOutputSuccess
impl PyClassImpl for DataCenterModelOutputSuccess
sourceconst IS_BASETYPE: bool
const IS_BASETYPE: bool
#[pyclass(subclass)]
sourceconst IS_SUBCLASS: bool
const IS_SUBCLASS: bool
#[pyclass(extends=…)]
type ThreadChecker = ThreadCheckerStub<DataCenterModelOutputSuccess>
type ThreadChecker = ThreadCheckerStub<DataCenterModelOutputSuccess>
This handles following two situations: Read more
fn for_each_method_def(visitor: &mut dyn FnMut(&[PyMethodDefType]))
fn get_new() -> Option<newfunc>
fn get_alloc() -> Option<allocfunc>
fn get_free() -> Option<freefunc>
fn for_each_proto_slot(visitor: &mut dyn FnMut(&[PyType_Slot]))
fn get_buffer() -> Option<&'static PyBufferProcs>
sourceimpl PyTypeInfo for DataCenterModelOutputSuccess
impl PyTypeInfo for DataCenterModelOutputSuccess
type AsRefTarget = PyCell<Self>
type AsRefTarget = PyCell<Self>
Utility type to make Py::as_ref work.
sourcefn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
PyTypeObject instance for this type.
sourcefn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if object
is an instance of this type or a subclass of this type.
sourcefn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if object
is an instance of this type.
impl StructuralPartialEq for DataCenterModelOutputSuccess
Auto Trait Implementations
impl RefUnwindSafe for DataCenterModelOutputSuccess
impl Send for DataCenterModelOutputSuccess
impl Sync for DataCenterModelOutputSuccess
impl Unpin for DataCenterModelOutputSuccess
impl UnwindSafe for DataCenterModelOutputSuccess
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
sourceimpl<'a, T> FromPyObject<'a> for T where
T: PyClass + Clone,
impl<'a, T> FromPyObject<'a> for T where
T: PyClass + Clone,
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> PyTypeObject for T where
T: PyTypeInfo,
impl<T> PyTypeObject for T where
T: PyTypeInfo,
sourcefn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
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