[−][src]Struct optimization_engine::core::panoc::PANOCCache
Cache for PANOC
This struct carries all the information needed at every step of the algorithm.
An instance of PANOCCache
needs to be allocated once and a (mutable) reference to it should
be passed to instances of PANOCEngine
Subsequently, a PANOCEngine
is used to construct an instance of PANOCAlgorithm
Methods
impl PANOCCache
[src]
pub fn new(
n: NonZeroUsize,
tolerance: f64,
lbfgs_mem: NonZeroUsize
) -> PANOCCache
[src]
n: NonZeroUsize,
tolerance: f64,
lbfgs_mem: NonZeroUsize
) -> PANOCCache
Construct a new instance of PANOCCache
Arguments
n
dimension of the decision variables of the optimization problemtolerance
specified tolerancelbfgs_mem
memory of the LBFGS buffer
Panics
The method will panic if
- the specified
tolerance
is not positive - memory allocation fails (memory capacity overflow)
Memory allocation
This constructor allocated memory using vec!
.
It allocates a total of 8*n + 2*lbfgs_mem*n + 2*lbfgs_mem + 11
floats (f64
)
Trait Implementations
Auto Trait Implementations
impl Send for PANOCCache
impl Sync for PANOCCache
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,