alpaqa develop
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions | Variables
param-complete.cpp File Reference
#include "param-complete.hpp"
#include <alpaqa/config/config.hpp>
#include <alpaqa/implementation/params/params.tpp>
#include <alpaqa/util/demangled-typename.hpp>
#include <alpaqa/inner/directions/panoc/anderson.hpp>
#include <alpaqa/inner/directions/panoc/convex-newton.hpp>
#include <alpaqa/inner/directions/panoc/lbfgs.hpp>
#include <alpaqa/inner/directions/panoc/structured-lbfgs.hpp>
#include <alpaqa/inner/directions/panoc/structured-newton.hpp>
#include <alpaqa/inner/directions/pantr/newton-tr.hpp>
#include <alpaqa/inner/fista.hpp>
#include <alpaqa/inner/internal/lipschitz.hpp>
#include <alpaqa/inner/internal/panoc-stop-crit.hpp>
#include <alpaqa/inner/panoc.hpp>
#include <alpaqa/inner/pantr.hpp>
#include <alpaqa/inner/zerofpr.hpp>
#include <alpaqa/outer/alm.hpp>
#include <alpaqa/util/dl-flags.hpp>
#include <alpaqa/inner/panoc-ocp.hpp>
#include <cstdio>
#include <iostream>
#include <numeric>
#include <optional>
#include <stdexcept>
#include <string_view>
#include <alpaqa/params/structs.ipp>
+ Include dependency graph for param-complete.cpp:

Go to the source code of this file.

Classes

struct  Value
 
struct  Struct
 
struct  RootOpts
 
struct  attribute_table< RootOpts, S >
 
struct  attribute_table< Struct, S >
 
struct  Method
 

Namespaces

namespace  alpaqa
 
namespace  alpaqa::params
 

Typedefs

using func_t = Result(const MemberGetter &)
 
using dict_t = std::map< std::string_view, Method >
 

Functions

template<class T >
bool is_leaf ()
 
template<class T >
Result get_members (const MemberGetter &s)
 Catch-all.
 
template<class T >
requires requires { attribute_table<T, MemberGetter>::table; }
Result get_members (const MemberGetter &s)
 Struct types.
 
template<class T >
requires requires { enum_table<T, MemberGetter>::table; }
Result get_members (const MemberGetter &s)
 Enum types.
 
template<>
Result get_members< bool > (const MemberGetter &s)
 True/false.
 
void add_root_opts (std::vector< Result::Member > &v)
 
template<class S >
Result get_results_panoc_like (const MemberGetter &s)
 
template<class S >
Result get_results_fista_like (const MemberGetter &s)
 
Result get_results (std::string_view method, const MemberGetter &s)
 
void print_completion (std::string_view method, std::string_view params)
 

Variables

const dict_t methods
 

Class Documentation

◆ alpaqa::params::Value

struct alpaqa::params::Value
+ Collaboration diagram for Value:

◆ alpaqa::params::Struct

struct alpaqa::params::Struct
+ Collaboration diagram for Struct:

◆ alpaqa::params::RootOpts

struct alpaqa::params::RootOpts
+ Collaboration diagram for RootOpts:
Class Members
Value method
Value out
Value sol
Value x0
Value mul_g0
Value mul_x0
Value num_exp
bool extra_stats
bool show_funcs
Struct problem
DynamicLoadFlags dl_flags

◆ Method

struct Method
+ Collaboration diagram for Method:
Class Members
func_t * func
string_view doc

Typedef Documentation

◆ func_t

using func_t = Result(const MemberGetter &)

Definition at line 213 of file param-complete.cpp.

◆ dict_t

using dict_t = std::map<std::string_view, Method>

Definition at line 219 of file param-complete.cpp.

Function Documentation

◆ add_root_opts()

void add_root_opts ( std::vector< Result::Member > &  v)

Definition at line 148 of file param-complete.cpp.

+ Here is the caller graph for this function:

◆ get_results_panoc_like()

template<class S >
Result get_results_panoc_like ( const MemberGetter s)

Definition at line 156 of file param-complete.cpp.

+ Here is the call graph for this function:

◆ get_results_fista_like()

template<class S >
Result get_results_fista_like ( const MemberGetter s)

Definition at line 190 of file param-complete.cpp.

+ Here is the call graph for this function:

◆ get_results()

Result get_results ( std::string_view  method,
const MemberGetter s 
)

Definition at line 240 of file param-complete.cpp.

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

◆ print_completion()

void print_completion ( std::string_view  method,
std::string_view  params 
)

Definition at line 271 of file param-complete.cpp.

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

Variable Documentation

◆ methods

const dict_t methods
Initial value:
{
{"panoc", {get_results_panoc_like<alpaqa::PANOCSolver<alpaqa::LBFGSDirection<config_t>>>, "PANOC + LBFGS solver (default)"}},
{"panoc.lbfgs", {get_results_panoc_like<alpaqa::PANOCSolver<alpaqa::LBFGSDirection<config_t>>>, "PANOC + LBFGS solver"}},
{"panoc.struclbfgs", {get_results_panoc_like<alpaqa::PANOCSolver<alpaqa::StructuredLBFGSDirection<config_t>>>, "PANOC + Structured LBFGS solver"}},
{"panoc.anderson", {get_results_panoc_like<alpaqa::PANOCSolver<alpaqa::AndersonDirection<config_t>>>, "PANOC + Anderson acceleration solver"}},
{"panoc.convex-newton", {get_results_panoc_like<alpaqa::PANOCSolver<alpaqa::ConvexNewtonDirection<config_t>>>, "PANOC + Newton (for convex problems)"}},
{"zerofpr", {get_results_panoc_like<alpaqa::ZeroFPRSolver<alpaqa::LBFGSDirection<config_t>>>, "ZeroFPR + LBFGS solver"}},
{"zerofpr.lbfgs", {get_results_panoc_like<alpaqa::ZeroFPRSolver<alpaqa::LBFGSDirection<config_t>>>, "ZeroFPR + LBFGS solver"}},
{"zerofpr.struclbfgs", {get_results_panoc_like<alpaqa::ZeroFPRSolver<alpaqa::StructuredLBFGSDirection<config_t>>>, "ZeroFPR + Structured LBFGS solver"}},
{"zerofpr.anderson", {get_results_panoc_like<alpaqa::ZeroFPRSolver<alpaqa::AndersonDirection<config_t>>>, "ZeroFPR + Anderson acceleration solver"}},
{"zerofpr.convex-newton", {get_results_panoc_like<alpaqa::PANOCSolver<alpaqa::ConvexNewtonDirection<config_t>>>, "ZeroFPR + Newton (for convex problems)"}},
{"pantr", {get_results_panoc_like<alpaqa::PANTRSolver<alpaqa::NewtonTRDirection<config_t>>>, "PANTR solver"}},
{"fista", {get_results_fista_like<alpaqa::FISTASolver<config_t>>, "FISTA solver"}},
{"ipopt", {alpaqa::params::get_members<void>, "Ipopt solver"}},
{"qpalm", {alpaqa::params::get_members<void>, "QPALM solver"}},
}

Definition at line 221 of file param-complete.cpp.