alpaqa matlab
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Private Types | Private Attributes | List of all members
ZeroFPRSolver< DirectionT > Class Template Reference

#include <alpaqa/inner/zerofpr.hpp>

Detailed Description

template<class DirectionT>
class alpaqa::ZeroFPRSolver< DirectionT >

ZeroFPR solver for ALM.

Definition at line 137 of file zerofpr.hpp.

+ Collaboration diagram for ZeroFPRSolver< DirectionT >:

Public Types

using Problem = TypeErasedProblem< config_t >
 
using Params = ZeroFPRParams< config_t >
 
using Direction = DirectionT
 
using Stats = ZeroFPRStats< config_t >
 
using ProgressInfo = ZeroFPRProgressInfo< config_t >
 
using SolveOptions = InnerSolveOptions< config_t >
 

Public Member Functions

 ZeroFPRSolver (const Params &params)
 
 ZeroFPRSolver (const Params &params, Direction &&direction)
 
 ZeroFPRSolver (const Params &params, const Direction &direction)
 
Stats operator() (const Problem &problem, const SolveOptions &opts, rvec x, rvec y, crvec Σ, rvec err_z)
 
template<class P >
Stats operator() (const P &problem, const SolveOptions &opts, rvec x, rvec y, crvec Σ, rvec e)
 
template<class P >
Stats operator() (const P &problem, const SolveOptions &opts, rvec x)
 
ZeroFPRSolverset_progress_callback (std::function< void(const ProgressInfo &)> cb)
 Specify a callable that is invoked with some intermediate results on each iteration of the algorithm.
 
std::string get_name () const
 
void stop ()
 
const Paramsget_params () const
 

Public Attributes

Direction direction
 
std::ostream * os = &std::cout
 

Private Types

using Helpers = detail::PANOCHelpers< config_t >
 

Private Attributes

Params params
 
AtomicStopSignal stop_signal
 
std::function< void(const ProgressInfo &)> progress_cb
 

Member Typedef Documentation

◆ Problem

Definition at line 141 of file zerofpr.hpp.

◆ Params

template<class DirectionT >
using Params = ZeroFPRParams<config_t>

Definition at line 142 of file zerofpr.hpp.

◆ Direction

Definition at line 143 of file zerofpr.hpp.

◆ Stats

template<class DirectionT >
using Stats = ZeroFPRStats<config_t>

Definition at line 144 of file zerofpr.hpp.

◆ ProgressInfo

Definition at line 145 of file zerofpr.hpp.

◆ SolveOptions

Definition at line 146 of file zerofpr.hpp.

◆ Helpers

template<class DirectionT >
using Helpers = detail::PANOCHelpers<config_t>
private

Definition at line 196 of file zerofpr.hpp.

Constructor & Destructor Documentation

◆ ZeroFPRSolver() [1/3]

template<class DirectionT >
ZeroFPRSolver ( const Params params)
inline

Definition at line 148 of file zerofpr.hpp.

◆ ZeroFPRSolver() [2/3]

template<class DirectionT >
ZeroFPRSolver ( const Params params,
Direction &&  direction 
)
inline

Definition at line 151 of file zerofpr.hpp.

◆ ZeroFPRSolver() [3/3]

template<class DirectionT >
ZeroFPRSolver ( const Params params,
const Direction direction 
)
inline

Definition at line 153 of file zerofpr.hpp.

Member Function Documentation

◆ operator()() [1/3]

auto operator() ( const Problem problem,
const SolveOptions opts,
rvec  x,
rvec  y,
crvec  Σ,
rvec  err_z 
)
Parameters
[in]problemProblem description
[in]optsSolve options
[in,out]xDecision variable \( x \)
[in,out]yLagrange multipliers \( y \)
[in]ΣConstraint weights \( \Sigma \)
[out]err_zSlack variable error \( g(x) - \Pi_D(g(x) + \Sigma^{-1} y) \)

Definition at line 25 of file zerofpr.tpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator()() [2/3]

template<class DirectionT >
template<class P >
Stats operator() ( const P &  problem,
const SolveOptions opts,
rvec  x,
rvec  y,
crvec  Σ,
rvec  e 
)
inline

Definition at line 164 of file zerofpr.hpp.

+ Here is the call graph for this function:

◆ operator()() [3/3]

template<class DirectionT >
template<class P >
Stats operator() ( const P &  problem,
const SolveOptions opts,
rvec  x 
)
inline

Definition at line 170 of file zerofpr.hpp.

+ Here is the call graph for this function:

◆ set_progress_callback()

template<class DirectionT >
ZeroFPRSolver & set_progress_callback ( std::function< void(const ProgressInfo &)>  cb)
inline

Specify a callable that is invoked with some intermediate results on each iteration of the algorithm.

See also
ProgressInfo

Definition at line 181 of file zerofpr.hpp.

◆ get_name()

std::string get_name ( ) const

Definition at line 20 of file zerofpr.tpp.

◆ stop()

template<class DirectionT >
void stop ( )
inline

Definition at line 188 of file zerofpr.hpp.

+ Here is the call graph for this function:

◆ get_params()

template<class DirectionT >
const Params & get_params ( ) const
inline

Definition at line 190 of file zerofpr.hpp.

Member Data Documentation

◆ params

template<class DirectionT >
Params params
private

Definition at line 193 of file zerofpr.hpp.

◆ stop_signal

template<class DirectionT >
AtomicStopSignal stop_signal
private

Definition at line 194 of file zerofpr.hpp.

◆ progress_cb

template<class DirectionT >
std::function<void(const ProgressInfo &)> progress_cb
private

Definition at line 195 of file zerofpr.hpp.

◆ direction

template<class DirectionT >
Direction direction

Definition at line 199 of file zerofpr.hpp.

◆ os

template<class DirectionT >
std::ostream* os = &std::cout

Definition at line 200 of file zerofpr.hpp.


The documentation for this class was generated from the following files: