alpaqa
pantr
Nonconvex constrained optimization
Loading...
Searching...
No Matches
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::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
24
LoadedProblem
load_problem
(std::string_view type,
const
fs::path &dir,
25
const
fs::path &file,
Options
&opts);
Options
Definition:
options.hpp:10
alpaqa::TypeErasedProblem
Definition:
type-erased-problem.hpp:208
alpaqa::TypeErasedProblem::get_n
length_t get_n() const
[Required] Number of decision variables.
Definition:
type-erased-problem.hpp:697
alpaqa::TypeErasedProblem::get_m
length_t get_m() const
[Required] Number of constraints.
Definition:
type-erased-problem.hpp:701
config.hpp
USING_ALPAQA_CONFIG
#define USING_ALPAQA_CONFIG(Conf)
Definition:
config.hpp:42
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:20
LoadedProblem::initial_guess_x
vec initial_guess_x
Definition:
problem.hpp:19
LoadedProblem::initial_guess_w
vec initial_guess_w
Multipliers g.
Definition:
problem.hpp:21
LoadedProblem::problem
alpaqa::TypeErasedProblem< config_t > problem
Definition:
problem.hpp:15
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:97
LoadedProblem::evaluations
std::shared_ptr< alpaqa::EvalCounter > evaluations
Definition:
problem.hpp:18
LoadedProblem
Definition:
problem.hpp:13
alpaqa::DefaultConfig
Definition:
config.hpp:132
type-erased-problem.hpp
Generated by
1.9.6