Struct soco::model::data_center::model::DataCenterOfflineInput
source · [−]pub struct DataCenterOfflineInput {
pub loads: Vec<LoadProfile>,
}
Expand description
Inputs to generate problem instances in an offline setting.
Fields
loads: Vec<LoadProfile>
Vector of loads for all time slots that should be supported by the returned cost function.
Implementations
sourceimpl DataCenterOfflineInput
impl DataCenterOfflineInput
pub fn into_online(self) -> Vec<DataCenterOnlineInput>
Trait Implementations
sourceimpl Clone for DataCenterOfflineInput
impl Clone for DataCenterOfflineInput
sourcefn clone(&self) -> DataCenterOfflineInput
fn clone(&self) -> DataCenterOfflineInput
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 DataCenterOfflineInput
impl Debug for DataCenterOfflineInput
sourceimpl Default for DataCenterOfflineInput
impl Default for DataCenterOfflineInput
sourcefn default() -> DataCenterOfflineInput
fn default() -> DataCenterOfflineInput
Returns the “default value” for a type. Read more
sourceimpl<'source> FromPyObject<'source> for DataCenterOfflineInput
impl<'source> FromPyObject<'source> for DataCenterOfflineInput
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).
impl OfflineInput for DataCenterOfflineInput
Auto Trait Implementations
impl RefUnwindSafe for DataCenterOfflineInput
impl Send for DataCenterOfflineInput
impl Sync for DataCenterOfflineInput
impl Unpin for DataCenterOfflineInput
impl UnwindSafe for DataCenterOfflineInput
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<T, P, C, D, U> DefaultGivenOnlineProblem<T, P, C, D> for U where
P: Problem<T, C, D>,
C: ModelOutputSuccess,
D: ModelOutputFailure,
U: Default,
impl<T, P, C, D, U> DefaultGivenOnlineProblem<T, P, C, D> for U where
P: Problem<T, C, D>,
C: ModelOutputSuccess,
D: ModelOutputFailure,
U: Default,
sourceimpl<T, P, C, D, U> DefaultGivenProblem<T, P, C, D> for U where
P: Problem<T, C, D>,
C: ModelOutputSuccess,
D: ModelOutputFailure,
U: Default,
impl<T, P, C, D, U> DefaultGivenProblem<T, P, C, D> for U where
P: Problem<T, C, D>,
C: ModelOutputSuccess,
D: ModelOutputFailure,
U: Default,
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