proxsuite 0.6.7
The Advanced Proximal Optimization Toolbox
Loading...
Searching...
No Matches
settings.hpp
Go to the documentation of this file.
1//
2// Copyright (c) 2022 INRIA
3//
8#ifndef PROXSUITE_SERIALIZATION_SETTINGS_HPP
9#define PROXSUITE_SERIALIZATION_SETTINGS_HPP
10
11#include <cereal/cereal.hpp>
13
14namespace cereal {
15
16template<class Archive, typename T>
17void
18serialize(Archive& archive, proxsuite::proxqp::Settings<T>& settings)
19{
20 archive(CEREAL_NVP(settings.default_rho),
21 CEREAL_NVP(settings.default_mu_eq),
22 CEREAL_NVP(settings.default_mu_in),
23 CEREAL_NVP(settings.alpha_bcl),
24 CEREAL_NVP(settings.beta_bcl),
25 CEREAL_NVP(settings.refactor_dual_feasibility_threshold),
26 CEREAL_NVP(settings.refactor_rho_threshold),
27 CEREAL_NVP(settings.mu_min_eq),
28 CEREAL_NVP(settings.mu_min_in),
29 CEREAL_NVP(settings.mu_max_eq_inv),
30 CEREAL_NVP(settings.mu_update_factor),
31 CEREAL_NVP(settings.mu_update_inv_factor),
32 CEREAL_NVP(settings.cold_reset_mu_eq),
33 CEREAL_NVP(settings.cold_reset_mu_in),
34 CEREAL_NVP(settings.cold_reset_mu_eq_inv),
35 CEREAL_NVP(settings.cold_reset_mu_in_inv),
36 CEREAL_NVP(settings.eps_abs),
37 CEREAL_NVP(settings.eps_rel),
38 CEREAL_NVP(settings.max_iter),
39 CEREAL_NVP(settings.max_iter_in),
40 CEREAL_NVP(settings.safe_guard),
41 CEREAL_NVP(settings.nb_iterative_refinement),
42 CEREAL_NVP(settings.eps_refact),
43 CEREAL_NVP(settings.verbose),
44 CEREAL_NVP(settings.initial_guess),
45 CEREAL_NVP(settings.update_preconditioner),
46 CEREAL_NVP(settings.compute_preconditioner),
47 CEREAL_NVP(settings.compute_timings),
48 CEREAL_NVP(settings.check_duality_gap),
49 CEREAL_NVP(settings.eps_duality_gap_abs),
50 CEREAL_NVP(settings.eps_duality_gap_rel),
51 CEREAL_NVP(settings.preconditioner_max_iter),
52 CEREAL_NVP(settings.preconditioner_accuracy),
53 CEREAL_NVP(settings.eps_primal_inf),
54 CEREAL_NVP(settings.eps_dual_inf),
55 CEREAL_NVP(settings.bcl_update),
56 CEREAL_NVP(settings.sparse_backend),
57 CEREAL_NVP(settings.primal_infeasibility_solving));
58}
59} // namespace cereal
60
61#endif /* end of include guard PROXSUITE_SERIALIZATION_SETTINGS_HPP */
void serialize(Archive &archive, proxsuite::proxqp::dense::Model< T > &model)
Definition model.hpp:18
This class defines the settings of PROXQP solvers with sparse and dense backends.
Definition settings.hpp:89
InitialGuessStatus initial_guess
Definition settings.hpp:123