Trait smoothed_online_convex_optimization::algorithms::online::OnlineAlgorithm [−][src]
pub trait OnlineAlgorithm<'a, T, P, M, O, C, D>: Fn(Online<P>, i32, &Schedule<T>, M, O) -> Result<Step<T, M>> + Send + Sync where
T: Value<'a>,
P: Problem<T, C, D> + 'a,
M: Memory<'a, T, P, C, D>,
O: Options<T, P, C, D>,
C: ModelOutputSuccess,
D: ModelOutputFailure, {
fn next(
&self,
o: Online<P>,
xs: &Schedule<T>,
prev_m_: Option<M>,
options: O
) -> Result<Step<T, M>> { ... }
fn next_with_default_options(
&self,
o: Online<P>,
xs: &Schedule<T>,
prev_m_: Option<M>
) -> Result<Step<T, M>> { ... }
}
Expand description
Implementation of an online algorithm.
P
- problemM
- memoryO
- options
Receives the arguments:
o
- online problem instancet
- current time slotxs
- schedule up to the previous time slotprev_m
- latest memory, is the default if nothing was memorizedoptions
- algorithm options
Provided methods
Executes the next iteration of an online algorithm.