alpaqa guanaqo
Nonconvex constrained optimization
Loading...
Searching...
No Matches
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 140 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
guanaqo::AtomicStopSignal stop_signal
std::function< void(const ProgressInfo &)> progress_cb

Member Typedef Documentation

◆ Problem

template<class DirectionT>
using Problem = TypeErasedProblem<config_t>

Definition at line 144 of file zerofpr.hpp.

◆ Params

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

Definition at line 145 of file zerofpr.hpp.

◆ Direction

template<class DirectionT>
using Direction = DirectionT

Definition at line 146 of file zerofpr.hpp.

◆ Stats

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

Definition at line 147 of file zerofpr.hpp.

◆ ProgressInfo

template<class DirectionT>
using ProgressInfo = ZeroFPRProgressInfo<config_t>

Definition at line 148 of file zerofpr.hpp.

◆ SolveOptions

template<class DirectionT>
using SolveOptions = InnerSolveOptions<config_t>

Definition at line 149 of file zerofpr.hpp.

◆ Helpers

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

Definition at line 199 of file zerofpr.hpp.

Constructor & Destructor Documentation

◆ ZeroFPRSolver() [1/3]

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

Definition at line 151 of file zerofpr.hpp.

◆ ZeroFPRSolver() [2/3]

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

Definition at line 154 of file zerofpr.hpp.

◆ ZeroFPRSolver() [3/3]

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

Definition at line 156 of file zerofpr.hpp.

Member Function Documentation

◆ operator()() [1/3]

template<class DirectionProviderT>
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 167 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 173 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 184 of file zerofpr.hpp.

◆ get_name()

template<class DirectionProviderT>
std::string get_name ( ) const

Definition at line 20 of file zerofpr.tpp.

◆ stop()

template<class DirectionT>
void stop ( )
inline

Definition at line 191 of file zerofpr.hpp.

◆ get_params()

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

Definition at line 193 of file zerofpr.hpp.

Member Data Documentation

◆ params

template<class DirectionT>
Params params
private

Definition at line 196 of file zerofpr.hpp.

◆ stop_signal

template<class DirectionT>
guanaqo::AtomicStopSignal stop_signal
private

Definition at line 197 of file zerofpr.hpp.

◆ progress_cb

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

Definition at line 198 of file zerofpr.hpp.

◆ direction

template<class DirectionT>
Direction direction

Definition at line 202 of file zerofpr.hpp.

◆ os

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

Definition at line 203 of file zerofpr.hpp.


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