Struct smoothed_online_convex_optimization::cost::CostFn[][src]

pub struct CostFn<'a, T, C, D>(_);
Expand description

Cost functions that arrived over time. Individual cost functions may have different domains. For example, in a predictive online setting, a cost function arriving at time $t$ generally has the domain $[t, t + w]$.

Implementations

Creates empty cost function.

Creates initial cost function from some time $t \geq 1$.

Adds a new cost function which may return uncertain predictions. Must always return at least one sample (which corresponds to certainty).

Returns mean if cost function returns a prediction.

Computes certain cost.

Computes uncertain cost.

Returns mean if cost function returns a prediction while ensuring that the given parameter is within the decision space.

Computes certain cost while ensuring that the given parameter is within the decision space.

Computes uncertain cost while ensuring that the given parameter is within the decision space.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Discretize a certain fractional cost function.

Relax a certain integral cost function to the fractional setting.

Shift a certain cost function to some new initial time $t_start$ (a time before first time slot).

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

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

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.