alpaqa 1.0.0a11
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Public Attributes | Private Attributes | List of all members
StructuredNewtonDirection< Conf > Struct Template Reference

#include <alpaqa/inner/directions/panoc/structured-newton.hpp>

Detailed Description

template<Config Conf = DefaultConfig>
struct alpaqa::StructuredNewtonDirection< Conf >

Definition at line 46 of file structured-newton.hpp.

+ Collaboration diagram for StructuredNewtonDirection< Conf >:

Classes

struct  Params
 

Public Types

using Problem = TypeErasedProblem< config_t >
 
using DirectionParams = StructuredNewtonDirectionParams< config_t >
 
using AcceleratorParams = StructuredNewtonRegularizationParams< config_t >
 

Public Member Functions

 StructuredNewtonDirection ()=default
 
 StructuredNewtonDirection (const Params &params)
 
 StructuredNewtonDirection (const AcceleratorParams &params, 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
 
const auto & get_params () const
 

Public Attributes

AcceleratorParams reg_params
 
DirectionParams direction_params
 

Private Attributes

const Problemproblem = nullptr
 
std::optional< crvecy = std::nullopt
 
std::optional< crvecΣ = std::nullopt
 
indexvec JK
 
vec H_storage
 
vec HJ_storage
 
indexvec inner_idx_H
 
indexvec outer_ptr_H
 

Class Documentation

◆ alpaqa::StructuredNewtonDirection::Params

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

Member Typedef Documentation

◆ Problem

using Problem = TypeErasedProblem<config_t>

Definition at line 48 of file structured-newton.hpp.

◆ DirectionParams

Definition at line 49 of file structured-newton.hpp.

◆ AcceleratorParams

Definition at line 50 of file structured-newton.hpp.

Constructor & Destructor Documentation

◆ StructuredNewtonDirection() [1/3]

◆ StructuredNewtonDirection() [2/3]

StructuredNewtonDirection ( const Params params)
inline

Definition at line 58 of file structured-newton.hpp.

◆ StructuredNewtonDirection() [3/3]

StructuredNewtonDirection ( const AcceleratorParams params,
const DirectionParams directionparams = {} 
)
inline

Definition at line 60 of file structured-newton.hpp.

Member Function Documentation

◆ initialize()

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
PANOCDirection::initialize

Definition at line 65 of file structured-newton.hpp.

+ Here is the call graph for this function:

◆ has_initial_direction()

bool has_initial_direction ( ) const
inline
See also
PANOCDirection::has_initial_direction

Definition at line 96 of file structured-newton.hpp.

◆ update()

bool update ( real_t  γₖ,
real_t  γₙₑₓₜ,
crvec  xₖ,
crvec  xₙₑₓₜ,
crvec  pₖ,
crvec  pₙₑₓₜ,
crvec  grad_ψxₖ,
crvec  grad_ψxₙₑₓₜ 
)
inline
See also
PANOCDirection::update

Definition at line 99 of file structured-newton.hpp.

◆ apply()

bool apply ( real_t  γₖ,
crvec  xₖ,
crvec  x̂ₖ,
crvec  pₖ,
crvec  grad_ψxₖ,
rvec  qₖ 
) const
inline
See also
PANOCDirection::apply

Definition at line 108 of file structured-newton.hpp.

+ Here is the call graph for this function:

◆ changed_γ()

void changed_γ ( real_t  γₖ,
real_t  old_γₖ 
)
inline
See also
PANOCDirection::changed_γ

Definition at line 206 of file structured-newton.hpp.

◆ reset()

void reset ( )
inline
See also
PANOCDirection::reset

Definition at line 210 of file structured-newton.hpp.

◆ get_name()

std::string get_name ( ) const
inline
See also
PANOCDirection::get_name

Definition at line 213 of file structured-newton.hpp.

◆ get_params()

const auto & get_params ( ) const
inline

Definition at line 218 of file structured-newton.hpp.

Member Data Documentation

◆ problem

const Problem* problem = nullptr
private

Definition at line 221 of file structured-newton.hpp.

◆ y

std::optional<crvec> y = std::nullopt
private

Definition at line 223 of file structured-newton.hpp.

◆ Σ

std::optional<crvec> Σ = std::nullopt
private

Definition at line 224 of file structured-newton.hpp.

◆ JK

indexvec JK
mutableprivate

Definition at line 230 of file structured-newton.hpp.

◆ H_storage

vec H_storage
mutableprivate

Definition at line 231 of file structured-newton.hpp.

◆ HJ_storage

vec HJ_storage
mutableprivate

Definition at line 232 of file structured-newton.hpp.

◆ inner_idx_H

indexvec inner_idx_H
mutableprivate

Definition at line 233 of file structured-newton.hpp.

◆ outer_ptr_H

indexvec outer_ptr_H
private

Definition at line 233 of file structured-newton.hpp.

◆ reg_params

AcceleratorParams reg_params

Definition at line 236 of file structured-newton.hpp.

◆ direction_params

DirectionParams direction_params

Definition at line 237 of file structured-newton.hpp.


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