sleipnirgroup-jormungandr 0.6.7.dev94__tar.gz → 0.6.7.dev96__tar.gz

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.

Potentially problematic release.


This version of sleipnirgroup-jormungandr might be problematic. Click here for more details.

Files changed (132) hide show
  1. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/CMakeLists.txt +1 -1
  2. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/PKG-INFO +1 -1
  3. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/autodiff/expression.hpp +1 -1
  4. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/util/dense_kkt_solver.hpp +66 -15
  5. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/util/sparse_kkt_solver.hpp +65 -17
  6. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/src/sleipnir/__init__.py +1 -1
  7. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/LICENSE.txt +0 -0
  8. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/README.md +0 -0
  9. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/SleipnirConfig.cmake.in +0 -0
  10. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/cmake/BuildTypes.cmake +0 -0
  11. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/cmake/CompilerFlags.cmake +0 -0
  12. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/cmake/Pybind11Mkdoc.cmake +0 -0
  13. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/cmake/Pybind11MkdocPostprocess.cmake +0 -0
  14. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/cmake/SubdirList.cmake +0 -0
  15. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/cmake/arm-none-eabi.cmake +0 -0
  16. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/autodiff/expression_functions.hpp +0 -0
  17. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/autodiff/expression_graph.hpp +0 -0
  18. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/autodiff/expression_type.hpp +0 -0
  19. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/autodiff/gradient.hpp +0 -0
  20. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/autodiff/hessian.hpp +0 -0
  21. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/autodiff/jacobian.hpp +0 -0
  22. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/autodiff/sleipnir_base.hpp +0 -0
  23. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/autodiff/slice.hpp +0 -0
  24. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/autodiff/variable.hpp +0 -0
  25. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/autodiff/variable_block.hpp +0 -0
  26. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/autodiff/variable_matrix.hpp +0 -0
  27. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/multistart.hpp +0 -0
  28. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/ocp/dynamics_type.hpp +0 -0
  29. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/ocp/timestep_method.hpp +0 -0
  30. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/ocp/transcription_method.hpp +0 -0
  31. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/ocp.hpp +0 -0
  32. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/problem.hpp +0 -0
  33. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/exit_status.hpp +0 -0
  34. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/ipm.hpp +0 -0
  35. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/ipm_matrix_callbacks.hpp +0 -0
  36. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/iteration_info.hpp +0 -0
  37. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/newton.hpp +0 -0
  38. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/newton_matrix_callbacks.hpp +0 -0
  39. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/options.hpp +0 -0
  40. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/sqp.hpp +0 -0
  41. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/sqp_matrix_callbacks.hpp +0 -0
  42. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/util/all_finite.hpp +0 -0
  43. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/util/append_as_triplets.hpp +0 -0
  44. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/util/bounds.hpp +0 -0
  45. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/util/constraint_violation.hpp +0 -0
  46. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/util/feasibility_restoration.hpp +0 -0
  47. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/util/feasibility_restoration_cycle_detector.hpp +0 -0
  48. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/util/filter.hpp +0 -0
  49. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/util/fraction_to_the_boundary_rule.hpp +0 -0
  50. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/util/inertia.hpp +0 -0
  51. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/util/kkt_error.hpp +0 -0
  52. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/util/kkt_solver.hpp +0 -0
  53. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/util/problem_scaling.hpp +0 -0
  54. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/util/sparse_inf_norms.hpp +0 -0
  55. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/optimization/solver/util/time_trace.hpp +0 -0
  56. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/util/assert.hpp +0 -0
  57. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/util/concepts.hpp +0 -0
  58. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/util/empty.hpp +0 -0
  59. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/util/force_inline.hpp +0 -0
  60. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/util/function_ref.hpp +0 -0
  61. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/util/intrusive_shared_ptr.hpp +0 -0
  62. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/util/pool.hpp +0 -0
  63. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/util/print.hpp +0 -0
  64. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/util/print_diagnostics.hpp +0 -0
  65. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/util/scope_exit.hpp +0 -0
  66. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/util/spy.hpp +0 -0
  67. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/util/symbol_exports.hpp +0 -0
  68. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/include/sleipnir/util/time_tracer.hpp +0 -0
  69. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/pyproject.toml +0 -0
  70. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/arity.hpp +0 -0
  71. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/autodiff/bind_expression_type.cpp +0 -0
  72. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/autodiff/bind_gradient.cpp +0 -0
  73. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/autodiff/bind_hessian.cpp +0 -0
  74. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/autodiff/bind_jacobian.cpp +0 -0
  75. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/autodiff/bind_variable.cpp +0 -0
  76. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/autodiff/bind_variable_block.cpp +0 -0
  77. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/autodiff/bind_variable_matrix.cpp +0 -0
  78. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/binders.hpp +0 -0
  79. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/docstrings.hpp +0 -0
  80. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/for_each_type.hpp +0 -0
  81. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/main.cpp +0 -0
  82. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/optimization/bind_equality_constraints.cpp +0 -0
  83. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/optimization/bind_inequality_constraints.cpp +0 -0
  84. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/optimization/bind_ocp.cpp +0 -0
  85. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/optimization/bind_problem.cpp +0 -0
  86. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/optimization/ocp/bind_dynamics_type.cpp +0 -0
  87. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/optimization/ocp/bind_timestep_method.cpp +0 -0
  88. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/optimization/ocp/bind_transcription_method.cpp +0 -0
  89. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/optimization/solver/bind_exit_status.cpp +0 -0
  90. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/optimization/solver/bind_iteration_info.cpp +0 -0
  91. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/slice_tuple.hpp +0 -0
  92. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/text_wrap.hpp +0 -0
  93. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/cpp/try_cast.hpp +0 -0
  94. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/postprocess_stubs.py +0 -0
  95. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/src/sleipnir/autodiff/__init__.py +0 -0
  96. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/src/sleipnir/optimization/__init__.py +0 -0
  97. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/autodiff/gradient_test.py +0 -0
  98. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/autodiff/hessian_test.py +0 -0
  99. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/autodiff/jacobian_test.py +0 -0
  100. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/autodiff/variable_matrix_test.py +0 -0
  101. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/autodiff/variable_test.py +0 -0
  102. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/arm_on_elevator_problem_test.py +0 -0
  103. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/cart_pole_ocp_test.py +0 -0
  104. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/cart_pole_problem_test.py +0 -0
  105. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/cart_pole_util.py +0 -0
  106. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/constraints_test.py +0 -0
  107. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/decision_variable_test.py +0 -0
  108. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/differential_drive_ocp_test.py +0 -0
  109. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/differential_drive_problem_test.py +0 -0
  110. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/differential_drive_util.py +0 -0
  111. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/double_integrator_problem_test.py +0 -0
  112. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/flywheel_ocp_test.py +0 -0
  113. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/flywheel_problem_test.py +0 -0
  114. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/linear_problem_test.py +0 -0
  115. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/multistart_test.py +0 -0
  116. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/near.py +0 -0
  117. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/nonlinear_problem_test.py +0 -0
  118. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/problem_spy_test.py +0 -0
  119. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/quadratic_problem_test.py +0 -0
  120. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/rk4.py +0 -0
  121. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/solver/exit_status_test.py +0 -0
  122. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/python/test/optimization/trivial_problem_test.py +0 -0
  123. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/src/autodiff/gradient.cpp +0 -0
  124. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/src/autodiff/hessian.cpp +0 -0
  125. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/src/autodiff/jacobian.cpp +0 -0
  126. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/src/autodiff/variable_matrix.cpp +0 -0
  127. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/src/optimization/ocp.cpp +0 -0
  128. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/src/optimization/problem.cpp +0 -0
  129. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/src/optimization/solver/ipm.cpp +0 -0
  130. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/src/optimization/solver/newton.cpp +0 -0
  131. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/src/optimization/solver/sqp.cpp +0 -0
  132. {sleipnirgroup_jormungandr-0.6.7.dev94 → sleipnirgroup_jormungandr-0.6.7.dev96}/src/util/pool.cpp +0 -0
@@ -209,7 +209,7 @@ if(SLEIPNIR_BUILD_BENCHMARKS)
209
209
  endforeach()
210
210
 
211
211
  # Optimization benchmarks
212
- foreach(benchmark "cart_pole" "flywheel")
212
+ foreach(benchmark "cart_pole" "double_integrator" "flywheel")
213
213
  file(
214
214
  GLOB ${benchmark}_optimization_benchmark_src
215
215
  benchmarks/${benchmark}_optimization/*.cpp
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sleipnirgroup-jormungandr
3
- Version: 0.6.7.dev94
3
+ Version: 0.6.7.dev96
4
4
  Summary: Reverse mode autodiff library and NLP solver DSL
5
5
  License-Expression: BSD-3-Clause
6
6
  License-File: LICENSE.txt
@@ -179,7 +179,7 @@ struct Expression {
179
179
  ///
180
180
  /// @param constant The constant.
181
181
  /// @return True if the expression is the given constant.
182
- constexpr bool is_constant(Scalar constant) const {
182
+ SLEIPNIR_FORCE_INLINE constexpr bool is_constant(Scalar constant) const {
183
183
  return type() == ExpressionType::CONSTANT && val == constant;
184
184
  }
185
185
 
@@ -3,7 +3,6 @@
3
3
  #pragma once
4
4
 
5
5
  #include <algorithm>
6
- #include <limits>
7
6
 
8
7
  #include <Eigen/Cholesky>
9
8
  #include <Eigen/Core>
@@ -62,7 +61,8 @@ class DenseKKTSolver {
62
61
  // it's almost always rejected for small pivots. If the previous δ was
63
62
  // large, attempt δ = 0 so δ can drop to zero quickly.
64
63
  if (m_prev_δ == Scalar(0) || m_prev_δ > Scalar(1e-2)) {
65
- m_info = m_solver.compute(lhs).info();
64
+ m_lhs = lhs;
65
+ m_info = m_solver.compute(m_lhs).info();
66
66
 
67
67
  if (m_info == Eigen::Success) {
68
68
  auto D = m_solver.vectorD();
@@ -81,19 +81,28 @@ class DenseKKTSolver {
81
81
  // We'll give lhs the correct inertia by adding [δI, 0; 0, −γI] where δ and
82
82
  // γ regularize the Hessian and equality constraint Jacobian respectively.
83
83
 
84
+ // The minimum nonzero Hessian regularization
85
+ constexpr Scalar δ_min(1e-10);
86
+
87
+ // The maximum constraint regularization. Larger values distort the equality
88
+ // constraint Jacobian more than they help a rank-deficient one.
89
+ constexpr Scalar γ_max(1e-8);
90
+
84
91
  // If the previous δ was zero, attempt a small value. Otherwise, attempt a
85
- // smaller value than the previous δ so δ trends downward.
86
- Scalar δ = m_prev_δ == Scalar(0)
87
- ? Scalar(1e-4)
88
- : std::max(m_prev_δ / Scalar(2),
89
- std::numeric_limits<Scalar>::epsilon());
92
+ // smaller value than the previous δ so δ trends downward. δ has a floor
93
+ // because Hessian rows with no curvature (e.g., states in linear dynamics)
94
+ // have only δ on their diagonal, and pivots that small cause element growth
95
+ // that corrupts the inertia and solution.
96
+ Scalar δ = m_prev_δ == Scalar(0) ? Scalar(1e-4)
97
+ : std::max(m_prev_δ / Scalar(2), δ_min);
90
98
 
91
99
  // Start γ at the minimum to minimize equality constraint Jacobian
92
100
  // distortion.
93
101
  Scalar γ = m_γ_min;
94
102
 
95
103
  while (true) {
96
- m_info = m_solver.compute(lhs + regularization(δ, γ)).info();
104
+ m_lhs = lhs + regularization(δ, γ);
105
+ m_info = m_solver.compute(m_lhs).info();
97
106
 
98
107
  if (m_info == Eigen::Success) {
99
108
  Inertia inertia{m_solver.vectorD()};
@@ -112,22 +121,33 @@ class DenseKKTSolver {
112
121
  // If there's zero eigenvalues and γ > 0, increase δ and γ to drive
113
122
  // all eigenvalues away from zero
114
123
  δ *= Scalar(10);
115
- γ *= Scalar(10);
124
+ γ = std::min(γ * Scalar(10), γ_max);
116
125
  }
117
126
  } else if (inertia.negative > ideal_inertia.negative) {
118
127
  // If there's too many negative eigenvalues, increase δ to add more
119
128
  // positive eigenvalues
120
129
  δ *= Scalar(10);
121
130
  } else if (inertia.positive > ideal_inertia.positive) {
122
- // If there's too many positive eigenvalues, increase γ to add more
123
- // negative eigenvalues
124
- γ = γ == Scalar(0) ? Scalar(1e-10) : γ * Scalar(10);
131
+ // If there's too many positive eigenvalues and the smallest pivot is
132
+ // from the equality constraint Jacobian block, increase γ to add more
133
+ // negative eigenvalues.
134
+ //
135
+ // Otherwise, the smallest pivot is from the Hessian block, or γ is
136
+ // already large enough that increasing it further would distort the
137
+ // equality constraint Jacobian more than it helps. Increase δ to
138
+ // reduce element growth from Hessian pivots instead.
139
+ if (γ < γ_max && !smallest_pivot_is_hessian()) {
140
+ γ = γ == Scalar(0) ? Scalar(1e-10)
141
+ : std::min(γ * Scalar(10), γ_max);
142
+ } else {
143
+ δ *= Scalar(10);
144
+ }
125
145
  }
126
146
  } else {
127
147
  // If the decomposition failed, increase δ and γ to drive all
128
148
  // eigenvalues away from zero
129
149
  δ *= Scalar(10);
130
- γ = γ == Scalar(0) ? Scalar(1e-10) : γ * Scalar(10);
150
+ γ = γ == Scalar(0) ? Scalar(1e-10) : std::min(γ * Scalar(10), γ_max);
131
151
  }
132
152
 
133
153
  // If the lhs perturbation is too high, report failure. This can be caused
@@ -147,7 +167,21 @@ class DenseKKTSolver {
147
167
  /// @return The solution.
148
168
  template <typename Rhs>
149
169
  DenseVector solve(const Eigen::MatrixBase<Rhs>& rhs) const {
150
- return m_solver.solve(rhs);
170
+ DenseVector x = m_solver.solve(rhs);
171
+
172
+ // Element growth in the factorization can make the solution inaccurate
173
+ // (e.g., from small Hessian pivots in rows with no curvature), so apply
174
+ // iterative refinement with the same factorization
175
+ constexpr int max_refinement_steps = 3;
176
+ for (int i = 0; i < max_refinement_steps; ++i) {
177
+ DenseVector r = rhs - m_lhs.template selfadjointView<Eigen::Lower>() * x;
178
+ if (r.norm() <= Scalar(1e-12) * rhs.norm()) {
179
+ break;
180
+ }
181
+ x += m_solver.solve(r);
182
+ }
183
+
184
+ return x;
151
185
  }
152
186
 
153
187
  /// Solves the system of equations.
@@ -156,7 +190,7 @@ class DenseKKTSolver {
156
190
  /// @return The solution.
157
191
  template <typename Rhs>
158
192
  DenseVector solve(const Eigen::SparseMatrixBase<Rhs>& rhs) const {
159
- return m_solver.solve(rhs.toDense());
193
+ return solve(rhs.toDense());
160
194
  }
161
195
 
162
196
  /// Returns the Hessian regularization factor.
@@ -174,6 +208,9 @@ class DenseKKTSolver {
174
208
 
175
209
  Solver m_solver;
176
210
 
211
+ /// The most recently factorized KKT matrix's lower triangle.
212
+ DenseMatrix m_lhs;
213
+
177
214
  Eigen::ComputationInfo m_info = Eigen::Success;
178
215
 
179
216
  /// The number of decision variables in the system.
@@ -195,6 +232,20 @@ class DenseKKTSolver {
195
232
  /// The value of γ from the previous run of compute().
196
233
  Scalar m_prev_γ{0};
197
234
 
235
+ /// Returns true if the smallest-magnitude pivot of the most recent
236
+ /// factorization corresponds to a row of the Hessian block.
237
+ ///
238
+ /// @return True if the smallest pivot is from the Hessian block.
239
+ bool smallest_pivot_is_hessian() const {
240
+ Eigen::Index k;
241
+ m_solver.vectorD().cwiseAbs().minCoeff(&k);
242
+
243
+ // The factorization is of PAPᵀ, so the original row of pivot k is Pᵀk
244
+ Eigen::PermutationMatrix<Eigen::Dynamic> P{m_solver.transpositionsP()};
245
+ Eigen::PermutationMatrix<Eigen::Dynamic> P_inv = P.inverse();
246
+ return P_inv.indices()(k) < m_num_decision_variables;
247
+ }
248
+
198
249
  /// Returns regularization matrix.
199
250
  ///
200
251
  /// [δI 0]
@@ -3,7 +3,6 @@
3
3
  #pragma once
4
4
 
5
5
  #include <algorithm>
6
- #include <limits>
7
6
 
8
7
  #include <Eigen/Core>
9
8
  #include <Eigen/SparseCholesky>
@@ -64,10 +63,10 @@ class SparseKKTSolver {
64
63
  SparseKKTSolver& compute(const SparseMatrix& lhs) {
65
64
  // Regularization with zeros ensures the pattern analysis in the sparse
66
65
  // solver is reused by all factorizations
67
- SparseMatrix unregularized_lhs = lhs + regularization(Scalar(0), Scalar(0));
66
+ m_lhs = lhs + regularization(Scalar(0), Scalar(0));
68
67
 
69
68
  if (!m_analyzed_pattern) {
70
- m_solver.analyzePattern(unregularized_lhs);
69
+ m_solver.analyzePattern(m_lhs);
71
70
  m_analyzed_pattern = true;
72
71
  }
73
72
 
@@ -75,7 +74,7 @@ class SparseKKTSolver {
75
74
  // it's almost always rejected for small pivots. If the previous δ was
76
75
  // large, attempt δ = 0 so δ can drop to zero quickly.
77
76
  if (m_prev_δ == Scalar(0) || m_prev_δ > Scalar(1e-2)) {
78
- m_solver.factorize(unregularized_lhs);
77
+ m_solver.factorize(m_lhs);
79
78
  m_info = m_solver.info();
80
79
 
81
80
  if (m_info == Eigen::Success) {
@@ -95,19 +94,28 @@ class SparseKKTSolver {
95
94
  // We'll give lhs the correct inertia by adding [δI, 0; 0, −γI] where δ and
96
95
  // γ regularize the Hessian and equality constraint Jacobian respectively.
97
96
 
97
+ // The minimum nonzero Hessian regularization
98
+ constexpr Scalar δ_min(1e-10);
99
+
100
+ // The maximum constraint regularization. Larger values distort the equality
101
+ // constraint Jacobian more than they help a rank-deficient one.
102
+ constexpr Scalar γ_max(1e-8);
103
+
98
104
  // If the previous δ was zero, attempt a small value. Otherwise, attempt a
99
- // smaller value than the previous δ so δ trends downward.
100
- Scalar δ = m_prev_δ == Scalar(0)
101
- ? Scalar(1e-4)
102
- : std::max(m_prev_δ / Scalar(2),
103
- std::numeric_limits<Scalar>::epsilon());
105
+ // smaller value than the previous δ so δ trends downward. δ has a floor
106
+ // because Hessian rows with no curvature (e.g., states in linear dynamics)
107
+ // have only δ on their diagonal, and pivots that small cause element growth
108
+ // that corrupts the inertia and solution.
109
+ Scalar δ = m_prev_δ == Scalar(0) ? Scalar(1e-4)
110
+ : std::max(m_prev_δ / Scalar(2), δ_min);
104
111
 
105
112
  // Start γ at the minimum to minimize equality constraint Jacobian
106
113
  // distortion.
107
114
  Scalar γ = m_γ_min;
108
115
 
109
116
  while (true) {
110
- m_solver.factorize(lhs + regularization(δ, γ));
117
+ m_lhs = lhs + regularization(δ, γ);
118
+ m_solver.factorize(m_lhs);
111
119
  m_info = m_solver.info();
112
120
 
113
121
  if (m_info == Eigen::Success) {
@@ -127,22 +135,33 @@ class SparseKKTSolver {
127
135
  // If there's zero eigenvalues and γ > 0, increase δ and γ to drive
128
136
  // all eigenvalues away from zero
129
137
  δ *= Scalar(10);
130
- γ *= Scalar(10);
138
+ γ = std::min(γ * Scalar(10), γ_max);
131
139
  }
132
140
  } else if (inertia.negative > ideal_inertia.negative) {
133
141
  // If there's too many negative eigenvalues, increase δ to add more
134
142
  // positive eigenvalues
135
143
  δ *= Scalar(10);
136
144
  } else if (inertia.positive > ideal_inertia.positive) {
137
- // If there's too many positive eigenvalues, increase γ to add more
138
- // negative eigenvalues
139
- γ = γ == Scalar(0) ? Scalar(1e-10) : γ * Scalar(10);
145
+ // If there's too many positive eigenvalues and the smallest pivot is
146
+ // from the equality constraint Jacobian block, increase γ to add more
147
+ // negative eigenvalues.
148
+ //
149
+ // Otherwise, the smallest pivot is from the Hessian block, or γ is
150
+ // already large enough that increasing it further would distort the
151
+ // equality constraint Jacobian more than it helps. Increase δ to
152
+ // reduce element growth from Hessian pivots instead.
153
+ if (γ < γ_max && !smallest_pivot_is_hessian()) {
154
+ γ = γ == Scalar(0) ? Scalar(1e-10)
155
+ : std::min(γ * Scalar(10), γ_max);
156
+ } else {
157
+ δ *= Scalar(10);
158
+ }
140
159
  }
141
160
  } else {
142
161
  // If the decomposition failed, increase δ and γ to drive all
143
162
  // eigenvalues away from zero
144
163
  δ *= Scalar(10);
145
- γ = γ == Scalar(0) ? Scalar(1e-10) : γ * Scalar(10);
164
+ γ = γ == Scalar(0) ? Scalar(1e-10) : std::min(γ * Scalar(10), γ_max);
146
165
  }
147
166
 
148
167
  // If the lhs perturbation is too high, report failure. This can be caused
@@ -162,7 +181,21 @@ class SparseKKTSolver {
162
181
  /// @return The solution.
163
182
  template <typename Rhs>
164
183
  DenseVector solve(const Eigen::MatrixBase<Rhs>& rhs) const {
165
- return m_solver.solve(rhs);
184
+ DenseVector x = m_solver.solve(rhs);
185
+
186
+ // Element growth in the factorization can make the solution inaccurate
187
+ // (e.g., from small Hessian pivots in rows with no curvature), so apply
188
+ // iterative refinement with the same factorization
189
+ constexpr int max_refinement_steps = 3;
190
+ for (int i = 0; i < max_refinement_steps; ++i) {
191
+ DenseVector r = rhs - m_lhs.template selfadjointView<Eigen::Lower>() * x;
192
+ if (r.norm() <= Scalar(1e-12) * rhs.norm()) {
193
+ break;
194
+ }
195
+ x += m_solver.solve(r);
196
+ }
197
+
198
+ return x;
166
199
  }
167
200
 
168
201
  /// Solves the system of equations.
@@ -171,7 +204,7 @@ class SparseKKTSolver {
171
204
  /// @return The solution.
172
205
  template <typename Rhs>
173
206
  DenseVector solve(const Eigen::SparseMatrixBase<Rhs>& rhs) const {
174
- return m_solver.solve(rhs);
207
+ return solve(rhs.toDense());
175
208
  }
176
209
 
177
210
  /// Returns the Hessian regularization factor.
@@ -190,6 +223,9 @@ class SparseKKTSolver {
190
223
  Solver m_solver;
191
224
  bool m_analyzed_pattern = false;
192
225
 
226
+ /// The most recently factorized KKT matrix's lower triangle.
227
+ SparseMatrix m_lhs;
228
+
193
229
  Eigen::ComputationInfo m_info = Eigen::Success;
194
230
 
195
231
  /// The number of decision variables in the system.
@@ -211,6 +247,18 @@ class SparseKKTSolver {
211
247
  /// The value of γ from the previous run of compute().
212
248
  Scalar m_prev_γ{0};
213
249
 
250
+ /// Returns true if the smallest-magnitude pivot of the most recent
251
+ /// factorization corresponds to a row of the Hessian block.
252
+ ///
253
+ /// @return True if the smallest pivot is from the Hessian block.
254
+ bool smallest_pivot_is_hessian() const {
255
+ Eigen::Index k;
256
+ m_solver.vectorD().cwiseAbs().minCoeff(&k);
257
+
258
+ // The factorization is of PAP⁻¹, so the original row of pivot k is P⁻¹k
259
+ return m_solver.permutationPinv().indices()(k) < m_num_decision_variables;
260
+ }
261
+
214
262
  /// Returns regularization matrix.
215
263
  ///
216
264
  /// [δI 0]
@@ -2,4 +2,4 @@
2
2
 
3
3
  from ._sleipnir import *
4
4
 
5
- __version__ = "0.6.7.dev94"
5
+ __version__ = "0.6.7.dev96"