alpaqa 1.0.0a16
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)
 
auto get_solver_builder (Options &opts)
 
void store_solution (const fs::path &sol_output_dir, std::ostream &os, BenchmarkResults &results, auto &solver, 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 131 of file alpaqa-driver.cpp.

+ Here is the caller graph for this function:

◆ print_version()

void print_version ( )

Definition at line 179 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 185 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 194 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 203 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 209 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 
)

Definition at line 220 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 248 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,
std::span< const char * >  argv 
)

Definition at line 270 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 310 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.