alpaqa guanaqo
Nonconvex constrained optimization
Loading...
Searching...
No Matches
AndersonDirection< Conf > Struct Template Reference

#include <alpaqa/inner/directions/panoc/anderson.hpp>

Detailed Description

template<Config Conf>
struct alpaqa::AndersonDirection< Conf >

Definition at line 20 of file anderson.hpp.

Collaboration diagram for AndersonDirection< Conf >:

Classes

struct  Params

Public Types

using Problem = TypeErasedProblem<config_t>
using AndersonAccel = alpaqa::AndersonAccel<config_t>
using AcceleratorParams = typename AndersonAccel::Params
using DirectionParams = AndersonDirectionParams<config_t>

Public Member Functions

 AndersonDirection ()=default
 AndersonDirection (const Params &params)
 AndersonDirection (const typename AndersonAccel::Params &params, const DirectionParams &directionparams={})
 AndersonDirection (const AndersonAccel &anderson, const DirectionParams &directionparams={})
 AndersonDirection (AndersonAccel &&anderson, const DirectionParams &directionparams={})
void initialize (const Problem &problem, crvec y, crvec Σ, real_t γ_0, crvec x_0, crvec x̂_0, crvec p_0, crvec grad_ψx_0)
bool has_initial_direction () const
bool update (real_t γₖ, real_t γₙₑₓₜ, crvec xₖ, crvec xₙₑₓₜ, crvec pₖ, crvec pₙₑₓₜ, crvec grad_ψxₖ, crvec grad_ψxₙₑₓₜ)
bool apply (real_t γₖ, crvec xₖ, crvec x̂ₖ, crvec pₖ, crvec grad_ψxₖ, rvec qₖ) const
void changed_γ (real_t γₖ, real_t old_γₖ)
void reset ()
std::string get_name () const
auto get_params () const

Public Attributes

AndersonAccel anderson
DirectionParams direction_params

Class Documentation

◆ alpaqa::AndersonDirection::Params

struct alpaqa::AndersonDirection::Params
Collaboration diagram for AndersonDirection< Conf >::Params:
Class Members
AcceleratorParams accelerator = {}
DirectionParams direction = {}

Member Typedef Documentation

◆ Problem

template<Config Conf>
using Problem = TypeErasedProblem<config_t>

Definition at line 23 of file anderson.hpp.

◆ AndersonAccel

template<Config Conf>
using AndersonAccel = alpaqa::AndersonAccel<config_t>

Definition at line 24 of file anderson.hpp.

◆ AcceleratorParams

template<Config Conf>
using AcceleratorParams = typename AndersonAccel::Params

Definition at line 25 of file anderson.hpp.

◆ DirectionParams

template<Config Conf>
using DirectionParams = AndersonDirectionParams<config_t>

Definition at line 26 of file anderson.hpp.

Constructor & Destructor Documentation

◆ AndersonDirection() [1/5]

template<Config Conf>
AndersonDirection ( )
default

◆ AndersonDirection() [2/5]

template<Config Conf>
AndersonDirection ( const Params & params)
inline

Definition at line 36 of file anderson.hpp.

◆ AndersonDirection() [3/5]

template<Config Conf>
AndersonDirection ( const typename AndersonAccel::Params & params,
const DirectionParams & directionparams = {} )
inline

Definition at line 38 of file anderson.hpp.

◆ AndersonDirection() [4/5]

template<Config Conf>
AndersonDirection ( const AndersonAccel & anderson,
const DirectionParams & directionparams = {} )
inline

Definition at line 41 of file anderson.hpp.

◆ AndersonDirection() [5/5]

template<Config Conf>
AndersonDirection ( AndersonAccel && anderson,
const DirectionParams & directionparams = {} )
inline

Definition at line 44 of file anderson.hpp.

Member Function Documentation

◆ initialize()

template<Config Conf>
void initialize ( const Problem & problem,
crvec y,
crvec Σ,
real_t γ_0,
crvec x_0,
crvec x̂_0,
crvec p_0,
crvec grad_ψx_0 )
inline
See also
initialize

Definition at line 49 of file anderson.hpp.

Here is the call graph for this function:

◆ has_initial_direction()

template<Config Conf>
bool has_initial_direction ( ) const
inline
See also
has_initial_direction

Definition at line 59 of file anderson.hpp.

◆ update()

template<Config Conf>
bool update ( real_t γₖ,
real_t γₙₑₓₜ,
crvec xₖ,
crvec xₙₑₓₜ,
crvec pₖ,
crvec pₙₑₓₜ,
crvec grad_ψxₖ,
crvec grad_ψxₙₑₓₜ )
inline
See also
update

Definition at line 62 of file anderson.hpp.

◆ apply()

template<Config Conf>
bool apply ( real_t γₖ,
crvec xₖ,
crvec x̂ₖ,
crvec pₖ,
crvec grad_ψxₖ,
rvec qₖ ) const
inline
See also
apply

Definition at line 71 of file anderson.hpp.

◆ changed_γ()

template<Config Conf>
void changed_γ ( real_t γₖ,
real_t old_γₖ )
inline
See also
changed_γ

Definition at line 80 of file anderson.hpp.

◆ reset()

template<Config Conf>
void reset ( )
inline
See also
reset

Definition at line 88 of file anderson.hpp.

◆ get_name()

template<Config Conf>
std::string get_name ( ) const
inline
See also
get_name

Definition at line 91 of file anderson.hpp.

◆ get_params()

template<Config Conf>
auto get_params ( ) const
inline

Definition at line 94 of file anderson.hpp.

Member Data Documentation

◆ anderson

template<Config Conf>
AndersonAccel anderson
mutable

Definition at line 28 of file anderson.hpp.

◆ direction_params

template<Config Conf>
DirectionParams direction_params

Definition at line 98 of file anderson.hpp.


The documentation for this struct was generated from the following file: