alpaqa 1.0.0a12
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::string name = path.filename();
19 std::shared_ptr<alpaqa::EvalCounter> evaluations = nullptr;
20 vec initial_guess_x = vec::Zero(problem.get_n()); /// Unknowns
21 vec initial_guess_y = vec::Zero(problem.get_m()); /// Multipliers g
22 vec initial_guess_w = alpaqa::null_vec<config_t>; /// Multipliers bounds
23};
24
25LoadedProblem load_problem(std::string_view type, const fs::path &dir,
26 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:56
constexpr const auto inf
Definition config.hpp:85
fs::path abs_path
Definition problem.hpp:16
vec initial_guess_y
Unknowns.
Definition problem.hpp:21
vec initial_guess_x
Definition problem.hpp:20
vec initial_guess_w
Multipliers g.
Definition problem.hpp:22
alpaqa::TypeErasedProblem< config_t > problem
Definition problem.hpp:15
std::string name
Definition problem.hpp:18
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:148
std::shared_ptr< alpaqa::EvalCounter > evaluations
Definition problem.hpp:19
Double-precision double configuration.
Definition config.hpp:135