casadi 3.6.5__cp37-none-win_amd64.whl → 3.6.6__cp37-none-win_amd64.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 (502) hide show
  1. casadi/_casadi.pyd +0 -0
  2. casadi/bin/libtinyxml2.dll +0 -0
  3. casadi/blasfeo.lib +0 -0
  4. casadi/casadi-cli.exe +0 -0
  5. casadi/casadi.lib +0 -0
  6. casadi/casadi.py +663 -257
  7. casadi/cbc.exe +0 -0
  8. casadi/clp.exe +0 -0
  9. casadi/cmake/casadi-config-version.cmake +1 -1
  10. casadi/cmake/highs/highs-config.cmake +7 -14
  11. casadi/cmake/highs/highs-targets-release.cmake +13 -13
  12. casadi/cmake/highs/highs-targets.cmake +11 -9
  13. casadi/daqp.lib +0 -0
  14. casadi/fatrop.lib +0 -0
  15. casadi/highs.exe +0 -0
  16. casadi/highs.lib +0 -0
  17. casadi/hpipm.lib +0 -0
  18. casadi/include/casadi/casadi.i +3 -0
  19. casadi/include/casadi/casadi_c.h +2 -0
  20. casadi/include/casadi/config.h +8 -8
  21. casadi/include/casadi/core/casadi_common.hpp +1 -0
  22. casadi/include/casadi/core/casadi_misc.hpp +13 -0
  23. casadi/include/casadi/core/casadi_types.hpp +3 -2
  24. casadi/include/casadi/core/code_generator.hpp +30 -1
  25. casadi/include/casadi/core/global_options.hpp +2 -0
  26. casadi/include/casadi/core/mx.hpp +13 -3
  27. casadi/include/casadi/core/optistack.hpp +23 -0
  28. casadi/include/casadi/core/runtime/casadi_nlp.hpp +2 -0
  29. casadi/include/casadi/core/runtime/casadi_ocp_block.hpp +55 -0
  30. casadi/include/casadi/core/runtime/casadi_oracle.hpp +44 -0
  31. casadi/include/casadi/core/runtime/casadi_oracle_callback.hpp +39 -0
  32. casadi/include/casadi/core/runtime/casadi_runtime.hpp +4 -1
  33. casadi/include/casadi/core/runtime/casadi_scaled_copy.hpp +31 -0
  34. casadi/include/casadi/core/serializing_stream.hpp +2 -2
  35. casadi/include/casadi/core/sparsity.hpp +7 -0
  36. casadi/include/casadi/doc.i +1397 -955
  37. casadi/include/casadi/doc_merged.i +867 -675
  38. casadi/include/casadi/mem.h +1 -0
  39. casadi/include/daqp/api.h +46 -0
  40. casadi/include/daqp/auxiliary.h +29 -0
  41. casadi/include/daqp/bnb.h +32 -0
  42. casadi/include/daqp/codegen.h +18 -0
  43. casadi/include/daqp/constants.h +92 -0
  44. casadi/include/daqp/daqp.h +22 -0
  45. casadi/include/daqp/daqp_prox.h +18 -0
  46. casadi/include/daqp/factorization.h +18 -0
  47. casadi/include/daqp/types.h +161 -0
  48. casadi/include/daqp/utils.h +44 -0
  49. casadi/include/dlfcn.h +94 -0
  50. casadi/include/fatrop/auxiliary/Common.hpp +33 -0
  51. casadi/include/fatrop/auxiliary/DynamicLib.hpp +34 -0
  52. casadi/include/fatrop/auxiliary/FatropOptions.hpp +68 -0
  53. casadi/include/fatrop/auxiliary/FatropVector.hpp +143 -0
  54. casadi/include/fatrop/auxiliary/LinearAlgebra.hpp +88 -0
  55. casadi/include/fatrop/auxiliary/VectorUtils.hpp +54 -0
  56. casadi/include/fatrop/blasfeo_wrapper/LinearAlgebraBlasfeo.hpp +492 -0
  57. casadi/include/fatrop/function_evaluation/CasadiCodegen.hpp +104 -0
  58. casadi/include/fatrop/function_evaluation/FunctionEvaluation.hpp +60 -0
  59. casadi/include/fatrop/json/json.h +946 -0
  60. casadi/include/fatrop/ocp/CasadiCApiUserdataWrap.hpp +87 -0
  61. casadi/include/fatrop/ocp/DuInfEvaluator.hpp +38 -0
  62. casadi/include/fatrop/ocp/FatropOCP.hpp +161 -0
  63. casadi/include/fatrop/ocp/FatropOCPBuilder.hpp +52 -0
  64. casadi/include/fatrop/ocp/OCP.hpp +82 -0
  65. casadi/include/fatrop/ocp/OCPAbstract.hpp +254 -0
  66. casadi/include/fatrop/ocp/OCPAdapter.hpp +197 -0
  67. casadi/include/fatrop/ocp/OCPCInterface.h +289 -0
  68. casadi/include/fatrop/ocp/OCPDims.hpp +60 -0
  69. casadi/include/fatrop/ocp/OCPInitializer.hpp +41 -0
  70. casadi/include/fatrop/ocp/OCPKKT.hpp +69 -0
  71. casadi/include/fatrop/ocp/OCPLSRiccati.hpp +191 -0
  72. casadi/include/fatrop/ocp/OCPLSScaler.hpp +66 -0
  73. casadi/include/fatrop/ocp/OCPLinearSolver.hpp +75 -0
  74. casadi/include/fatrop/ocp/OCPNoScaling.hpp +42 -0
  75. casadi/include/fatrop/ocp/OCPScalingMethod.hpp +42 -0
  76. casadi/include/fatrop/ocp/StageOCP.hpp +592 -0
  77. casadi/include/fatrop/ocp/StageOCPApplication.hpp +242 -0
  78. casadi/include/fatrop/ocp/StageOCPExpressions.hpp +182 -0
  79. casadi/include/fatrop/ocp/UStageEvalAbstract.hpp +168 -0
  80. casadi/include/fatrop/ocp/UStageOCPImpl.hpp +152 -0
  81. casadi/include/fatrop/quasi_newton/bfgs.hpp +159 -0
  82. casadi/include/fatrop/solver/AlgBuilder.hpp +66 -0
  83. casadi/include/fatrop/solver/AlgStrategy.hpp +33 -0
  84. casadi/include/fatrop/solver/FatropAlg.hpp +108 -0
  85. casadi/include/fatrop/solver/FatropData.hpp +188 -0
  86. casadi/include/fatrop/solver/FatropOptions.hpp +94 -0
  87. casadi/include/fatrop/solver/FatropPrinter.hpp +65 -0
  88. casadi/include/fatrop/solver/FatropStats.hpp +63 -0
  89. casadi/include/fatrop/solver/Filter.hpp +54 -0
  90. casadi/include/fatrop/solver/IterationData.hpp +55 -0
  91. casadi/include/fatrop/solver/LineSearch.hpp +86 -0
  92. casadi/include/fatrop/solver/NLPL1.hpp +263 -0
  93. casadi/include/fatrop/templates/NLPAlg.hpp +102 -0
  94. casadi/include/highs/HConfig.h +6 -5
  95. casadi/include/highs/Highs.h +93 -23
  96. casadi/include/highs/filereaderlp/def.hpp +19 -0
  97. casadi/include/highs/interfaces/highs_c_api.h +200 -24
  98. casadi/include/highs/io/Filereader.h +1 -1
  99. casadi/include/highs/io/FilereaderEms.h +1 -1
  100. casadi/include/highs/io/FilereaderLp.h +1 -1
  101. casadi/include/highs/io/FilereaderMps.h +1 -1
  102. casadi/include/highs/io/HMPSIO.h +1 -1
  103. casadi/include/highs/io/HMpsFF.h +5 -3
  104. casadi/include/highs/io/HighsIO.h +18 -8
  105. casadi/include/highs/io/LoadOptions.h +1 -1
  106. casadi/include/highs/ipm/IpxSolution.h +35 -0
  107. casadi/include/highs/ipm/IpxWrapper.h +1 -1
  108. casadi/include/highs/ipm/basiclu/basiclu.h +161 -0
  109. casadi/include/highs/ipm/basiclu/basiclu_factorize.h +247 -0
  110. casadi/include/highs/ipm/basiclu/basiclu_get_factors.h +108 -0
  111. casadi/include/highs/ipm/basiclu/basiclu_initialize.h +119 -0
  112. casadi/include/highs/ipm/basiclu/basiclu_obj_factorize.h +34 -0
  113. casadi/include/highs/ipm/basiclu/basiclu_obj_free.h +19 -0
  114. casadi/include/highs/ipm/basiclu/basiclu_obj_get_factors.h +34 -0
  115. casadi/include/highs/ipm/basiclu/basiclu_obj_initialize.h +46 -0
  116. casadi/include/highs/ipm/basiclu/basiclu_obj_solve_dense.h +29 -0
  117. casadi/include/highs/ipm/basiclu/basiclu_obj_solve_for_update.h +42 -0
  118. casadi/include/highs/ipm/basiclu/basiclu_obj_solve_sparse.h +32 -0
  119. casadi/include/highs/ipm/basiclu/basiclu_obj_update.h +31 -0
  120. casadi/include/highs/ipm/basiclu/basiclu_object.h +30 -0
  121. casadi/include/highs/ipm/basiclu/basiclu_solve_dense.h +75 -0
  122. casadi/include/highs/ipm/basiclu/basiclu_solve_for_update.h +169 -0
  123. casadi/include/highs/ipm/basiclu/basiclu_solve_sparse.h +112 -0
  124. casadi/include/highs/ipm/basiclu/basiclu_update.h +125 -0
  125. casadi/include/highs/ipm/basiclu/lu_def.h +39 -0
  126. casadi/include/highs/ipm/basiclu/lu_file.h +21 -0
  127. casadi/include/highs/ipm/basiclu/lu_internal.h +220 -0
  128. casadi/include/highs/ipm/basiclu/lu_list.h +168 -0
  129. casadi/include/highs/ipm/ipx/basiclu_kernel.h +20 -0
  130. casadi/include/highs/ipm/ipx/basiclu_wrapper.h +47 -0
  131. casadi/include/highs/ipm/ipx/basis.h +351 -0
  132. casadi/include/highs/ipm/ipx/conjugate_residuals.h +74 -0
  133. casadi/include/highs/ipm/ipx/control.h +163 -0
  134. casadi/include/highs/ipm/ipx/crossover.h +157 -0
  135. casadi/include/highs/ipm/ipx/diagonal_precond.h +45 -0
  136. casadi/include/highs/ipm/ipx/forrest_tomlin.h +102 -0
  137. casadi/include/highs/ipm/ipx/guess_basis.h +21 -0
  138. casadi/include/highs/ipm/ipx/indexed_vector.h +113 -0
  139. casadi/include/highs/ipm/ipx/info.h +27 -0
  140. casadi/include/highs/ipm/ipx/ipm.h +94 -0
  141. casadi/include/highs/ipm/ipx/ipx_c.h +47 -0
  142. casadi/include/highs/ipm/ipx/ipx_config.h +9 -0
  143. casadi/include/highs/ipm/ipx/ipx_info.h +111 -0
  144. casadi/include/highs/ipm/ipx/ipx_internal.h +88 -0
  145. casadi/include/highs/ipm/ipx/ipx_parameters.h +75 -0
  146. casadi/include/highs/ipm/ipx/ipx_status.h +57 -0
  147. casadi/include/highs/ipm/ipx/iterate.h +328 -0
  148. casadi/include/highs/ipm/ipx/kkt_solver.h +70 -0
  149. casadi/include/highs/ipm/ipx/kkt_solver_basis.h +66 -0
  150. casadi/include/highs/ipm/ipx/kkt_solver_diag.h +48 -0
  151. casadi/include/highs/ipm/ipx/linear_operator.h +26 -0
  152. casadi/include/highs/ipm/ipx/lp_solver.h +201 -0
  153. casadi/include/highs/ipm/ipx/lu_factorization.h +79 -0
  154. casadi/include/highs/ipm/ipx/lu_update.h +129 -0
  155. casadi/include/highs/ipm/ipx/maxvolume.h +54 -0
  156. casadi/include/highs/ipm/ipx/model.h +409 -0
  157. casadi/include/highs/ipm/ipx/multistream.h +52 -0
  158. casadi/include/highs/ipm/ipx/normal_matrix.h +44 -0
  159. casadi/include/highs/ipm/ipx/power_method.h +44 -0
  160. casadi/include/highs/ipm/ipx/sparse_matrix.h +195 -0
  161. casadi/include/highs/ipm/ipx/sparse_utils.h +58 -0
  162. casadi/include/highs/ipm/ipx/splitted_normal_matrix.h +63 -0
  163. casadi/include/highs/ipm/ipx/starting_basis.h +39 -0
  164. casadi/include/highs/ipm/ipx/symbolic_invert.h +29 -0
  165. casadi/include/highs/ipm/ipx/timer.h +24 -0
  166. casadi/include/highs/ipm/ipx/utils.h +39 -0
  167. casadi/include/highs/lp_data/HConst.h +20 -10
  168. casadi/include/highs/lp_data/HStruct.h +23 -1
  169. casadi/include/highs/lp_data/HighsAnalysis.h +1 -1
  170. casadi/include/highs/lp_data/HighsCallback.h +10 -3
  171. casadi/include/highs/lp_data/HighsCallbackStruct.h +31 -5
  172. casadi/include/highs/lp_data/HighsDebug.h +1 -1
  173. casadi/include/highs/lp_data/HighsInfo.h +20 -2
  174. casadi/include/highs/lp_data/HighsInfoDebug.h +1 -1
  175. casadi/include/highs/lp_data/HighsLp.h +17 -1
  176. casadi/include/highs/lp_data/HighsLpSolverObject.h +1 -1
  177. casadi/include/highs/lp_data/HighsLpUtils.h +19 -19
  178. casadi/include/highs/lp_data/HighsModelUtils.h +1 -1
  179. casadi/include/highs/lp_data/HighsOptions.h +237 -10
  180. casadi/include/highs/lp_data/HighsRanging.h +1 -1
  181. casadi/include/highs/lp_data/HighsRuntimeOptions.h +2 -2
  182. casadi/include/highs/lp_data/HighsSolution.h +2 -2
  183. casadi/include/highs/lp_data/HighsSolutionDebug.h +1 -1
  184. casadi/include/highs/lp_data/HighsSolve.h +3 -1
  185. casadi/include/highs/lp_data/HighsStatus.h +1 -1
  186. casadi/include/highs/mip/HighsCliqueTable.h +4 -4
  187. casadi/include/highs/mip/HighsConflictPool.h +1 -1
  188. casadi/include/highs/mip/HighsCutGeneration.h +1 -1
  189. casadi/include/highs/mip/HighsCutPool.h +2 -2
  190. casadi/include/highs/mip/HighsDebugSol.h +22 -29
  191. casadi/include/highs/mip/HighsDomain.h +10 -2
  192. casadi/include/highs/mip/HighsDomainChange.h +1 -1
  193. casadi/include/highs/mip/HighsDynamicRowMatrix.h +5 -3
  194. casadi/include/highs/mip/HighsGFkSolve.h +3 -3
  195. casadi/include/highs/mip/HighsImplications.h +3 -3
  196. casadi/include/highs/mip/HighsLpAggregator.h +1 -1
  197. casadi/include/highs/mip/HighsLpRelaxation.h +6 -1
  198. casadi/include/highs/mip/HighsMipSolver.h +4 -2
  199. casadi/include/highs/mip/HighsMipSolverData.h +47 -4
  200. casadi/include/highs/mip/HighsModkSeparator.h +2 -2
  201. casadi/include/highs/mip/HighsNodeQueue.h +5 -3
  202. casadi/include/highs/mip/HighsObjectiveFunction.h +1 -1
  203. casadi/include/highs/mip/HighsPathSeparator.h +2 -2
  204. casadi/include/highs/mip/HighsPrimalHeuristics.h +1 -1
  205. casadi/include/highs/mip/HighsPseudocost.h +35 -23
  206. casadi/include/highs/mip/HighsRedcostFixing.h +1 -1
  207. casadi/include/highs/mip/HighsSearch.h +2 -1
  208. casadi/include/highs/mip/HighsSeparation.h +1 -1
  209. casadi/include/highs/mip/HighsSeparator.h +1 -1
  210. casadi/include/highs/mip/HighsTableauSeparator.h +1 -1
  211. casadi/include/highs/mip/HighsTransformedLp.h +1 -1
  212. casadi/include/highs/model/HighsHessian.h +5 -0
  213. casadi/include/highs/model/HighsHessianUtils.h +2 -0
  214. casadi/include/highs/model/HighsModel.h +10 -1
  215. casadi/include/highs/parallel/HighsMutex.h +2 -1
  216. casadi/include/highs/parallel/HighsParallel.h +7 -2
  217. casadi/include/highs/parallel/HighsTask.h +1 -2
  218. casadi/include/highs/pdlp/CupdlpWrapper.h +93 -0
  219. casadi/include/highs/pdlp/cupdlp/cupdlp_cs.h +41 -0
  220. casadi/include/highs/pdlp/cupdlp/cupdlp_defs.h +423 -0
  221. casadi/include/highs/pdlp/cupdlp/cupdlp_linalg.h +183 -0
  222. casadi/include/highs/pdlp/cupdlp/cupdlp_proj.h +19 -0
  223. casadi/include/highs/pdlp/cupdlp/cupdlp_restart.h +31 -0
  224. casadi/include/highs/pdlp/cupdlp/cupdlp_scaling_cuda.h +28 -0
  225. casadi/include/highs/pdlp/cupdlp/cupdlp_solver.h +98 -0
  226. casadi/include/highs/pdlp/cupdlp/cupdlp_step.h +33 -0
  227. casadi/include/highs/pdlp/cupdlp/cupdlp_utils.c +1726 -0
  228. casadi/include/highs/pdqsort/pdqsort.h +532 -0
  229. casadi/include/highs/presolve/HPresolve.h +27 -14
  230. casadi/include/highs/presolve/HPresolveAnalysis.h +1 -1
  231. casadi/include/highs/presolve/HighsPostsolveStack.h +92 -68
  232. casadi/include/highs/presolve/HighsSymmetry.h +6 -5
  233. casadi/include/highs/presolve/ICrash.h +8 -2
  234. casadi/include/highs/presolve/ICrashUtil.h +1 -1
  235. casadi/include/highs/presolve/ICrashX.h +1 -1
  236. casadi/include/highs/presolve/PresolveComponent.h +1 -1
  237. casadi/include/highs/qpsolver/a_asm.hpp +23 -12
  238. casadi/include/highs/qpsolver/a_quass.hpp +8 -1
  239. casadi/include/highs/qpsolver/basis.hpp +150 -0
  240. casadi/include/highs/qpsolver/crashsolution.hpp +12 -0
  241. casadi/include/highs/qpsolver/dantzigpricing.hpp +72 -0
  242. casadi/include/highs/qpsolver/devexpricing.hpp +99 -0
  243. casadi/include/highs/qpsolver/eventhandler.hpp +23 -0
  244. casadi/include/highs/qpsolver/factor.hpp +400 -0
  245. casadi/include/highs/qpsolver/feasibility_bounded.hpp +105 -0
  246. casadi/include/highs/qpsolver/feasibility_highs.hpp +270 -0
  247. casadi/include/highs/qpsolver/gradient.hpp +39 -0
  248. casadi/include/highs/qpsolver/instance.hpp +63 -0
  249. casadi/include/highs/qpsolver/matrix.hpp +335 -0
  250. casadi/include/highs/qpsolver/pricing.hpp +15 -0
  251. casadi/include/highs/qpsolver/qpconst.hpp +27 -0
  252. casadi/include/highs/qpsolver/{vector.hpp → qpvector.hpp} +25 -25
  253. casadi/include/highs/qpsolver/quass.hpp +1 -1
  254. casadi/include/highs/qpsolver/ratiotest.hpp +19 -0
  255. casadi/include/highs/qpsolver/runtime.hpp +38 -0
  256. casadi/include/highs/qpsolver/settings.hpp +57 -0
  257. casadi/include/highs/qpsolver/snippets.hpp +29 -0
  258. casadi/include/highs/qpsolver/statistics.hpp +23 -0
  259. casadi/include/highs/qpsolver/steepestedgepricing.hpp +167 -0
  260. casadi/include/highs/simplex/HApp.h +1 -1
  261. casadi/include/highs/simplex/HEkk.h +52 -18
  262. casadi/include/highs/simplex/HEkkDual.h +1 -1
  263. casadi/include/highs/simplex/HEkkDualRHS.h +6 -7
  264. casadi/include/highs/simplex/HEkkDualRow.h +2 -2
  265. casadi/include/highs/simplex/HEkkPrimal.h +6 -1
  266. casadi/include/highs/simplex/HSimplex.h +1 -3
  267. casadi/include/highs/simplex/HSimplexDebug.h +1 -1
  268. casadi/include/highs/simplex/HSimplexNla.h +1 -1
  269. casadi/include/highs/simplex/HSimplexReport.h +1 -1
  270. casadi/include/highs/simplex/HighsSimplexAnalysis.h +228 -100
  271. casadi/include/highs/simplex/SimplexConst.h +1 -1
  272. casadi/include/highs/simplex/SimplexStruct.h +2 -2
  273. casadi/include/highs/simplex/SimplexTimer.h +1 -1
  274. casadi/include/highs/test/DevKkt.h +1 -1
  275. casadi/include/highs/test/KktCh2.h +1 -1
  276. casadi/include/highs/util/FactorTimer.h +1 -1
  277. casadi/include/highs/util/HFactor.h +35 -6
  278. casadi/include/highs/util/HFactorConst.h +1 -1
  279. casadi/include/highs/util/HFactorDebug.h +1 -1
  280. casadi/include/highs/util/HSet.h +1 -1
  281. casadi/include/highs/util/HVector.h +1 -1
  282. casadi/include/highs/util/HVectorBase.h +1 -1
  283. casadi/include/highs/util/HighsCDouble.h +3 -3
  284. casadi/include/highs/util/HighsComponent.h +1 -1
  285. casadi/include/highs/util/HighsDataStack.h +4 -4
  286. casadi/include/highs/util/HighsDisjointSets.h +1 -1
  287. casadi/include/highs/util/HighsHash.h +28 -21
  288. casadi/include/highs/util/HighsHashTree.h +63 -63
  289. casadi/include/highs/util/HighsInt.h +1 -1
  290. casadi/include/highs/util/HighsIntegers.h +8 -9
  291. casadi/include/highs/util/HighsLinearSumBounds.h +1 -1
  292. casadi/include/highs/util/HighsMatrixPic.h +1 -1
  293. casadi/include/highs/util/HighsMatrixSlice.h +9 -6
  294. casadi/include/highs/util/HighsMatrixUtils.h +1 -1
  295. casadi/include/highs/util/HighsMemoryAllocation.h +55 -0
  296. casadi/include/highs/util/HighsRandom.h +27 -15
  297. casadi/include/highs/util/HighsRbTree.h +2 -2
  298. casadi/include/highs/util/HighsSort.h +7 -7
  299. casadi/include/highs/util/HighsSparseMatrix.h +5 -2
  300. casadi/include/highs/util/HighsSparseVectorSum.h +2 -2
  301. casadi/include/highs/util/HighsSplay.h +1 -1
  302. casadi/include/highs/util/HighsTimer.h +18 -9
  303. casadi/include/highs/util/HighsUtils.h +15 -8
  304. casadi/include/highs/util/stringutil.h +9 -4
  305. casadi/include/highs/zstr/strict_fstream.hpp +237 -0
  306. casadi/include/highs/zstr/zstr.hpp +472 -0
  307. casadi/include/highs_export.h +42 -0
  308. casadi/include/licenses/daqp-external/LICENSE +21 -0
  309. casadi/include/licenses/fatrop-external/LICENSE.txt +165 -0
  310. casadi/include/licenses/fatrop-external/external/blasfeo/LICENSE.txt +26 -0
  311. casadi/include/licenses/fatrop-external/external/pybind11/LICENSE +29 -0
  312. casadi/include/licenses/highs-external/{LICENSE → LICENSE.txt} +1 -1
  313. casadi/include/osqp/constants.h +2 -3
  314. casadi/include/osqp/version.h +9 -0
  315. casadi/include/sleqp/defs.h +2 -2
  316. casadi/ipopt.lib +0 -0
  317. casadi/lapack.lib +0 -0
  318. casadi/lib/libtinyxml2.dll.a +0 -0
  319. casadi/libCbc-3.dll +0 -0
  320. casadi/libCbc.dll.a +0 -0
  321. casadi/libCbcSolver-3.dll +0 -0
  322. casadi/libCbcSolver.dll.a +0 -0
  323. casadi/libCgl-1.dll +0 -0
  324. casadi/libCgl.dll.a +0 -0
  325. casadi/libClp-1.dll +0 -0
  326. casadi/libClp.dll.a +0 -0
  327. casadi/libClpSolver-1.dll +0 -0
  328. casadi/libClpSolver.dll.a +0 -0
  329. casadi/libCoinUtils-3.dll +0 -0
  330. casadi/libCoinUtils.dll.a +0 -0
  331. casadi/libOsi-1.dll +0 -0
  332. casadi/libOsi.dll.a +0 -0
  333. casadi/libOsiCbc-3.dll +0 -0
  334. casadi/libOsiCbc.dll.a +0 -0
  335. casadi/libOsiClp-1.dll +0 -0
  336. casadi/libOsiClp.dll.a +0 -0
  337. casadi/libOsiCommonTests-1.dll +0 -0
  338. casadi/libOsiCommonTests.dll.a +0 -0
  339. casadi/libalpaqa.dll +0 -0
  340. casadi/libalpaqa.dll.a +0 -0
  341. casadi/libblasfeo.dll +0 -0
  342. casadi/libblasfeo.dll.a +0 -0
  343. casadi/libbonmin-4.dll +0 -0
  344. casadi/libbonmin.dll.a +0 -0
  345. casadi/libcasadi-tp-openblas.dll +0 -0
  346. casadi/libcasadi-tp-openblas.dll.a +0 -0
  347. casadi/libcasadi.dll +0 -0
  348. casadi/libcasadi.dll.a +0 -0
  349. casadi/libcasadi_conic_cbc.dll +0 -0
  350. casadi/libcasadi_conic_cbc.dll.a +0 -0
  351. casadi/libcasadi_conic_clp.dll +0 -0
  352. casadi/libcasadi_conic_clp.dll.a +0 -0
  353. casadi/libcasadi_conic_cplex.dll +0 -0
  354. casadi/libcasadi_conic_cplex.dll.a +0 -0
  355. casadi/libcasadi_conic_daqp.dll +0 -0
  356. casadi/libcasadi_conic_daqp.dll.a +0 -0
  357. casadi/libcasadi_conic_fatrop.dll +0 -0
  358. casadi/libcasadi_conic_fatrop.dll.a +0 -0
  359. casadi/libcasadi_conic_gurobi.dll +0 -0
  360. casadi/libcasadi_conic_gurobi.dll.a +0 -0
  361. casadi/libcasadi_conic_highs.dll +0 -0
  362. casadi/libcasadi_conic_highs.dll.a +0 -0
  363. casadi/libcasadi_conic_hpipm.dll +0 -0
  364. casadi/libcasadi_conic_hpipm.dll.a +0 -0
  365. casadi/libcasadi_conic_ipqp.dll +0 -0
  366. casadi/libcasadi_conic_ipqp.dll.a +0 -0
  367. casadi/libcasadi_conic_nlpsol.dll +0 -0
  368. casadi/libcasadi_conic_nlpsol.dll.a +0 -0
  369. casadi/libcasadi_conic_osqp.dll +0 -0
  370. casadi/libcasadi_conic_osqp.dll.a +0 -0
  371. casadi/libcasadi_conic_proxqp.dll +0 -0
  372. casadi/libcasadi_conic_proxqp.dll.a +0 -0
  373. casadi/libcasadi_conic_qpoases.dll +0 -0
  374. casadi/libcasadi_conic_qpoases.dll.a +0 -0
  375. casadi/libcasadi_conic_qrqp.dll +0 -0
  376. casadi/libcasadi_conic_qrqp.dll.a +0 -0
  377. casadi/libcasadi_conic_superscs.dll +0 -0
  378. casadi/libcasadi_conic_superscs.dll.a +0 -0
  379. casadi/libcasadi_importer_shell.dll +0 -0
  380. casadi/libcasadi_importer_shell.dll.a +0 -0
  381. casadi/libcasadi_integrator_collocation.dll +0 -0
  382. casadi/libcasadi_integrator_collocation.dll.a +0 -0
  383. casadi/libcasadi_integrator_cvodes.dll +0 -0
  384. casadi/libcasadi_integrator_cvodes.dll.a +0 -0
  385. casadi/libcasadi_integrator_idas.dll +0 -0
  386. casadi/libcasadi_integrator_idas.dll.a +0 -0
  387. casadi/libcasadi_integrator_rk.dll +0 -0
  388. casadi/libcasadi_integrator_rk.dll.a +0 -0
  389. casadi/libcasadi_interpolant_bspline.dll +0 -0
  390. casadi/libcasadi_interpolant_bspline.dll.a +0 -0
  391. casadi/libcasadi_interpolant_linear.dll +0 -0
  392. casadi/libcasadi_interpolant_linear.dll.a +0 -0
  393. casadi/libcasadi_linsol_csparse.dll +0 -0
  394. casadi/libcasadi_linsol_csparse.dll.a +0 -0
  395. casadi/libcasadi_linsol_csparsecholesky.dll +0 -0
  396. casadi/libcasadi_linsol_csparsecholesky.dll.a +0 -0
  397. casadi/libcasadi_linsol_lapacklu.dll +0 -0
  398. casadi/libcasadi_linsol_lapacklu.dll.a +0 -0
  399. casadi/libcasadi_linsol_lapackqr.dll +0 -0
  400. casadi/libcasadi_linsol_lapackqr.dll.a +0 -0
  401. casadi/libcasadi_linsol_ldl.dll +0 -0
  402. casadi/libcasadi_linsol_ldl.dll.a +0 -0
  403. casadi/libcasadi_linsol_lsqr.dll +0 -0
  404. casadi/libcasadi_linsol_lsqr.dll.a +0 -0
  405. casadi/libcasadi_linsol_ma27.dll +0 -0
  406. casadi/libcasadi_linsol_ma27.dll.a +0 -0
  407. casadi/libcasadi_linsol_mumps.dll +0 -0
  408. casadi/libcasadi_linsol_mumps.dll.a +0 -0
  409. casadi/libcasadi_linsol_qr.dll +0 -0
  410. casadi/libcasadi_linsol_qr.dll.a +0 -0
  411. casadi/libcasadi_linsol_symbolicqr.dll +0 -0
  412. casadi/libcasadi_linsol_symbolicqr.dll.a +0 -0
  413. casadi/libcasadi_linsol_tridiag.dll +0 -0
  414. casadi/libcasadi_linsol_tridiag.dll.a +0 -0
  415. casadi/libcasadi_nlpsol_alpaqa.dll +0 -0
  416. casadi/libcasadi_nlpsol_alpaqa.dll.a +0 -0
  417. casadi/libcasadi_nlpsol_ampl.dll +0 -0
  418. casadi/libcasadi_nlpsol_ampl.dll.a +0 -0
  419. casadi/libcasadi_nlpsol_blocksqp.dll +0 -0
  420. casadi/libcasadi_nlpsol_blocksqp.dll.a +0 -0
  421. casadi/libcasadi_nlpsol_bonmin.dll +0 -0
  422. casadi/libcasadi_nlpsol_bonmin.dll.a +0 -0
  423. casadi/libcasadi_nlpsol_fatrop.dll +0 -0
  424. casadi/libcasadi_nlpsol_fatrop.dll.a +0 -0
  425. casadi/libcasadi_nlpsol_feasiblesqpmethod.dll +0 -0
  426. casadi/libcasadi_nlpsol_feasiblesqpmethod.dll.a +0 -0
  427. casadi/libcasadi_nlpsol_ipopt.dll +0 -0
  428. casadi/libcasadi_nlpsol_ipopt.dll.a +0 -0
  429. casadi/libcasadi_nlpsol_knitro.dll +0 -0
  430. casadi/libcasadi_nlpsol_knitro.dll.a +0 -0
  431. casadi/libcasadi_nlpsol_madnlp.dll +0 -0
  432. casadi/libcasadi_nlpsol_madnlp.dll.a +0 -0
  433. casadi/libcasadi_nlpsol_qrsqp.dll +0 -0
  434. casadi/libcasadi_nlpsol_qrsqp.dll.a +0 -0
  435. casadi/libcasadi_nlpsol_scpgen.dll +0 -0
  436. casadi/libcasadi_nlpsol_scpgen.dll.a +0 -0
  437. casadi/libcasadi_nlpsol_sleqp.dll +0 -0
  438. casadi/libcasadi_nlpsol_sleqp.dll.a +0 -0
  439. casadi/libcasadi_nlpsol_snopt.dll +0 -0
  440. casadi/libcasadi_nlpsol_snopt.dll.a +0 -0
  441. casadi/libcasadi_nlpsol_sqpmethod.dll +0 -0
  442. casadi/libcasadi_nlpsol_sqpmethod.dll.a +0 -0
  443. casadi/libcasadi_nlpsol_worhp.dll +0 -0
  444. casadi/libcasadi_nlpsol_worhp.dll.a +0 -0
  445. casadi/libcasadi_rootfinder_fast_newton.dll +0 -0
  446. casadi/libcasadi_rootfinder_fast_newton.dll.a +0 -0
  447. casadi/libcasadi_rootfinder_kinsol.dll +0 -0
  448. casadi/libcasadi_rootfinder_kinsol.dll.a +0 -0
  449. casadi/libcasadi_rootfinder_newton.dll +0 -0
  450. casadi/libcasadi_rootfinder_newton.dll.a +0 -0
  451. casadi/libcasadi_rootfinder_nlpsol.dll +0 -0
  452. casadi/libcasadi_rootfinder_nlpsol.dll.a +0 -0
  453. casadi/libcasadi_sundials_common.dll +0 -0
  454. casadi/libcasadi_sundials_common.dll.a +0 -0
  455. casadi/libcasadi_xmlfile_tinyxml.dll +0 -0
  456. casadi/libcasadi_xmlfile_tinyxml.dll.a +0 -0
  457. casadi/libcoinmetis-2.dll +0 -0
  458. casadi/libcoinmetis.dll.a +0 -0
  459. casadi/libcoinmumps-3.dll +0 -0
  460. casadi/libcoinmumps.dll.a +0 -0
  461. casadi/libcplex_adaptor.dll +0 -0
  462. casadi/libdaqp.dll +0 -0
  463. casadi/libdaqp.dll.a +0 -0
  464. casadi/libdaqpstat.a +0 -0
  465. casadi/{libFortranHighs.dll → libdl.dll} +0 -0
  466. casadi/libdl.dll.a +0 -0
  467. casadi/libfatrop.dll +0 -0
  468. casadi/libfatrop.dll.a +0 -0
  469. casadi/libgurobi_adaptor.dll +0 -0
  470. casadi/libhighs.dll +0 -0
  471. casadi/libhighs.dll.a +0 -0
  472. casadi/libhpipm.dll +0 -0
  473. casadi/libhpipm.dll.a +0 -0
  474. casadi/libipopt-3.dll +0 -0
  475. casadi/libipopt.dll.a +0 -0
  476. casadi/libmatlab_ipc.dll +0 -0
  477. casadi/libmatlab_ipc.dll.a +0 -0
  478. casadi/libosqp.a +0 -0
  479. casadi/libosqp.dll +0 -0
  480. casadi/libosqp.dll.a +0 -0
  481. casadi/libqdldl.dll +0 -0
  482. casadi/libqdldl.dll.a +0 -0
  483. casadi/libsipopt-3.dll +0 -0
  484. casadi/libsipopt.dll.a +0 -0
  485. casadi/libsleqp.dll +0 -0
  486. casadi/libsleqp.dll.a +0 -0
  487. casadi/libtinyxml2.dll +0 -0
  488. casadi/libtrlib.dll +0 -0
  489. casadi/libtrlib.dll.a +0 -0
  490. casadi/matlab_ipc.lib +0 -0
  491. casadi/osqp.lib +0 -0
  492. casadi/pkgconfig/casadi.pc +1 -1
  493. casadi/pkgconfig/highs.pc +1 -1
  494. casadi/sleqp.lib +0 -0
  495. casadi/spral_ssids.exe +0 -0
  496. casadi/tools/__init__.py +4 -0
  497. casadi/tools/bounds.py +3 -3
  498. {casadi-3.6.5.dist-info → casadi-3.6.6.dist-info}/METADATA +2 -2
  499. {casadi-3.6.5.dist-info → casadi-3.6.6.dist-info}/RECORD +500 -324
  500. casadi/include/highs/fortran/highs_fortran_api.mod +0 -0
  501. casadi/libFortranHighs.dll.a +0 -0
  502. {casadi-3.6.5.dist-info → casadi-3.6.6.dist-info}/WHEEL +0 -0
@@ -0,0 +1,191 @@
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 OCPLSRICCATIINCLUDED
20
+ #define OCPLSRICCATIINCLUDED
21
+ #include "OCPKKT.hpp"
22
+ #include "OCPLinearSolver.hpp"
23
+ #include "fatrop/solver/FatropPrinter.hpp"
24
+ #include <cmath>
25
+ #include <memory>
26
+ #include "fatrop/solver/FatropOptions.hpp"
27
+ #include "fatrop/auxiliary/Common.hpp"
28
+ #define SUMMATION_ALG kahan_sum
29
+ namespace fatrop
30
+ {
31
+ bool check_reg(const fatrop_int m, MAT *sA, const fatrop_int ai, const fatrop_int aj);
32
+ class OCPLSRiccati : public OCPLinearSolver
33
+ {
34
+ public:
35
+ OCPLSRiccati(const OCPDims &dims, const std::shared_ptr<FatropOptions> &options, const std::shared_ptr<FatropPrinter> &printer);
36
+ // solve a KKT system
37
+ fatrop_int solve_pd_sys(
38
+ OCPKKTMemory *OCP,
39
+ const double inertia_correction_w,
40
+ const double inertia_correction_c,
41
+ const FatropVecBF &ux,
42
+ const FatropVecBF &lam,
43
+ const FatropVecBF &delta_s,
44
+ const FatropVecBF &sigma_total,
45
+ const FatropVecBF &gradb_total) override;
46
+ // solve a KKT system
47
+ fatrop_int solve_pd_sys_degenerate(
48
+ OCPKKTMemory *OCP,
49
+ const double inertia_correction_w,
50
+ const double inertia_correction_c,
51
+ const FatropVecBF &ux,
52
+ const FatropVecBF &lam,
53
+ const FatropVecBF &delta_s,
54
+ const FatropVecBF &sigma_total,
55
+ const FatropVecBF &gradb_total);
56
+ // solve a KKT system
57
+ int
58
+ solve_pd_sys_normal(
59
+ OCPKKTMemory *OCP,
60
+ const double inertia_correction,
61
+ const FatropVecBF &ux,
62
+ const FatropVecBF &lam,
63
+ const FatropVecBF &delta_s,
64
+ const FatropVecBF &sigma_total,
65
+ const FatropVecBF &gradb_total);
66
+ fatrop_int get_rhs(
67
+ OCPKKTMemory *OCP,
68
+ const FatropVecBF &gradb_total,
69
+ const FatropVecBF &rhs_rq,
70
+ const FatropVecBF &rhs_b,
71
+ const FatropVecBF &rhs_g,
72
+ const FatropVecBF &rhs_g_ineq,
73
+ const FatropVecBF &rhs_gradb) override;
74
+ fatrop_int compute_pd_sys_times_vec(
75
+ OCPKKTMemory *OCP,
76
+ const double inertia_correction_w,
77
+ const double inertia_correction_c,
78
+ const FatropVecBF &ux,
79
+ const FatropVecBF &lam,
80
+ const FatropVecBF &delta_s,
81
+ const FatropVecBF &sigma_total,
82
+ const FatropVecBF &rhs_rq,
83
+ const FatropVecBF &rhs_b,
84
+ const FatropVecBF &rhs_g,
85
+ const FatropVecBF &rhs_g_ineq,
86
+ const FatropVecBF &rhs_gradb) override;
87
+ fatrop_int solve_rhs(
88
+ OCPKKTMemory *OCP,
89
+ const double inertia_correction_w,
90
+ const double inertia_correction_c,
91
+ const FatropVecBF &ux,
92
+ const FatropVecBF &lam,
93
+ const FatropVecBF &delta_s,
94
+ const FatropVecBF &sigma_total,
95
+ const FatropVecBF &rhs_rq,
96
+ const FatropVecBF &rhs_b,
97
+ const FatropVecBF &rhs_g,
98
+ const FatropVecBF &rhs_g_ineq,
99
+ const FatropVecBF &rhs_gradb) override;
100
+ fatrop_int solve_rhs_normal(
101
+ OCPKKTMemory *OCP,
102
+ const double inertia_correction_w,
103
+ const double inertia_correction_c,
104
+ const FatropVecBF &ux,
105
+ const FatropVecBF &lam,
106
+ const FatropVecBF &delta_s,
107
+ const FatropVecBF &sigma_total,
108
+ const FatropVecBF &rhs_rq,
109
+ const FatropVecBF &rhs_b,
110
+ const FatropVecBF &rhs_g,
111
+ const FatropVecBF &rhs_g_ineq,
112
+ const FatropVecBF &rhs_gradb) ;
113
+ fatrop_int solve_rhs_degenerate(
114
+ OCPKKTMemory *OCP,
115
+ const double inertia_correction_w,
116
+ const double inertia_correction_c,
117
+ const FatropVecBF &ux,
118
+ const FatropVecBF &lam,
119
+ const FatropVecBF &delta_s,
120
+ const FatropVecBF &sigma_total,
121
+ const FatropVecBF &rhs_rq,
122
+ const FatropVecBF &rhs_b,
123
+ const FatropVecBF &rhs_g,
124
+ const FatropVecBF &rhs_g_ineq,
125
+ const FatropVecBF &rhs_gradb);
126
+ FatropMemoryMatBF Ppt;
127
+ FatropMemoryMatBF Hh;
128
+ FatropMemoryMatBF AL;
129
+ FatropMemoryMatBF RSQrqt_tilde;
130
+ FatropMemoryMatBF Ggt_stripe;
131
+ FatropMemoryMatBF Ggt_tilde;
132
+ FatropMemoryMatBF GgLt;
133
+ FatropMemoryMatBF RSQrqt_hat;
134
+ FatropMemoryMatBF Llt;
135
+ FatropMemoryMatBF Llt_shift; // needed because feature not implemented yet
136
+ FatropMemoryMatBF GgIt_tilde;
137
+ FatropMemoryMatBF GgLIt;
138
+ FatropMemoryMatBF HhIt;
139
+ FatropMemoryMatBF PpIt_hat;
140
+ FatropMemoryMatBF LlIt;
141
+ FatropMemoryMatBF Ggt_ineq_temp;
142
+ FatropMemoryVecBF rhs_rq;
143
+ FatropMemoryVecBF rhs_b;
144
+ FatropMemoryVecBF rhs_g;
145
+ FatropMemoryVecBF rhs_g_ineq;
146
+ FatropMemoryVecBF rhs_gradb;
147
+ FatropMemoryVecBF rhs_rq2;
148
+ FatropMemoryVecBF rhs_b2;
149
+ FatropMemoryVecBF rhs_g2;
150
+ FatropMemoryVecBF rhs_g_ineq2;
151
+ FatropMemoryVecBF rhs_gradb2;
152
+ FatropMemoryVecBF ux_test;
153
+ FatropMemoryVecBF lam_test;
154
+ FatropMemoryVecBF delta_s_test;
155
+ FatropMemoryVecBF v_Ppt;
156
+ FatropMemoryVecBF v_Hh;
157
+ FatropMemoryVecBF v_AL;
158
+ FatropMemoryVecBF v_RSQrqt_tilde;
159
+ FatropMemoryVecBF v_Ggt_stripe;
160
+ FatropMemoryVecBF v_Ggt_tilde;
161
+ FatropMemoryVecBF v_GgLt;
162
+ FatropMemoryVecBF v_RSQrqt_hat;
163
+ FatropMemoryVecBF v_Llt;
164
+ FatropMemoryVecBF v_Llt_shift;
165
+ FatropMemoryVecBF v_GgIt_tilde;
166
+ FatropMemoryVecBF v_GgLIt;
167
+ FatropMemoryVecBF v_HhIt;
168
+ FatropMemoryVecBF v_PpIt_hat;
169
+ FatropMemoryVecBF v_LlIt;
170
+ FatropMemoryVecBF v_Ggt_ineq_temp;
171
+ MemoryPermMat Pl;
172
+ MemoryPermMat Pr;
173
+ MemoryPermMat PlI;
174
+ MemoryPermMat PrI;
175
+ FatropVector<fatrop_int> gamma;
176
+ FatropVector<fatrop_int> rho;
177
+ fatrop_int rankI = 0;
178
+ // struct LastUsed
179
+ // {
180
+ // fatrop_int rankI = 0;
181
+ // double inertia_correction_w = 0;
182
+ // double inertia_correction_c = 0;
183
+ // double kappa_d = 0;
184
+ // double mu = 0;
185
+ // } lastused_;
186
+ std::shared_ptr<FatropOptions> options_;
187
+ std::shared_ptr<FatropPrinter> printer_;
188
+ bool it_ref = true;
189
+ };
190
+ }; // namespace
191
+ #endif // OCPLSRICCATIINCLUDED
@@ -0,0 +1,66 @@
1
+ #ifndef OCPLSSCALER_HPP
2
+ #define OCPLSSCALER_HPP
3
+ #include "OCPLSRiccati.hpp"
4
+ #include <vector>
5
+ #include <algorithm>
6
+ namespace fatrop
7
+ {
8
+ class OCPLSScaler
9
+ {
10
+ public:
11
+ OCPLSScaler(const OCPDims &dims) : K_(dims.K), ng_(dims.ng), nu_(dims.nu), nx_(dims.nx), ng_tot_(dims.n_g_tot), scales_(ng_tot_){};
12
+ void scale_kkt(OCPKKTMemory &kkt)
13
+ {
14
+ MAT *Ggt_p = (MAT *)kkt.Ggt[0];
15
+ int offs = 0;
16
+ for (int k = 0; k < K_; k++)
17
+ {
18
+ for (int i = 0; i < ng_[k]; i++)
19
+ {
20
+ double scale = 1.0/(std::max)(inf_col(nu_[k] + nx_[k], Ggt_p + k, 0, i), 1e-8); // 1e-8 is a small number to avoid division by zero
21
+ if (scale > 1e-3 && scale < 1e3) scale = 1.0; // if the scale is not very small or large, we do not scale
22
+ if(scale != 1.0) COLSC(nu_[k] + nx_[k] + 1, scale, Ggt_p + k, 0, i);
23
+ VECEL((VEC*)scales_, offs) = scale;
24
+ offs++;
25
+ }
26
+ }
27
+ }
28
+ void scale_lam(const FatropVecBF &lam, const int ai)
29
+ {
30
+ VECMUL(ng_tot_, (VEC*)scales_, 0, (VEC*) lam, ai, (VEC*) lam, ai);
31
+ }
32
+ void restore_kkt(OCPKKTMemory &kkt)
33
+ {
34
+ MAT *Ggt_p = (MAT *)kkt.Ggt[0];
35
+ int offs = 0;
36
+ for (int k = 0; k < K_; k++)
37
+ {
38
+ for (int i = 0; i < ng_[k]; i++)
39
+ {
40
+ double scale = VECEL((VEC*)scales_, offs);
41
+ if (scale != 1.0) COLSC(nu_[k] + nx_[k] + 1, 1.0/scale, Ggt_p + k, 0, i);
42
+ offs++;
43
+ }
44
+ }
45
+ }
46
+
47
+ private:
48
+ static double inf_col(const int kmax, MAT *A, const int ai, const int aj)
49
+ {
50
+ double res = 0.0;
51
+ for (int i = 0; i < kmax; i++)
52
+ {
53
+ res = (std::max)(res, std::abs(MATEL(A, ai + i, aj)));
54
+ }
55
+ return res;
56
+ }
57
+ const int K_;
58
+ std::vector<int> ng_;
59
+ std::vector<int> nu_;
60
+ std::vector<int> nx_;
61
+ const int ng_tot_;
62
+ VECBF scales_;
63
+ };
64
+
65
+ } // namespace fatrop
66
+ #endif
@@ -0,0 +1,75 @@
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 NLPLSINCLUDED
20
+ #define NLPLSINCLUDED
21
+ #include "fatrop/blasfeo_wrapper/LinearAlgebraBlasfeo.hpp"
22
+ #include "OCPKKT.hpp"
23
+ #include "fatrop/auxiliary/Common.hpp"
24
+ namespace fatrop
25
+ {
26
+ class OCPLinearSolver
27
+ {
28
+ public:
29
+ virtual fatrop_int solve_pd_sys(
30
+ OCPKKTMemory *OCP,
31
+ const double inertia_correction_w,
32
+ const double inertia_correction_c,
33
+ const FatropVecBF &ux,
34
+ const FatropVecBF &lam,
35
+ const FatropVecBF &delta_s,
36
+ const FatropVecBF &sigma_total,
37
+ const FatropVecBF &gradb_total) = 0;
38
+ virtual fatrop_int compute_pd_sys_times_vec(
39
+ OCPKKTMemory *OCP,
40
+ const double inertia_correction_w,
41
+ const double inertia_correction_c,
42
+ const FatropVecBF &ux,
43
+ const FatropVecBF &lam,
44
+ const FatropVecBF &delta_s,
45
+ const FatropVecBF &sigma_total,
46
+ const FatropVecBF &rhs_rq,
47
+ const FatropVecBF &rhs_b,
48
+ const FatropVecBF &rhs_g,
49
+ const FatropVecBF &rhs_g_ineq,
50
+ const FatropVecBF &rhs_gradb_total) = 0;
51
+ virtual fatrop_int solve_rhs(
52
+ OCPKKTMemory *OCP,
53
+ const double inertia_correction_w,
54
+ const double inertia_correction_c,
55
+ const FatropVecBF &ux,
56
+ const FatropVecBF &lam,
57
+ const FatropVecBF &delta_s,
58
+ const FatropVecBF &sigma_total,
59
+ const FatropVecBF &rhs_rq,
60
+ const FatropVecBF &rhs_b,
61
+ const FatropVecBF &rhs_g,
62
+ const FatropVecBF &rhs_g_ineq,
63
+ const FatropVecBF &rhs_gradb_total) = 0;
64
+ virtual fatrop_int get_rhs(
65
+ OCPKKTMemory *OCP,
66
+ const FatropVecBF &gradb_total,
67
+ const FatropVecBF &rhs_rq,
68
+ const FatropVecBF &rhs_b,
69
+ const FatropVecBF &rhs_g,
70
+ const FatropVecBF &rhs_g_ineq,
71
+ const FatropVecBF &rhs_gradb) = 0;
72
+ };
73
+
74
+ } // namespace fatrop
75
+ #endif // NLPLSINCLUDED
@@ -0,0 +1,42 @@
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 NOSCALINGMETHODINCLUDED
20
+ #define NOSCALINGMETHODINCLUDED
21
+ #include "fatrop/solver/FatropData.hpp"
22
+ #include "fatrop/templates/NLPAlg.hpp"
23
+ #include "fatrop/solver/AlgStrategy.hpp"
24
+ #include "OCPScalingMethod.hpp"
25
+ #include "fatrop/blasfeo_wrapper/LinearAlgebraBlasfeo.hpp"
26
+ #include <memory>
27
+ #include "fatrop/auxiliary/Common.hpp"
28
+ namespace fatrop
29
+ {
30
+ class OCPNoScaling : public OCPScalingMethod
31
+ {
32
+ public:
33
+ OCPNoScaling(const std::shared_ptr<FatropOptions> &fatrop_params);
34
+ virtual fatrop_int compute_scalings(
35
+ OCPKKTMemory *OCP,
36
+ double &obj_scale,
37
+ FatropVecBF &x_scales,
38
+ FatropVecBF &lam_scales, const FatropVecBF &grad_curr);
39
+ };
40
+
41
+ } // namespace fatrop
42
+ #endif // !SCALINGMETHODINCLUDED
@@ -0,0 +1,42 @@
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 SCALINGMETHODINCLUDED
20
+ #define SCALINGMETHODINCLUDED
21
+ #include "fatrop/solver/FatropData.hpp"
22
+ #include "fatrop/templates/NLPAlg.hpp"
23
+ #include "fatrop/solver/AlgStrategy.hpp"
24
+ #include "fatrop/ocp/OCPKKT.hpp"
25
+ #include <memory>
26
+ #include "fatrop/auxiliary/Common.hpp"
27
+ namespace fatrop
28
+ {
29
+ class OCPScalingMethod : public AlgStrategy // this is an OCP strategy
30
+ {
31
+ public:
32
+ OCPScalingMethod(const std::shared_ptr<FatropOptions> &fatrop_params) : AlgStrategy(fatrop_params){};
33
+ virtual fatrop_int compute_scalings(
34
+ OCPKKTMemory *OCP,
35
+ double &obj_scale,
36
+ FatropVecBF &x_scales,
37
+ FatropVecBF &lam_scales,
38
+ const FatropVecBF &grad_curr) = 0;
39
+ };
40
+
41
+ } // namespace fatrop
42
+ #endif // !SCALINGMETHODINCLUDED