pub struct OfflineOptions {
pub inverted: bool,
pub alpha: f64,
pub l: Option<f64>,
}
Expand description
Configuration of offline algorithms.
Fields§
§inverted: bool
Compute inverted movement costs (SSCO only).
alpha: f64
Compute the $\alpha$-unfair offline optimum.
l: Option<f64>
Compute the $L$-constrained offline optimum (convex_optimization
only).
Implementations§
Source§impl OfflineOptions
impl OfflineOptions
pub fn inverted() -> Self
pub fn alpha_unfair(alpha: f64) -> Self
pub fn l_constrained(l: f64) -> Self
Trait Implementations§
Source§impl Clone for OfflineOptions
impl Clone for OfflineOptions
Source§fn clone(&self) -> OfflineOptions
fn clone(&self) -> OfflineOptions
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 Debug for OfflineOptions
impl Debug for OfflineOptions
Source§impl Default for OfflineOptions
impl Default for OfflineOptions
Source§impl PyClass for OfflineOptions
impl PyClass for OfflineOptions
Source§type Dict = PyClassDummySlot
type Dict = PyClassDummySlot
Specify this class has
#[pyclass(dict)]
or not.Source§type WeakRef = PyClassDummySlot
type WeakRef = PyClassDummySlot
Specify this class has
#[pyclass(weakref)]
or not.Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.Source§impl PyClassDescriptors<OfflineOptions> for PyClassImplCollector<OfflineOptions>
impl PyClassDescriptors<OfflineOptions> for PyClassImplCollector<OfflineOptions>
fn py_class_descriptors(self) -> &'static [PyMethodDefType]
Source§impl PyClassImpl for OfflineOptions
impl PyClassImpl for OfflineOptions
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
Source§type Layout = PyCell<OfflineOptions>
type Layout = PyCell<OfflineOptions>
Layout
Source§type ThreadChecker = ThreadCheckerStub<OfflineOptions>
type ThreadChecker = ThreadCheckerStub<OfflineOptions>
This handles following two situations: Read more
fn for_each_method_def(visitor: &mut dyn FnMut(&[PyMethodDefType]))
fn get_new() -> Option<newfunc>
fn get_alloc() -> Option<allocfunc>
fn get_free() -> Option<freefunc>
fn for_each_proto_slot(visitor: &mut dyn FnMut(&[PyType_Slot]))
fn get_buffer() -> Option<&'static PyBufferProcs>
Source§impl PyClassNewImpl<OfflineOptions> for PyClassImplCollector<OfflineOptions>
impl PyClassNewImpl<OfflineOptions> for PyClassImplCollector<OfflineOptions>
Source§impl PyMethods<OfflineOptions> for PyClassImplCollector<OfflineOptions>
impl PyMethods<OfflineOptions> for PyClassImplCollector<OfflineOptions>
fn py_methods(self) -> &'static [PyMethodDefType]
Source§impl PyMethodsProtocolSlots<OfflineOptions> for PyClassImplCollector<OfflineOptions>
impl PyMethodsProtocolSlots<OfflineOptions> for PyClassImplCollector<OfflineOptions>
fn methods_protocol_slots(self) -> &'static [PyType_Slot]
Source§impl PyTypeInfo for OfflineOptions
impl PyTypeInfo for OfflineOptions
Source§type AsRefTarget = PyCell<OfflineOptions>
type AsRefTarget = PyCell<OfflineOptions>
Utility type to make Py::as_ref work.
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
PyTypeObject instance for this type.
Source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type or a subclass of this type.Source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type.Auto Trait Implementations§
impl Freeze for OfflineOptions
impl RefUnwindSafe for OfflineOptions
impl Send for OfflineOptions
impl Sync for OfflineOptions
impl Unpin for OfflineOptions
impl UnwindSafe for OfflineOptions
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, P, C, D, U> DefaultGivenOnlineProblem<T, P, C, D> for U
impl<T, P, C, D, U> DefaultGivenOnlineProblem<T, P, C, D> for U
Source§impl<T, P, C, D, U> DefaultGivenProblem<T, P, C, D> for U
impl<T, P, C, D, U> DefaultGivenProblem<T, P, C, D> for U
Source§impl<'a, T> FromPyObject<'a> for T
impl<'a, T> FromPyObject<'a> for T
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<T> PyErrArguments for T
impl<T> PyErrArguments for T
Source§impl<T> PyTypeObject for Twhere
T: PyTypeInfo,
impl<T> PyTypeObject for Twhere
T: PyTypeInfo,
Source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
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.