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>
13
14namespace cereal {
15
16template<class Archive, typename T>
17void
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 */
void serialize(Archive &archive, proxsuite::proxqp::dense::Model< T > &model)
Definition model.hpp:18
This class stores the model of the QP problem.
Definition model.hpp:24