alpaqa 1.0.0a12
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Functions
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-version.h>
#include "ipopt-driver.hpp"
#include "lbfgsb-driver.hpp"
#include "options.hpp"
#include "panoc-driver.hpp"
#include "pantr-driver.hpp"
#include "qpalm-driver.hpp"
#include "results.hpp"
#include "solver-driver.hpp"
#include "util.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)
 
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_view get_output_paths (Options &opts)
 
auto get_problem_path (const char *const *argv)
 
auto get_solver_builder (Options &opts)
 
void store_solution (const fs::path &sol_output_dir, std::ostream &os, BenchmarkResults &results, std::span< const char * > argv)
 
int main (int argc, const char *argv[])
 

Function Documentation

◆ print_usage()

void print_usage ( const char *  a0)

Definition at line 39 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 151 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 160 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_view get_output_paths ( Options opts)

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

Definition at line 206 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 237 of file alpaqa-driver.cpp.

+ Here is the call graph for this function: