casadi 3.6.5__cp310-none-manylinux2014_aarch64.whl → 3.6.7__cp310-none-manylinux2014_aarch64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. casadi/_casadi.so +0 -0
  2. casadi/casadi.py +739 -308
  3. casadi/cmake/alpaqa/alpaqaConfigVersion.cmake +0 -5
  4. casadi/cmake/alpaqa/alpaqaTargets.cmake +1 -1
  5. casadi/cmake/casadi-config-version.cmake +1 -1
  6. casadi/cmake/casadi-targets.cmake +1 -1
  7. casadi/cmake/osqp/osqp-targets.cmake +1 -1
  8. casadi/cmake/proxsuite/proxsuiteConfigVersion.cmake +0 -5
  9. casadi/cmake/proxsuite/proxsuiteTargets.cmake +1 -1
  10. casadi/cmake/qdldl/qdldl-targets.cmake +1 -1
  11. casadi/include/casadi/casadi.i +3 -0
  12. casadi/include/casadi/casadi_c.h +2 -0
  13. casadi/include/casadi/config.h +8 -8
  14. casadi/include/casadi/core/casadi_common.hpp +1 -0
  15. casadi/include/casadi/core/casadi_misc.hpp +52 -0
  16. casadi/include/casadi/core/casadi_types.hpp +3 -2
  17. casadi/include/casadi/core/code_generator.hpp +30 -1
  18. casadi/include/casadi/core/global_options.hpp +2 -0
  19. casadi/include/casadi/core/mx.hpp +18 -3
  20. casadi/include/casadi/core/optistack.hpp +23 -0
  21. casadi/include/casadi/core/runtime/casadi_nlp.hpp +19 -4
  22. casadi/include/casadi/core/runtime/casadi_ocp_block.hpp +55 -0
  23. casadi/include/casadi/core/runtime/casadi_oracle.hpp +44 -0
  24. casadi/include/casadi/core/runtime/casadi_oracle_callback.hpp +39 -0
  25. casadi/include/casadi/core/runtime/casadi_runtime.hpp +4 -1
  26. casadi/include/casadi/core/runtime/casadi_scaled_copy.hpp +31 -0
  27. casadi/include/casadi/core/serializing_stream.hpp +2 -2
  28. casadi/include/casadi/core/sparsity.hpp +7 -0
  29. casadi/include/casadi/doc.i +1513 -1016
  30. casadi/include/casadi/doc_merged.i +965 -719
  31. casadi/include/casadi/mem.h +1 -0
  32. casadi/include/daqp/api.h +46 -0
  33. casadi/include/daqp/auxiliary.h +29 -0
  34. casadi/include/daqp/bnb.h +32 -0
  35. casadi/include/daqp/codegen.h +18 -0
  36. casadi/include/daqp/constants.h +92 -0
  37. casadi/include/daqp/daqp.h +22 -0
  38. casadi/include/daqp/daqp_prox.h +18 -0
  39. casadi/include/daqp/factorization.h +18 -0
  40. casadi/include/daqp/types.h +161 -0
  41. casadi/include/daqp/utils.h +44 -0
  42. casadi/include/fatrop/auxiliary/Common.hpp +34 -0
  43. casadi/include/fatrop/auxiliary/DynamicLib.hpp +34 -0
  44. casadi/include/fatrop/auxiliary/FatropOptions.hpp +68 -0
  45. casadi/include/fatrop/auxiliary/FatropVector.hpp +143 -0
  46. casadi/include/fatrop/auxiliary/LinearAlgebra.hpp +88 -0
  47. casadi/include/fatrop/auxiliary/VectorUtils.hpp +54 -0
  48. casadi/include/fatrop/blasfeo_wrapper/LinearAlgebraBlasfeo.hpp +493 -0
  49. casadi/include/fatrop/fatrop.hpp +39 -0
  50. casadi/include/fatrop/function_evaluation/CasadiCodegen.hpp +104 -0
  51. casadi/include/fatrop/function_evaluation/FunctionEvaluation.hpp +60 -0
  52. casadi/include/fatrop/json/json.h +946 -0
  53. casadi/include/fatrop/ocp/CasadiCApiUserdataWrap.hpp +87 -0
  54. casadi/include/fatrop/ocp/DuInfEvaluator.hpp +38 -0
  55. casadi/include/fatrop/ocp/FatropOCP.hpp +161 -0
  56. casadi/include/fatrop/ocp/FatropOCPBuilder.hpp +52 -0
  57. casadi/include/fatrop/ocp/FatropOCPResto.hpp +299 -0
  58. casadi/include/fatrop/ocp/OCP.hpp +82 -0
  59. casadi/include/fatrop/ocp/OCPAbstract.hpp +254 -0
  60. casadi/include/fatrop/ocp/OCPAdapter.hpp +197 -0
  61. casadi/include/fatrop/ocp/OCPCInterface.h +289 -0
  62. casadi/include/fatrop/ocp/OCPDims.hpp +60 -0
  63. casadi/include/fatrop/ocp/OCPInitializer.hpp +41 -0
  64. casadi/include/fatrop/ocp/OCPKKT.hpp +69 -0
  65. casadi/include/fatrop/ocp/OCPLSRiccati.hpp +198 -0
  66. casadi/include/fatrop/ocp/OCPLSScaler.hpp +66 -0
  67. casadi/include/fatrop/ocp/OCPLinearSolver.hpp +75 -0
  68. casadi/include/fatrop/ocp/OCPNoScaling.hpp +42 -0
  69. casadi/include/fatrop/ocp/OCPScalingMethod.hpp +42 -0
  70. casadi/include/fatrop/ocp/StageOCP.hpp +592 -0
  71. casadi/include/fatrop/ocp/StageOCPApplication.hpp +242 -0
  72. casadi/include/fatrop/ocp/StageOCPExpressions.hpp +182 -0
  73. casadi/include/fatrop/ocp/UStageEvalAbstract.hpp +168 -0
  74. casadi/include/fatrop/ocp/UStageOCPImpl.hpp +152 -0
  75. casadi/include/fatrop/quasi_newton/bfgs.hpp +159 -0
  76. casadi/include/fatrop/solver/AlgBuilder.hpp +76 -0
  77. casadi/include/fatrop/solver/AlgStrategy.hpp +33 -0
  78. casadi/include/fatrop/solver/FatropAlg.hpp +121 -0
  79. casadi/include/fatrop/solver/FatropData.hpp +188 -0
  80. casadi/include/fatrop/solver/FatropOptions.hpp +95 -0
  81. casadi/include/fatrop/solver/FatropPrinter.hpp +65 -0
  82. casadi/include/fatrop/solver/FatropStats.hpp +63 -0
  83. casadi/include/fatrop/solver/Filter.hpp +54 -0
  84. casadi/include/fatrop/solver/IterationData.hpp +56 -0
  85. casadi/include/fatrop/solver/LineSearch.hpp +86 -0
  86. casadi/include/fatrop/solver/NLPL1.hpp +263 -0
  87. casadi/include/fatrop/templates/NLPAlg.hpp +104 -0
  88. casadi/include/licenses/daqp-external/LICENSE +21 -0
  89. casadi/include/licenses/fatrop-external/LICENSE.txt +165 -0
  90. casadi/include/licenses/fatrop-external/external/blasfeo/LICENSE.txt +26 -0
  91. casadi/include/licenses/fatrop-external/external/pybind11/LICENSE +29 -0
  92. casadi/include/osqp/constants.h +2 -3
  93. casadi/include/osqp/version.h +9 -0
  94. casadi/lib/cmake/tinyxml2/tinyxml2-config-version.cmake +0 -5
  95. casadi/lib/cmake/tinyxml2/tinyxml2-static-targets.cmake +1 -1
  96. casadi/libcasadi.so +0 -0
  97. casadi/libcasadi.so.3.7 +0 -0
  98. casadi/libcasadi_conic_cplex.so +0 -0
  99. casadi/libcasadi_conic_cplex.so.3.7 +0 -0
  100. casadi/libcasadi_conic_daqp.so +0 -0
  101. casadi/libcasadi_conic_daqp.so.3.7 +0 -0
  102. casadi/libcasadi_conic_fatrop.so +0 -0
  103. casadi/libcasadi_conic_fatrop.so.3.7 +0 -0
  104. casadi/libcasadi_conic_gurobi.so +0 -0
  105. casadi/libcasadi_conic_gurobi.so.3.7 +0 -0
  106. casadi/libcasadi_conic_hpipm.so +0 -0
  107. casadi/libcasadi_conic_hpipm.so.3.7 +0 -0
  108. casadi/libcasadi_conic_ipqp.so +0 -0
  109. casadi/libcasadi_conic_ipqp.so.3.7 +0 -0
  110. casadi/libcasadi_conic_nlpsol.so +0 -0
  111. casadi/libcasadi_conic_nlpsol.so.3.7 +0 -0
  112. casadi/libcasadi_conic_osqp.so +0 -0
  113. casadi/libcasadi_conic_osqp.so.3.7 +0 -0
  114. casadi/libcasadi_conic_proxqp.so +0 -0
  115. casadi/libcasadi_conic_proxqp.so.3.7 +0 -0
  116. casadi/libcasadi_conic_qpoases.so +0 -0
  117. casadi/libcasadi_conic_qpoases.so.3.7 +0 -0
  118. casadi/libcasadi_conic_qrqp.so +0 -0
  119. casadi/libcasadi_conic_qrqp.so.3.7 +0 -0
  120. casadi/libcasadi_conic_superscs.so +0 -0
  121. casadi/libcasadi_conic_superscs.so.3.7 +0 -0
  122. casadi/libcasadi_integrator_collocation.so +0 -0
  123. casadi/libcasadi_integrator_collocation.so.3.7 +0 -0
  124. casadi/libcasadi_integrator_cvodes.so +0 -0
  125. casadi/libcasadi_integrator_cvodes.so.3.7 +0 -0
  126. casadi/libcasadi_integrator_idas.so +0 -0
  127. casadi/libcasadi_integrator_idas.so.3.7 +0 -0
  128. casadi/libcasadi_integrator_rk.so +0 -0
  129. casadi/libcasadi_integrator_rk.so.3.7 +0 -0
  130. casadi/libcasadi_nlpsol_alpaqa.so +0 -0
  131. casadi/libcasadi_nlpsol_alpaqa.so.3.7 +0 -0
  132. casadi/libcasadi_nlpsol_ampl.so +0 -0
  133. casadi/libcasadi_nlpsol_ampl.so.3.7 +0 -0
  134. casadi/libcasadi_nlpsol_blocksqp.so +0 -0
  135. casadi/libcasadi_nlpsol_blocksqp.so.3.7 +0 -0
  136. casadi/libcasadi_nlpsol_fatrop.so +0 -0
  137. casadi/libcasadi_nlpsol_fatrop.so.3.7 +0 -0
  138. casadi/libcasadi_nlpsol_feasiblesqpmethod.so +0 -0
  139. casadi/libcasadi_nlpsol_feasiblesqpmethod.so.3.7 +0 -0
  140. casadi/libcasadi_nlpsol_ipopt.so +0 -0
  141. casadi/libcasadi_nlpsol_ipopt.so.3.7 +0 -0
  142. casadi/libcasadi_nlpsol_knitro.so +0 -0
  143. casadi/libcasadi_nlpsol_knitro.so.3.7 +0 -0
  144. casadi/libcasadi_nlpsol_madnlp.so +0 -0
  145. casadi/libcasadi_nlpsol_madnlp.so.3.7 +0 -0
  146. casadi/libcasadi_nlpsol_qrsqp.so +0 -0
  147. casadi/libcasadi_nlpsol_qrsqp.so.3.7 +0 -0
  148. casadi/libcasadi_nlpsol_scpgen.so +0 -0
  149. casadi/libcasadi_nlpsol_scpgen.so.3.7 +0 -0
  150. casadi/libcasadi_nlpsol_snopt.so +0 -0
  151. casadi/libcasadi_nlpsol_snopt.so.3.7 +0 -0
  152. casadi/libcasadi_nlpsol_sqpmethod.so +0 -0
  153. casadi/libcasadi_nlpsol_sqpmethod.so.3.7 +0 -0
  154. casadi/libcasadi_nlpsol_worhp.so +0 -0
  155. casadi/libcasadi_nlpsol_worhp.so.3.7 +0 -0
  156. casadi/libcasadi_rootfinder_fast_newton.so +0 -0
  157. casadi/libcasadi_rootfinder_fast_newton.so.3.7 +0 -0
  158. casadi/libcasadi_rootfinder_kinsol.so +0 -0
  159. casadi/libcasadi_rootfinder_kinsol.so.3.7 +0 -0
  160. casadi/libcasadi_rootfinder_newton.so +0 -0
  161. casadi/libcasadi_rootfinder_newton.so.3.7 +0 -0
  162. casadi/libcasadi_rootfinder_nlpsol.so +0 -0
  163. casadi/libcasadi_rootfinder_nlpsol.so.3.7 +0 -0
  164. casadi/libcasadi_sundials_common.so +0 -0
  165. casadi/libcasadi_sundials_common.so.3.7 +0 -0
  166. casadi/libcoinmetis.la +1 -1
  167. casadi/libcoinmetis.so +0 -0
  168. casadi/libcoinmetis.so.2 +0 -0
  169. casadi/libcoinmetis.so.2.0.0 +0 -0
  170. casadi/libdaqp.so +0 -0
  171. casadi/libdaqpstat.a +0 -0
  172. casadi/libfatrop.so +0 -0
  173. casadi/libmatlab_ipc.so +0 -0
  174. casadi/libosqp.a +0 -0
  175. casadi/libosqp.so +0 -0
  176. casadi/pkgconfig/casadi.pc +1 -1
  177. casadi/tools/__init__.py +4 -0
  178. casadi/tools/bounds.py +3 -3
  179. {casadi-3.6.5.dist-info → casadi-3.6.7.dist-info}/METADATA +2 -2
  180. {casadi-3.6.5.dist-info → casadi-3.6.7.dist-info}/RECORD +181 -104
  181. {casadi-3.6.5.dist-info → casadi-3.6.7.dist-info}/WHEEL +0 -0
@@ -0,0 +1,263 @@
1
+ #pragma once
2
+ #include "fatrop/templates/NLPAlg.hpp"
3
+ #include "fatrop/solver/FatropOptions.hpp"
4
+ #include <memory>
5
+ namespace fatrop
6
+ {
7
+ class NLPL1 : public FatropNLP
8
+ {
9
+ public:
10
+ NLPL1(const std::shared_ptr<FatropNLP> &orig, const std::shared_ptr<FatropOptions>& opts) : orig_(orig), orig_dims_(orig->get_nlp_dims()), lower_(orig_dims_.nineqs), upper_(orig_dims_.nineqs), upper_bounded_(orig_dims_.nineqs), lower_bounded_(orig_dims_.nineqs), slack_dummy_(orig_dims_.nineqs), sigma_dummy_(orig_dims_.nineqs), gradb_dummy_(orig_dims_.nineqs), zl_dummy_(orig_dims_.nineqs), zu_dummy_(orig_dims_.nineqs), sigma_cache_(orig_dims_.nineqs * 3), gradb_cache_(orig_dims_.nineqs * 3)
11
+ {
12
+ opts -> register_option(DoubleOption::lower_bounded("L1_rho", "L1 penalty parameter", &rho, 1e4, 0.0));
13
+ auto lower_v = lower_[0];
14
+ auto upper_v = upper_[0];
15
+ orig_->get_bounds(lower_v, upper_v);
16
+ n_p = orig_dims_.nineqs;
17
+ n_n = orig_dims_.nineqs;
18
+ for (fatrop_int i = 0; i < orig_dims_.nineqs; ++i)
19
+ {
20
+ bool lower_bounded = !std::isinf(lower_v.at(i));
21
+ bool upper_bounded = !std::isinf(upper_v.at(i));
22
+ upper_bounded_[i] = upper_bounded;
23
+ lower_bounded_[i] = lower_bounded;
24
+ }
25
+ this_dims_.nvars = orig_dims_.nvars;
26
+ this_dims_.nineqs = orig_dims_.nineqs + n_n + n_p;
27
+ this_dims_.neqs = orig_dims_.neqs;
28
+ }
29
+ virtual fatrop_int eval_lag_hess(
30
+ double obj_scale,
31
+ const FatropVecBF &primal_vars,
32
+ const FatropVecBF &slack_vars,
33
+ const FatropVecBF &lam) override
34
+ {
35
+ FatropVecBF slack_dummy_v = slack_dummy_[0];
36
+ update_slack_vars(slack_vars, slack_dummy_v);
37
+ orig_->eval_lag_hess(obj_scale, primal_vars, slack_dummy_v, lam);
38
+ return 0;
39
+ };
40
+
41
+ virtual fatrop_int eval_constr_jac(
42
+ const FatropVecBF &primal_vars,
43
+ const FatropVecBF &slack_vars) override
44
+ {
45
+ FatropVecBF slack_dummy_v = slack_dummy_[0];
46
+ update_slack_vars(slack_vars, slack_dummy_v);
47
+ orig_->eval_constr_jac(primal_vars, slack_dummy_v);
48
+ return 0;
49
+ };
50
+ void update_slack_vars(const FatropVecBF &slack_vars, FatropVecBF &slack_dummy)
51
+ {
52
+ fatrop_int offs_n = orig_dims_.nineqs;
53
+ fatrop_int offs_p = orig_dims_.nineqs + n_n;
54
+ for (fatrop_int i = 0; i < orig_dims_.nineqs; ++i)
55
+ {
56
+ slack_dummy.at(i) = slack_vars.at(i) - slack_vars.at(i + offs_n) + slack_vars.at(i + offs_p);
57
+ }
58
+ }
59
+ virtual fatrop_int eval_constraint_viol(
60
+ const FatropVecBF &primal_vars,
61
+ const FatropVecBF &slack_vars,
62
+ FatropVecBF &constraint_violation) override
63
+ {
64
+ FatropVecBF slack_dummy_v = slack_dummy_[0];
65
+ update_slack_vars(slack_vars, slack_dummy_v);
66
+ orig_->eval_constraint_viol(primal_vars, slack_dummy_v, constraint_violation);
67
+ return 0;
68
+ };
69
+ virtual fatrop_int eval_obj_grad(
70
+ double obj_scale,
71
+ const FatropVecBF &primal_vars,
72
+ const FatropVecBF &slack_vars,
73
+ FatropVecBF &gradient_x,
74
+ FatropVecBF &gradient_s) override
75
+ {
76
+ orig_->eval_obj_grad(obj_scale, primal_vars, slack_vars, gradient_x, gradient_s);
77
+ gradient_s.block(orig_dims_.nineqs, n_n + n_p) = rho;
78
+ return 0;
79
+ };
80
+ virtual fatrop_int eval_obj(
81
+ double obj_scale,
82
+ const FatropVecBF &primal_vars,
83
+ const FatropVecBF &slack_vars,
84
+ double &res) override
85
+ {
86
+ orig_->eval_obj(obj_scale, primal_vars, slack_vars, res);
87
+ res += rho * sum(slack_vars.block(orig_dims_.nineqs, n_n + n_p));
88
+ return 0;
89
+ };
90
+ void get_initialization(const FatropVecBF &primal_vars_orig, FatropVecBF &intialization)
91
+ {
92
+ intialization.block(0, orig_dims_.nvars).copy(primal_vars_orig.block(0, orig_dims_.nvars));
93
+ }
94
+ virtual fatrop_int eval_dual_inf(
95
+ double obj_scale,
96
+ const FatropVecBF &lam,
97
+ const FatropVecBF &grad_x,
98
+ const FatropVecBF &grad_s,
99
+ FatropVecBF &du_inf_x, FatropVecBF &du_inf_s_wo_z) override
100
+ {
101
+ auto du_inf_s_wo_z_or = du_inf_s_wo_z.block(0, orig_dims_.nineqs);
102
+ orig_->eval_dual_inf(obj_scale, lam, grad_x, grad_s, du_inf_x, du_inf_s_wo_z_or);
103
+ auto lam_I = lam.block(orig_dims_.neqs - orig_dims_.nineqs, orig_dims_.nineqs);
104
+ axpby(1.0, lam_I, 1.0, grad_s.block(orig_dims_.nineqs, n_n), du_inf_s_wo_z.block(orig_dims_.nineqs, n_n));
105
+ axpby(-1.0, lam_I, 1.0, grad_s.block(orig_dims_.nineqs + n_n, n_p), du_inf_s_wo_z.block(orig_dims_.nineqs + n_n, n_p));
106
+ return 0;
107
+ }
108
+ void update_sigma_gradb(double inertia, const FatropVecBF &sigma_s, const FatropVecBF &sigma_n, const FatropVecBF &sigma_p, const FatropVecBF &gradb_s, const FatropVecBF &gradb_n, const FatropVecBF &gradb_p, const FatropVecBF &sigma_update, const FatropVecBF &gradb_update)
109
+ {
110
+ for (int i = 0; i < orig_dims_.nineqs; ++i)
111
+ {
112
+ double sigma_updt = 1.0 / (1.0 / (sigma_s.at(i) + inertia) + 1.0 / (sigma_n.at(i) + inertia) + 1.0 / (sigma_p.at(i) + inertia));
113
+ sigma_update.at(i) = sigma_updt - inertia;
114
+ gradb_update.at(i) = ((gradb_s.at(i)) / (sigma_s.at(i) + inertia) - (gradb_n.at(i)) / (sigma_n.at(i) + inertia) + (gradb_p.at(i)) / (sigma_p.at(i) + inertia)) * sigma_updt;
115
+ }
116
+ }
117
+ void update_delta_snp(double inertia, const FatropVecBF &sigma_s, const FatropVecBF &sigma_n, const FatropVecBF &sigma_p, const FatropVecBF &gradb_s, const FatropVecBF &gradb_n, const FatropVecBF &gradb_p, const FatropVecBF &lam_I, const FatropVecBF &delta_s, const FatropVecBF &delta_n, const FatropVecBF &delta_p)
118
+ {
119
+ for (int i = 0; i < orig_dims_.nineqs; ++i)
120
+ {
121
+ double lam_I_i = lam_I.at(i);
122
+ delta_s.at(i) = (-gradb_s.at(i) + lam_I_i) / (sigma_s.at(i) + inertia);
123
+ delta_n.at(i) = (-gradb_n.at(i) - lam_I_i) / (sigma_n.at(i) + inertia);
124
+ delta_p.at(i) = (-gradb_p.at(i) + lam_I_i) / (sigma_p.at(i) + inertia);
125
+ }
126
+ }
127
+
128
+ virtual fatrop_int solve_pd_sys(
129
+ const double inertia_correction_w,
130
+ const double inertia_correction_c,
131
+ const FatropVecBF &ux,
132
+ const FatropVecBF &lam,
133
+ const FatropVecBF &delta_s,
134
+ const FatropVecBF &sigma_total,
135
+ const FatropVecBF &gradb_total) override
136
+ {
137
+ inertia_correction_w_cache = inertia_correction_w;
138
+ sigma_cache_[0].copy(sigma_total);
139
+ gradb_cache_[0].copy(gradb_total);
140
+ auto lam_I = lam.block(orig_dims_.neqs - orig_dims_.nineqs, orig_dims_.nineqs);
141
+ auto sigma_s = sigma_total.block(0, orig_dims_.nineqs);
142
+ auto sigma_n = sigma_total.block(orig_dims_.nineqs, n_n);
143
+ auto sigma_p = sigma_total.block(orig_dims_.nineqs + n_n, n_p);
144
+ auto gradb_s = gradb_total.block(0, orig_dims_.nineqs);
145
+ auto gradb_n = gradb_total.block(orig_dims_.nineqs, n_n);
146
+ auto gradb_p = gradb_total.block(orig_dims_.nineqs + n_n, n_p);
147
+ auto delta_s_or = delta_s.block(0, orig_dims_.nineqs);
148
+ auto delta_n = delta_s.block(orig_dims_.nineqs, n_n);
149
+ auto delta_p = delta_s.block(orig_dims_.nineqs + n_n, n_p);
150
+ update_sigma_gradb(inertia_correction_w, sigma_s, sigma_n, sigma_p, gradb_s, gradb_n, gradb_p, sigma_dummy_[0], gradb_dummy_[0]);
151
+ int ret = orig_->solve_pd_sys(inertia_correction_w, inertia_correction_c, ux, lam, delta_s.block(0, orig_dims_.nineqs), sigma_dummy_[0], gradb_dummy_[0]);
152
+ update_delta_snp(inertia_correction_w, sigma_s, sigma_n, sigma_p, gradb_s, gradb_n, gradb_p, lam_I, delta_s_or, delta_n, delta_p);
153
+ return ret;
154
+ };
155
+ virtual fatrop_int solve_soc_rhs(
156
+ const FatropVecBF &ux,
157
+ const FatropVecBF &lam,
158
+ const FatropVecBF &delta_s,
159
+ const FatropVecBF &cosntraint_violation) override
160
+ {
161
+ auto lam_I = lam.block(orig_dims_.neqs - orig_dims_.nineqs, orig_dims_.nineqs);
162
+ auto sigma_s = sigma_cache_[0].block(0, orig_dims_.nineqs);
163
+ auto sigma_n = sigma_cache_[0].block(orig_dims_.nineqs, n_n);
164
+ auto sigma_p = sigma_cache_[0].block(orig_dims_.nineqs + n_n, n_p);
165
+ auto gradb_s = gradb_cache_[0].block(0, orig_dims_.nineqs);
166
+ auto gradb_n = gradb_cache_[0].block(orig_dims_.nineqs, n_n);
167
+ auto gradb_p = gradb_cache_[0].block(orig_dims_.nineqs + n_n, n_p);
168
+ auto delta_s_or = delta_s.block(0, orig_dims_.nineqs);
169
+ auto delta_n = delta_s.block(orig_dims_.nineqs, n_n);
170
+ auto delta_p = delta_s.block(orig_dims_.nineqs + n_n, n_p);
171
+ int ret = orig_->solve_soc_rhs(ux, lam, delta_s.block(0, orig_dims_.nineqs), cosntraint_violation);
172
+ update_delta_snp(inertia_correction_w_cache, sigma_s, sigma_n, sigma_p, gradb_s, gradb_n, gradb_p, lam_I, delta_s_or, delta_n, delta_p);
173
+ return ret;
174
+ }
175
+ virtual NLPDims get_nlp_dims() const override { return this_dims_; };
176
+ virtual fatrop_int compute_scalings(
177
+ double &obj_scale,
178
+ FatropVecBF &x_scales,
179
+ FatropVecBF &lam_scales,
180
+ const FatropVecBF &grad_curr_x, const FatropVecBF &grad_curr_s) override
181
+ {
182
+ return orig_->compute_scalings(obj_scale, x_scales, lam_scales, grad_curr_x, grad_curr_s);
183
+ };
184
+ virtual fatrop_int initialize_slacks(double mu0,
185
+ FatropVecBF &s_curr) override
186
+ {
187
+ auto s_curr_or = s_curr.block(0, orig_dims_.nineqs);
188
+ auto n_curr = s_curr.block(orig_dims_.nineqs, n_n);
189
+ auto p_curr = s_curr.block(orig_dims_.nineqs + n_n, n_p);
190
+ int ret = orig_->initialize_slacks(mu0, s_curr_or);
191
+ auto upper_v = upper_[0];
192
+ auto lower_v = lower_[0];
193
+ // set zero for now TODO use quadratic formula here
194
+ for (int i = 0; i < orig_dims_.nineqs; i++)
195
+ {
196
+ double dist_L = lower_bounded_[i] ? s_curr_or.at(i) - lower_v.at(i) : 0.0;
197
+ double dist_U = upper_bounded_[i] ? upper_v.at(i) - s_curr_or.at(i) : 0.0;
198
+ double viol = 0.0;
199
+ double s_proj = s_curr_or.at(i);
200
+ if (lower_bounded_[i] && dist_L < 0.0)
201
+ {
202
+ // std::cout << "lower" << std::endl;
203
+ s_proj = s_curr_or.at(i) - dist_L;
204
+ }
205
+ if (upper_bounded_[i] && dist_U < 0.0)
206
+ {
207
+ // std::cout << "upper" << std::endl;
208
+ s_proj = s_curr_or.at(i) + dist_U;
209
+ }
210
+ viol = (s_curr_or.at(i) - s_proj);
211
+ double n_init = (mu0 - rho * viol) / (2 * rho) + std::sqrt(std::pow((mu0 - rho * viol) / (2 * rho), 2) + mu0 * viol / (2 * rho));
212
+ // if viol >>>> 0 -> n_init = 0 if viol <<< 0 n_init = viol
213
+ n_curr.at(i) = n_init;
214
+ p_curr.at(i) = viol + n_init;
215
+ }
216
+ return ret;
217
+ }
218
+ virtual fatrop_int initialize_dual(
219
+ const FatropVecBF &grad_x,
220
+ const FatropVecBF &grad_s,
221
+ FatropVecBF &dlam,
222
+ const FatropVecBF &zL,
223
+ const FatropVecBF &zU) override
224
+ {
225
+ // todo check if this is correct
226
+ return orig_->initialize_dual(grad_x, grad_s, dlam, zL.block(0, orig_dims_.nineqs), zU.block(0, orig_dims_.nineqs));
227
+ };
228
+ virtual fatrop_int get_bounds(
229
+ FatropVecBF &lower,
230
+ FatropVecBF &upper) const override
231
+ {
232
+ orig_->get_bounds(lower, upper);
233
+ lower.block(orig_dims_.nineqs, n_n) = 0.0;
234
+ lower.block(orig_dims_.nineqs + n_n, n_p) = 0.0;
235
+ upper.block(orig_dims_.nineqs, n_n) = std::numeric_limits<double>::infinity();
236
+ upper.block(orig_dims_.nineqs + n_n, n_p) = std::numeric_limits<double>::infinity();
237
+ return 0;
238
+ };
239
+ virtual fatrop_int get_initial_sol_guess(
240
+ FatropVecBF &initial) const override
241
+ {
242
+ orig_->get_initial_sol_guess(initial);
243
+ return 0;
244
+ }
245
+ std::shared_ptr<FatropNLP> orig_;
246
+ NLPDims orig_dims_;
247
+ NLPDims this_dims_;
248
+ FatropMemoryVecBF lower_, upper_;
249
+ std::vector<bool> upper_bounded_;
250
+ std::vector<bool> lower_bounded_;
251
+ fatrop_int n_p = 0;
252
+ fatrop_int n_n = 0;
253
+ FatropMemoryVecBF slack_dummy_;
254
+ FatropMemoryVecBF sigma_dummy_;
255
+ FatropMemoryVecBF gradb_dummy_;
256
+ FatropMemoryVecBF zl_dummy_;
257
+ FatropMemoryVecBF zu_dummy_;
258
+ double inertia_correction_w_cache = 0.0;
259
+ FatropMemoryVecBF sigma_cache_;
260
+ FatropMemoryVecBF gradb_cache_;
261
+ double rho = 1e4;
262
+ };
263
+ };
@@ -0,0 +1,104 @@
1
+ /*
2
+ * Fatrop - A fast trajectory optimization solver
3
+ * Copyright (C) 2022 - 2024 Lander Vanroye, KU Leuven. All rights reserved.
4
+ *
5
+ * This file is part of Fatrop.
6
+ *
7
+ * Fatrop is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Lesser General Public License as published by
9
+ * the Free Software Foundation, either version 3 of the License, or
10
+ * (at your option) any later version.
11
+ *
12
+ * Fatrop is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public License
18
+ * along with Fatrop. If not, see <http://www.gnu.org/licenses/>. */
19
+ #ifndef NLPINCLUDED
20
+ #define NLPINCLUDED
21
+ #include "fatrop/blasfeo_wrapper/LinearAlgebraBlasfeo.hpp"
22
+ #include "fatrop/auxiliary/Common.hpp"
23
+ namespace fatrop
24
+ {
25
+ struct NLPDims
26
+ {
27
+ fatrop_int nvars;
28
+ fatrop_int neqs;
29
+ fatrop_int nineqs;
30
+ };
31
+ class FatropNLP
32
+ {
33
+ public:
34
+ virtual fatrop_int eval_lag_hess(
35
+ double obj_scale,
36
+ const FatropVecBF &primal_vars,
37
+ const FatropVecBF &slack_vars,
38
+ const FatropVecBF &lam) = 0;
39
+ virtual fatrop_int eval_constr_jac(
40
+ const FatropVecBF &primal_vars,
41
+ const FatropVecBF &slack_vars) = 0;
42
+ virtual fatrop_int eval_constraint_viol(
43
+ const FatropVecBF &primal_vars,
44
+ const FatropVecBF &slack_vars,
45
+ FatropVecBF &constraint_violation) = 0;
46
+ virtual fatrop_int eval_obj_grad(
47
+ double obj_scale,
48
+ const FatropVecBF &primal_vars,
49
+ const FatropVecBF &slack_vars,
50
+ FatropVecBF &gradient_x,
51
+ FatropVecBF &gradient_s) = 0;
52
+ virtual fatrop_int eval_obj(
53
+ double obj_scale,
54
+ const FatropVecBF &primal_vars,
55
+ const FatropVecBF &slack_vars,
56
+ double &res) = 0;
57
+ virtual fatrop_int eval_dual_inf(
58
+ double obj_scale,
59
+ const FatropVecBF &lam,
60
+ const FatropVecBF &grad_x,
61
+ const FatropVecBF &grad_s,
62
+ FatropVecBF &du_inf_x, FatropVecBF& du_inf_s) = 0;
63
+ virtual fatrop_int solve_pd_sys(
64
+ const double inertia_correction_w,
65
+ const double inertia_correction_c,
66
+ const FatropVecBF &ux,
67
+ const FatropVecBF &lam,
68
+ const FatropVecBF &delta_s,
69
+ const FatropVecBF &sigma_total,
70
+ const FatropVecBF &gradb_total) = 0;
71
+ virtual fatrop_int solve_soc_rhs(
72
+ const FatropVecBF &ux,
73
+ const FatropVecBF &lam,
74
+ const FatropVecBF &delta_s,
75
+ const FatropVecBF &cosntraint_violation) = 0;
76
+ virtual NLPDims get_nlp_dims() const = 0;
77
+ virtual fatrop_int compute_scalings(
78
+ double &obj_scale,
79
+ FatropVecBF &x_scales,
80
+ FatropVecBF &lam_scales,
81
+ const FatropVecBF &grad_curr_x, const FatropVecBF& grad_curr_s) = 0;
82
+ virtual fatrop_int initialize_slacks(double mu0,
83
+ FatropVecBF &s_curr) = 0;
84
+ virtual fatrop_int initialize_dual(
85
+ const FatropVecBF &grad_x,
86
+ const FatropVecBF &grad_s,
87
+ FatropVecBF &dlam,
88
+ const FatropVecBF &zL,
89
+ const FatropVecBF &zU) = 0;
90
+ virtual fatrop_int get_bounds(
91
+ FatropVecBF &lower,
92
+ FatropVecBF &upper) const = 0;
93
+ virtual fatrop_int get_initial_sol_guess(
94
+ FatropVecBF &initial) const = 0;
95
+ virtual void pre_solve(const FatropVecBF& x_init,const FatropVecBF& s_init){};
96
+ // virtual fatrop_int GetDefaultParams(
97
+ // FatropOptions &params) const = 0;
98
+ virtual fatrop_int Callback(FatropVecBF& primal_vars){return 0;};
99
+ virtual void finalize(){};
100
+ virtual void reset(){};
101
+ virtual void update_mu(double mu){};
102
+ };
103
+ } // namespace fatrop
104
+ #endif // NLPINCLUDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Daniel Arnström
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
@@ -0,0 +1,26 @@
1
+ BLASFEO -- BLAS For Embedded Optimization.
2
+ Copyright (C) 2019 by Gianluca Frison.
3
+ Developed at IMTEK (University of Freiburg) under the supervision of Moritz Diehl.
4
+ All rights reserved.
5
+
6
+ The 2-Clause BSD License
7
+
8
+ Redistribution and use in source and binary forms, with or without
9
+ modification, are permitted provided that the following conditions are met:
10
+
11
+ 1. Redistributions of source code must retain the above copyright notice, this
12
+ list of conditions and the following disclaimer.
13
+ 2. Redistributions in binary form must reproduce the above copyright notice,
14
+ this list of conditions and the following disclaimer in the documentation
15
+ and/or other materials provided with the distribution.
16
+
17
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
21
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,29 @@
1
+ Copyright (c) 2016 Wenzel Jakob <wenzel.jakob@epfl.ch>, All rights reserved.
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions are met:
5
+
6
+ 1. Redistributions of source code must retain the above copyright notice, this
7
+ list of conditions and the following disclaimer.
8
+
9
+ 2. Redistributions in binary form must reproduce the above copyright notice,
10
+ this list of conditions and the following disclaimer in the documentation
11
+ and/or other materials provided with the distribution.
12
+
13
+ 3. Neither the name of the copyright holder nor the names of its contributors
14
+ may be used to endorse or promote products derived from this software
15
+ without specific prior written permission.
16
+
17
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
21
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+
28
+ Please also refer to the file .github/CONTRIBUTING.md, which clarifies licensing of
29
+ external contributions to this project including patches, pull requests, etc.
@@ -9,8 +9,7 @@ extern "C" {
9
9
  /*******************
10
10
  * OSQP Versioning *
11
11
  *******************/
12
- # define OSQP_VERSION ("0.6.2") /* string literals automatically null-terminated
13
- */
12
+ #include "version.h"
14
13
 
15
14
  /******************
16
15
  * Solver Status *
@@ -33,7 +32,7 @@ extern "C" {
33
32
  /*************************
34
33
  * Linear System Solvers *
35
34
  *************************/
36
- enum linsys_solver_type { QDLDL_SOLVER, MKL_PARDISO_SOLVER };
35
+ enum linsys_solver_type { QDLDL_SOLVER, MKL_PARDISO_SOLVER, UNKNOWN_SOLVER=99 };
37
36
  extern const char * LINSYS_SOLVER_NAME[];
38
37
 
39
38
 
@@ -0,0 +1,9 @@
1
+ /**
2
+ This file is replaced by an auto-generated version.h
3
+ with an OSQP_VERSION obtained from a variable supplied
4
+ to cmake
5
+ */
6
+
7
+ #ifndef OSQP_VERSION
8
+ #define OSQP_VERSION "0.6.3"
9
+ #endif
@@ -52,11 +52,6 @@ else()
52
52
  endif()
53
53
 
54
54
 
55
- # if the installed project requested no architecture check, don't perform the check
56
- if("FALSE")
57
- return()
58
- endif()
59
-
60
55
  # if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
61
56
  if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "")
62
57
  return()
@@ -7,7 +7,7 @@ if(CMAKE_VERSION VERSION_LESS "2.8.3")
7
7
  message(FATAL_ERROR "CMake >= 2.8.3 required")
8
8
  endif()
9
9
  cmake_policy(PUSH)
10
- cmake_policy(VERSION 2.8.3...3.22)
10
+ cmake_policy(VERSION 2.8.3...3.25)
11
11
  #----------------------------------------------------------------
12
12
  # Generated CMake target import file.
13
13
  #----------------------------------------------------------------
casadi/libcasadi.so CHANGED
Binary file
casadi/libcasadi.so.3.7 CHANGED
Binary file
Binary file