alpaqa 1.0.0a17
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Functions | Variables
alpaqa-driver.cpp File Reference
#include <alpaqa/config/config.hpp>
#include <alpaqa/problem/kkt-error.hpp>
#include <alpaqa/util/demangled-typename.hpp>
#include <alpaqa/util/print.hpp>
#include <alpaqa/util/string-util.hpp>
#include <alpaqa-version.h>
#include "fista-driver.hpp"
#include "ipopt-driver.hpp"
#include "lbfgsb-driver.hpp"
#include "options.hpp"
#include "panoc-driver.hpp"
#include "pantr-driver.hpp"
#include "param-complete.hpp"
#include "qpalm-driver.hpp"
#include "results.hpp"
#include "solver-driver.hpp"
#include <algorithm>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <random>
#include <span>
#include <stdexcept>
#include <string>
#include <string_view>
#include <tuple>
#include <type_traits>
+ Include dependency graph for alpaqa-driver.cpp:

Go to the source code of this file.

Functions

void print_usage (const char *a0)
 
void print_version ()
 
auto split_once (std::string_view s, char tok='.')
 Split the string s on the first occurrence of tok.
 
std::ostream & get_output_stream (Options &opts, std::ofstream &out_fstream)
 
std::string get_output_paths (Options &opts)
 
auto get_problem_path (const char *const *argv)
 
void print_problem_description (std::ostream &os, LoadedProblem &problem, bool show_funcs)
 
auto get_solver_builder (Options &opts)
 
void store_solution (const fs::path &sol_output_dir, std::ostream &os, BenchmarkResults &results, auto &solver, const Options &opts, std::span< const char * > argv)
 
int main (int argc, const char *argv[])
 

Variables

const auto * docs
 

Function Documentation

◆ print_usage()

void print_usage ( const char *  a0)

Definition at line 132 of file alpaqa-driver.cpp.

+ Here is the caller graph for this function:

◆ print_version()

void print_version ( )

Definition at line 180 of file alpaqa-driver.cpp.

+ Here is the caller graph for this function:

◆ split_once()

auto split_once ( std::string_view  s,
char  tok = '.' 
)

Split the string s on the first occurrence of tok.

Returns ("", s) if tok was not found.

Definition at line 186 of file alpaqa-driver.cpp.

+ Here is the caller graph for this function:

◆ get_output_stream()

std::ostream & get_output_stream ( Options opts,
std::ofstream &  out_fstream 
)

Definition at line 195 of file alpaqa-driver.cpp.

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

◆ get_output_paths()

std::string get_output_paths ( Options opts)

Definition at line 204 of file alpaqa-driver.cpp.

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

◆ get_problem_path()

auto get_problem_path ( const char *const *  argv)

Definition at line 210 of file alpaqa-driver.cpp.

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

◆ print_problem_description()

void print_problem_description ( std::ostream &  os,
LoadedProblem problem,
bool  show_funcs 
)

Definition at line 221 of file alpaqa-driver.cpp.

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

◆ get_solver_builder()

auto get_solver_builder ( Options opts)

Definition at line 252 of file alpaqa-driver.cpp.

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

◆ store_solution()

void store_solution ( const fs::path &  sol_output_dir,
std::ostream &  os,
BenchmarkResults results,
auto &  solver,
const Options opts,
std::span< const char * >  argv 
)

Definition at line 274 of file alpaqa-driver.cpp.

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

◆ main()

int main ( int  argc,
const char *  argv[] 
)
Examples
C++/Advanced/lasso-fbs.cpp, C++/CasADi/Rosenbrock/main.cpp, C++/CustomControlCppProblem/main.cpp, C++/CustomCppProblem/main.cpp, C++/DLProblem/main.cpp, C++/FortranProblem/main.cpp, and C++/SimpleUnconstrProblem/main.cpp.

Definition at line 323 of file alpaqa-driver.cpp.

+ Here is the call graph for this function:

Variable Documentation

◆ docs

const auto* docs

Definition at line 50 of file alpaqa-driver.cpp.