proxsuite
0.6.7
The Advanced Proximal Optimization Toolbox
Loading...
Searching...
No Matches
model.hpp
Go to the documentation of this file.
1
//
2
// Copyright (c) 2022 INRIA
3
//
8
#ifndef PROXSUITE_SERIALIZATION_MODEL_HPP
9
#define PROXSUITE_SERIALIZATION_MODEL_HPP
10
11
#include <cereal/cereal.hpp>
12
#include <
proxsuite/proxqp/dense/model.hpp
>
13
14
namespace
cereal
{
15
16
template
<
class
Archive,
typename
T>
17
void
18
serialize
(Archive& archive,
proxsuite::proxqp::dense::Model<T>
& model)
19
{
20
archive(CEREAL_NVP(model.
dim
),
21
CEREAL_NVP(model.
n_eq
),
22
CEREAL_NVP(model.
n_in
),
23
CEREAL_NVP(model.
n_total
),
24
CEREAL_NVP(model.
H
),
25
CEREAL_NVP(model.
g
),
26
CEREAL_NVP(model.
A
),
27
CEREAL_NVP(model.
b
),
28
CEREAL_NVP(model.
C
),
29
CEREAL_NVP(model.
l
),
30
CEREAL_NVP(model.
u
));
31
}
32
}
// namespace cereal
33
34
#endif
/* end of include guard PROXSUITE_SERIALIZATION_MODEL_HPP */
cereal
Definition
eigen.hpp:16
cereal::serialize
void serialize(Archive &archive, proxsuite::proxqp::dense::Model< T > &model)
Definition
model.hpp:18
model.hpp
proxsuite::proxqp::dense::Model
This class stores the model of the QP problem.
Definition
model.hpp:24
proxsuite::proxqp::dense::Model::l
Vec< T > l
Definition
model.hpp:33
proxsuite::proxqp::dense::Model::A
Mat< T > A
Definition
model.hpp:29
proxsuite::proxqp::dense::Model::b
Vec< T > b
Definition
model.hpp:31
proxsuite::proxqp::dense::Model::H
Mat< T > H
Definition
model.hpp:27
proxsuite::proxqp::dense::Model::dim
isize dim
Definition
model.hpp:38
proxsuite::proxqp::dense::Model::n_total
isize n_total
Definition
model.hpp:41
proxsuite::proxqp::dense::Model::g
Vec< T > g
Definition
model.hpp:28
proxsuite::proxqp::dense::Model::u
Vec< T > u
Definition
model.hpp:32
proxsuite::proxqp::dense::Model::n_in
isize n_in
Definition
model.hpp:40
proxsuite::proxqp::dense::Model::C
Mat< T > C
Definition
model.hpp:30
proxsuite::proxqp::dense::Model::n_eq
isize n_eq
Definition
model.hpp:39
include
proxsuite
serialization
model.hpp
Generated by
1.10.0