Struct smoothed_online_convex_optimization::streaming::online::OfflineResponse [−][src]
pub struct OfflineResponse<T, C, D, M> {
pub xs: (Schedule<T>, Cost<C, D>),
pub int_xs: (Schedule<i32>, Cost<C, D>),
pub m: Option<M>,
pub runtime: u128,
}
Expand description
Intermediate result after solving the initial offline problem.
Fields
xs: (Schedule<T>, Cost<C, D>)
int_xs: (Schedule<i32>, Cost<C, D>)
m: Option<M>
runtime: u128
Trait Implementations
Auto Trait Implementations
impl<T, C, D, M> RefUnwindSafe for OfflineResponse<T, C, D, M> where
C: RefUnwindSafe,
D: RefUnwindSafe,
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, C, D, M> Unpin for OfflineResponse<T, C, D, M> where
C: Unpin,
D: Unpin,
M: Unpin,
T: Unpin,
impl<T, C, D, M> UnwindSafe for OfflineResponse<T, C, D, M> where
C: UnwindSafe,
D: UnwindSafe,
M: UnwindSafe,
T: UnwindSafe,
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.