alpaqa 1.0.0a8
Nonconvex constrained optimization
Loading...
Searching...
No Matches
problem.hpp
Go to the documentation of this file.
1#pragma once
2
6
7#include "options.hpp"
8
9#include <filesystem>
10#include <memory>
11namespace fs = std::filesystem;
12
16 fs::path abs_path;
17 fs::path path;
18 std::shared_ptr<alpaqa::EvalCounter> evaluations = nullptr;
19 vec initial_guess_x = vec::Zero(problem.get_n()); /// Unknowns
20 vec initial_guess_y = vec::Zero(problem.get_m()); /// Multipliers g
21 vec initial_guess_w = alpaqa::null_vec<config_t>; /// Multipliers bounds
22};
23
24LoadedProblem load_problem(std::string_view type, const fs::path &dir,
25 const fs::path &file, Options &opts);
The main polymorphic minimization problem interface.
length_t get_n() const
[Required] Number of decision variables.
length_t get_m() const
[Required] Number of constraints.
#define USING_ALPAQA_CONFIG(Conf)
Definition: config.hpp:42
fs::path abs_path
Definition: problem.hpp:16
vec initial_guess_y
Unknowns.
Definition: problem.hpp:20
vec initial_guess_x
Definition: problem.hpp:19
vec initial_guess_w
Multipliers g.
Definition: problem.hpp:21
alpaqa::TypeErasedProblem< config_t > problem
Definition: problem.hpp:15
fs::path path
Definition: problem.hpp:17
LoadedProblem load_problem(std::string_view type, const fs::path &dir, const fs::path &file, Options &opts)
Definition: problem.cpp:58
std::shared_ptr< alpaqa::EvalCounter > evaluations
Definition: problem.hpp:18