alpaqa sparse
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs | Functions
params.cpp File Reference
#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/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/io/csv.hpp>
#include <alpaqa/inner/panoc-ocp.hpp>
#include <alpaqa/implementation/params/params.tpp>
#include <fstream>
#include "from_chars-compat.ipp"
+ Include dependency graph for params.cpp:

Go to the source code of this file.

Classes

struct  dict_to_struct_table< LBFGSParams< config_t > >
 
struct  dict_to_struct_table< AndersonAccelParams< config_t > >
 
struct  dict_to_struct_table< CBFGSParams< config_t > >
 
struct  dict_to_struct_table< LipschitzEstimateParams< config_t > >
 
struct  dict_to_struct_table< PANTRParams< config_t > >
 
struct  dict_to_struct_table< PANOCParams< config_t > >
 
struct  dict_to_struct_table< ZeroFPRParams< config_t > >
 
struct  dict_to_struct_table< LBFGSDirectionParams< config_t > >
 
struct  dict_to_struct_table< AndersonDirectionParams< config_t > >
 
struct  dict_to_struct_table< StructuredLBFGSDirectionParams< config_t > >
 
struct  dict_to_struct_table< NewtonTRDirectionParams< config_t > >
 
struct  dict_to_struct_table< SteihaugCGParams< config_t > >
 
struct  dict_to_struct_table< StructuredNewtonRegularizationParams< config_t > >
 
struct  dict_to_struct_table< StructuredNewtonDirectionParams< config_t > >
 
struct  dict_to_struct_table< ALMParams< config_t > >
 
struct  dict_to_struct_table< PANOCOCPParams< config_t > >
 

Namespaces

namespace  alpaqa
 
namespace  alpaqa::params
 
namespace  alpaqa::params::detail
 

Macros

#define ALPAQA_SET_PARAM_INST(...)
 
#define ALPAQA_SET_PARAM_INST_INT(...)
 

Typedefs

template<class NewAlias , class... PossibleAliases>
using possible_alias_t = std::conditional_t< any_is_same< NewAlias, PossibleAliases... >(), _dummy< NewAlias, PossibleAliases... >, NewAlias >
 If NewAlias is not the same type as any of PossibleAliases, the result is NewAlias.
 

Functions

template<>
void set_param (bool &b, ParamString s)
 
template<>
void set_param (std::string_view &v, ParamString s)
 
template<>
void set_param (std::string &v, ParamString s)
 
template<class T >
requires ((std::floating_point<T> || std::integral<T>) && !std::is_enum_v<T>)
void set_param (T &f, ParamString s)
 Update/overwrite the first argument based on the option in s.
 
template<>
void set_param (alpaqa::vec< config_t > &v, ParamString s)
 
template<>
void set_param (vec_from_file< config_t > &v, ParamString s)
 
template<class Rep , class Period >
void set_param (std::chrono::duration< Rep, Period > &t, ParamString s)
 
template<>
void set_param (LBFGSStepSize &t, ParamString s)
 
template<>
void set_param (PANOCStopCrit &t, ParamString s)
 
template<class A , class... Bs>
constexpr bool any_is_same ()
 Check if A is equal to any of Bs.
 
template<class... Ts>
void set_param (detail::_dummy< Ts... > &, ParamString)
 
template void set_param (detail::possible_alias_t< float > &, ParamString)
 
template void set_param (detail::possible_alias_t< double, float > &, ParamString)
 
template void set_param (detail::possible_alias_t< long double, double, float > &, ParamString)
 
template void set_param (detail::possible_alias_t< int8_t > &, ParamString)
 
template void set_param (detail::possible_alias_t< uint8_t > &, ParamString)
 
template void set_param (detail::possible_alias_t< int16_t > &, ParamString)
 
template void set_param (detail::possible_alias_t< uint16_t > &, ParamString)
 
template void set_param (detail::possible_alias_t< int32_t > &, ParamString)
 
template void set_param (detail::possible_alias_t< int64_t > &, ParamString)
 
template void set_param (detail::possible_alias_t< uint32_t > &, ParamString)
 
template void set_param (detail::possible_alias_t< uint64_t > &, ParamString)
 
template void set_param (detail::possible_alias_t< short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString)
 
template void set_param (detail::possible_alias_t< int, short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString)
 
template void set_param (detail::possible_alias_t< long, int, short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString)
 
template void set_param (detail::possible_alias_t< long long, long, int, short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString)
 
template void set_param (detail::possible_alias_t< ptrdiff_t, long long, long, int, short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString)
 
template void set_param (detail::possible_alias_t< unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString)
 
template void set_param (detail::possible_alias_t< unsigned int, unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString)
 
template void set_param (detail::possible_alias_t< unsigned long, unsigned int, unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString)
 
template void set_param (detail::possible_alias_t< unsigned long long, unsigned long, unsigned int, unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString)
 
template void set_param (detail::possible_alias_t< size_t, unsigned long long, unsigned long, unsigned int, unsigned short, int8_t, uint8_t, int16_t, uint16_t, int32_t, int64_t, uint32_t, uint64_t > &, ParamString)
 
template void set_param (detail::possible_alias_t< std::chrono::nanoseconds > &, ParamString)
 
template void set_param (detail::possible_alias_t< std::chrono::microseconds > &, ParamString)
 
template void set_param (detail::possible_alias_t< std::chrono::milliseconds > &, ParamString)
 
template void set_param (detail::possible_alias_t< std::chrono::seconds > &, ParamString)
 
template void set_param (detail::possible_alias_t< std::chrono::minutes > &, ParamString)
 
template void set_param (detail::possible_alias_t< std::chrono::hours > &, ParamString)
 
template void set_param (detail::possible_alias_t< PANOCParams< config_t > > &, ParamString)
 
template void set_param (detail::possible_alias_t< ZeroFPRParams< config_t > > &, ParamString)
 
template void set_param (detail::possible_alias_t< PANTRParams< config_t > > &, ParamString)
 
template void set_param (detail::possible_alias_t< LBFGSParams< config_t > > &, ParamString)
 
template void set_param (detail::possible_alias_t< AndersonAccelParams< config_t > > &, ParamString)
 
template void set_param (detail::possible_alias_t< LBFGSDirectionParams< config_t > > &, ParamString)
 
template void set_param (detail::possible_alias_t< AndersonDirectionParams< config_t > > &, ParamString)
 
template void set_param (detail::possible_alias_t< StructuredLBFGSDirectionParams< config_t > > &, ParamString)
 
template void set_param (detail::possible_alias_t< NewtonTRDirectionParams< config_t > > &, ParamString)
 
template void set_param (detail::possible_alias_t< SteihaugCGParams< config_t > > &, ParamString)
 
template void set_param (detail::possible_alias_t< StructuredNewtonRegularizationParams< config_t > > &, ParamString)
 
template void set_param (detail::possible_alias_t< StructuredNewtonDirectionParams< config_t > > &, ParamString)
 
template void set_param (detail::possible_alias_t< ALMParams< config_t > > &, ParamString)
 
template void set_param (detail::possible_alias_t< PANOCOCPParams< config_t > > &, ParamString)
 

Macro Definition Documentation

◆ ALPAQA_SET_PARAM_INST

#define ALPAQA_SET_PARAM_INST (   ...)
Value:
template void ALPAQA_EXPORT set_param( \
detail::possible_alias_t<__VA_ARGS__> &, ParamString)

Definition at line 413 of file params.cpp.

◆ ALPAQA_SET_PARAM_INST_INT

#define ALPAQA_SET_PARAM_INST_INT (   ...)
Value:
ALPAQA_SET_PARAM_INST(__VA_ARGS__, int8_t, uint8_t, int16_t, uint16_t, \
int32_t, int64_t, uint32_t, uint64_t)
#define ALPAQA_SET_PARAM_INST(...)
Definition params.cpp:413

Definition at line 436 of file params.cpp.