pub struct SimplifiedSmoothedConvexOptimization<'a, T, C, D> {
pub d: i32,
pub t_end: i32,
pub bounds: Vec<T>,
pub switching_cost: Vec<f64>,
pub hitting_cost: CostFn<'a, Config<T>, C, D>,
}
Expand description
Simplified Smoothed Convex Optimization (SSCO).
- decision space is lower bounded by $\mathbf{0}$
- movement costs are a dimension-dependently scaled Manhattan distance
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.
hitting_cost: CostFn<'a, Config<T>, C, D>
Non-negative convex cost functions.
Implementations§
Source§impl<'a, T, C, D> SimplifiedSmoothedConvexOptimization<'a, T, C, D>where
T: Value<'a>,
C: ModelOutputSuccess + 'a,
D: ModelOutputFailure + 'a,
impl<'a, T, C, D> SimplifiedSmoothedConvexOptimization<'a, T, C, D>where
T: Value<'a>,
C: ModelOutputSuccess + 'a,
D: ModelOutputFailure + 'a,
Sourcepub fn into_sco(self) -> SmoothedConvexOptimization<'a, T, C, D>
pub fn into_sco(self) -> SmoothedConvexOptimization<'a, T, C, D>
Convert to an instance of Smoothed Convex Optimization. This assumes that time slots are added after this conversion.
Trait Implementations§
Source§impl<'a, T, C, D> BaseProblem for SimplifiedSmoothedConvexOptimization<'a, T, C, D>
impl<'a, T, C, D> BaseProblem for SimplifiedSmoothedConvexOptimization<'a, T, C, D>
Source§impl<'a, T: Clone, C: Clone, D: Clone> Clone for SimplifiedSmoothedConvexOptimization<'a, T, C, D>
impl<'a, T: Clone, C: Clone, D: Clone> Clone for SimplifiedSmoothedConvexOptimization<'a, T, C, D>
Source§fn clone(&self) -> SimplifiedSmoothedConvexOptimization<'a, T, C, D>
fn clone(&self) -> SimplifiedSmoothedConvexOptimization<'a, T, C, D>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a, T, C, D> Debug for SimplifiedSmoothedConvexOptimization<'a, T, C, D>where
T: Debug,
impl<'a, T, C, D> Debug for SimplifiedSmoothedConvexOptimization<'a, T, C, D>where
T: Debug,
Source§impl<'a, C, D> DefaultGivenOnlineProblem<f64, SimplifiedSmoothedConvexOptimization<'a, f64, C, D>, C, D> for Memorywhere
C: ModelOutputSuccess,
D: ModelOutputFailure,
impl<'a, C, D> DefaultGivenOnlineProblem<f64, SimplifiedSmoothedConvexOptimization<'a, f64, C, D>, C, D> for Memorywhere
C: ModelOutputSuccess,
D: ModelOutputFailure,
fn default( o: &Online<FractionalSimplifiedSmoothedConvexOptimization<'_, C, D>>, ) -> Self
Source§impl<'a, T> Model<T, SimplifiedSmoothedConvexOptimization<'a, T, DataCenterModelOutputSuccess, DataCenterModelOutputFailure>, DataCenterOfflineInput, DataCenterOnlineInput, DataCenterModelOutputSuccess, DataCenterModelOutputFailure> for DataCenterModelwhere
T: Value<'a>,
impl<'a, T> Model<T, SimplifiedSmoothedConvexOptimization<'a, T, DataCenterModelOutputSuccess, DataCenterModelOutputFailure>, DataCenterOfflineInput, DataCenterOnlineInput, DataCenterModelOutputSuccess, DataCenterModelOutputFailure> for DataCenterModelwhere
T: Value<'a>,
Source§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).
Source§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).
Source§impl<'a, T, C, D> Problem<T, C, D> for SimplifiedSmoothedConvexOptimization<'a, T, C, D>where
T: Value<'a>,
C: ModelOutputSuccess,
D: ModelOutputFailure,
impl<'a, T, C, D> Problem<T, C, D> for SimplifiedSmoothedConvexOptimization<'a, T, C, D>where
T: Value<'a>,
C: ModelOutputSuccess,
D: ModelOutputFailure,
Source§fn 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.
Source§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.
Source§fn 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.
Source§fn 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>,
Source§fn 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>,
Source§impl<'a, T, C, D> Resettable<'a> for SimplifiedSmoothedConvexOptimization<'a, T, C, D>where
T: Value<'a>,
C: ModelOutputSuccess,
D: ModelOutputFailure,
impl<'a, T, C, D> Resettable<'a> for SimplifiedSmoothedConvexOptimization<'a, T, C, D>where
T: Value<'a>,
C: ModelOutputSuccess,
D: ModelOutputFailure,
Source§fn reset(
&'a self,
t_start: i32,
) -> SimplifiedSmoothedConvexOptimization<'a, T, C, D>
fn reset( &'a self, t_start: i32, ) -> SimplifiedSmoothedConvexOptimization<'a, T, C, D>
Shift object to some new initial time $t_start$. Here, $t_start$ is the time before first time slot (e.g., $t_start = 0$ is a no-op).
Source§impl<'a, T, C, D> VerifiableProblem for SimplifiedSmoothedConvexOptimization<'a, T, C, D>where
T: Value<'a>,
impl<'a, T, C, D> VerifiableProblem for SimplifiedSmoothedConvexOptimization<'a, T, C, D>where
T: Value<'a>,
Auto Trait Implementations§
impl<'a, T, C, D> Freeze for SimplifiedSmoothedConvexOptimization<'a, T, C, D>
impl<'a, T, C, D> !RefUnwindSafe for SimplifiedSmoothedConvexOptimization<'a, T, C, D>
impl<'a, T, C, D> Send for SimplifiedSmoothedConvexOptimization<'a, T, C, D>where
T: Send,
impl<'a, T, C, D> Sync for SimplifiedSmoothedConvexOptimization<'a, T, C, D>where
T: Sync,
impl<'a, T, C, D> Unpin for SimplifiedSmoothedConvexOptimization<'a, T, C, D>where
T: Unpin,
impl<'a, T, C, D> !UnwindSafe for SimplifiedSmoothedConvexOptimization<'a, T, C, D>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.