alpaqa
1.0.0a13
Nonconvex constrained optimization
Loading...
Searching...
No Matches
src
alpaqa
src
driver
problem.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
alpaqa/config/config.hpp
>
4
#include <
alpaqa/problem/problem-counters.hpp
>
5
#include <
alpaqa/problem/type-erased-problem.hpp
>
6
7
#include "
options.hpp
"
8
9
#include <filesystem>
10
#include <memory>
11
namespace
fs = std::filesystem;
12
13
struct
LoadedProblem
{
14
USING_ALPAQA_CONFIG
(
alpaqa::DefaultConfig
);
15
alpaqa::TypeErasedProblem<config_t>
problem
;
16
fs::path
abs_path
;
17
fs::path
path
;
18
std::string
name
=
path
.filename().string();
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
25
LoadedProblem
load_problem
(std::string_view type,
const
fs::path &dir,
26
const
fs::path &file,
Options
&opts);
Options
Definition
options.hpp:10
alpaqa::TypeErasedProblem
The main polymorphic minimization problem interface.
Definition
type-erased-problem.hpp:219
alpaqa::TypeErasedProblem::get_n
length_t get_n() const
[Required] Number of decision variables.
Definition
type-erased-problem.hpp:700
alpaqa::TypeErasedProblem::get_m
length_t get_m() const
[Required] Number of constraints.
Definition
type-erased-problem.hpp:704
config.hpp
USING_ALPAQA_CONFIG
#define USING_ALPAQA_CONFIG(Conf)
Definition
config.hpp:56
alpaqa::inf
constexpr const auto inf
Definition
config.hpp:85
options.hpp
problem-counters.hpp
LoadedProblem::abs_path
fs::path abs_path
Definition
problem.hpp:16
LoadedProblem::initial_guess_y
vec initial_guess_y
Unknowns.
Definition
problem.hpp:21
LoadedProblem::initial_guess_x
vec initial_guess_x
Definition
problem.hpp:20
LoadedProblem::initial_guess_w
vec initial_guess_w
Multipliers g.
Definition
problem.hpp:22
LoadedProblem::problem
alpaqa::TypeErasedProblem< config_t > problem
Definition
problem.hpp:15
LoadedProblem::name
std::string name
Definition
problem.hpp:18
LoadedProblem::path
fs::path path
Definition
problem.hpp:17
load_problem
LoadedProblem load_problem(std::string_view type, const fs::path &dir, const fs::path &file, Options &opts)
Definition
problem.cpp:152
LoadedProblem::evaluations
std::shared_ptr< alpaqa::EvalCounter > evaluations
Definition
problem.hpp:19
LoadedProblem
Definition
problem.hpp:13
alpaqa::EigenConfigd
Double-precision double configuration.
Definition
config.hpp:135
type-erased-problem.hpp
Generated on Mon Oct 30 2023 for alpaqa by
1.9.8