[−][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(
problem_size: NonZeroUsize,
tolerance: f64,
lbfgs_memory_size: NonZeroUsize
) -> PANOCCache
[src]
problem_size: NonZeroUsize,
tolerance: f64,
lbfgs_memory_size: NonZeroUsize
) -> PANOCCache
Construct a new instance of PANOCCache
Arguments
problem_size
dimension of the decision variables of the optimization problemtolerance
specified tolerancelbfgs_memory_size
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*problem_size + 2*lbfgs_memory_size*problem_size + 2*lbfgs_memory_size + 11
floats (f64
)
Trait Implementations
Auto Trait Implementations
impl Send for PANOCCache
impl Sync for PANOCCache
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,