alpaqa 1.0.0a16
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/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/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
Struct problem

◆ 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 208 of file param-complete.cpp.

◆ dict_t

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

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

Function Documentation

◆ add_root_opts()

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

Definition at line 143 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 151 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 185 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 233 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 264 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"}},
{"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"}},
{"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 216 of file param-complete.cpp.