Nonconvex constrained optimization
Loading...
Searching...
No Matches
problem-loader.cpp File Reference
#include <alpaqa/export.h>
#include <alpaqa/params/params.hpp>
#include <alpaqa/params/vec-from-file.hpp>
#include <alpaqa/problem/problem-with-counters.hpp>
#include <alpaqa/problem/type-erased-problem.hpp>
#include <guanaqo/dl-flags.hpp>
#include <filesystem>
#include <mutex>
#include <optional>
#include <span>
#include <stdexcept>
#include <string>
#include <alpaqa/problem-loader/problem-loader.hpp>
Include dependency graph for problem-loader.cpp:

Go to the source code of this file.

Classes

struct  LoadedProblem

Namespaces

namespace  anonymous_namespace{problem-loader.cpp}
namespace  alpaqa

Functions

std::string get_reg_name_option (std::span< const std::string_view > prob_opts)
guanaqo::DynamicLoadFlags get_dl_flags (alpaqa::Options &opts)
void load_initial_guess (alpaqa::Options &opts, LoadedProblem &problem)
void count_constr (alpaqa::ConstrCount &cnt, const alpaqa::Box< config_t > &C)
void count_problem (LoadedProblem &p)
PROBLEM_LOADER_EXPORT LoadedProblem load_problem (std::string_view type, const fs::path &file, Options &opts)
PROBLEM_LOADER_EXPORT void print_problem_description (std::ostream &os, LoadedProblem &problem, bool show_funcs=true)

Class Documentation

◆ anonymous_namespace{problem-loader.cpp}::LoadedProblem

struct anonymous_namespace{problem-loader.cpp}::LoadedProblem
Collaboration diagram for LoadedProblem:
Class Members
TypeErasedProblem< config_t > problem
path abs_path
path path
string name = path.filename().string()
shared_ptr< EvalCounter > evaluations = nullptr
vec initial_guess_x = vec::Zero(problem.get_num_variables()) Unknowns.
vec initial_guess_y Multipliers g.
vec initial_guess_w = alpaqa::null_vec<config_t> Multipliers bounds.
optional< ConstrCount > box_constr_count = std::nullopt
optional< ConstrCount > general_constr_count = std::nullopt
optional< length_t > nnz_jac_g = std::nullopt
optional< length_t > nnz_hess_L = std::nullopt
optional< length_t > nnz_hess_ψ = std::nullopt