sleipnirgroup-jormungandr 0.6.7.dev121__tar.gz → 0.6.7.dev123__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 (134) hide show
  1. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/PKG-INFO +1 -1
  2. sleipnirgroup_jormungandr-0.6.7.dev123/include/sleipnir/optimization/solver/util/kkt_ordering.hpp +215 -0
  3. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/util/sparse_kkt_solver.hpp +18 -7
  4. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/src/sleipnir/__init__.py +1 -1
  5. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/CMakeLists.txt +0 -0
  6. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/LICENSE.txt +0 -0
  7. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/README.md +0 -0
  8. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/SleipnirConfig.cmake.in +0 -0
  9. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/cmake/BuildTypes.cmake +0 -0
  10. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/cmake/CompilerFlags.cmake +0 -0
  11. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/cmake/Pybind11Mkdoc.cmake +0 -0
  12. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/cmake/Pybind11MkdocPostprocess.cmake +0 -0
  13. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/cmake/SubdirList.cmake +0 -0
  14. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/cmake/aarch64-linux-gnu.cmake +0 -0
  15. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/cmake/arm-none-eabi.cmake +0 -0
  16. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/autodiff/expression.hpp +0 -0
  17. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/autodiff/expression_functions.hpp +0 -0
  18. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/autodiff/expression_graph.hpp +0 -0
  19. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/autodiff/expression_type.hpp +0 -0
  20. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/autodiff/gradient.hpp +0 -0
  21. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/autodiff/hessian.hpp +0 -0
  22. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/autodiff/jacobian.hpp +0 -0
  23. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/autodiff/sleipnir_base.hpp +0 -0
  24. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/autodiff/slice.hpp +0 -0
  25. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/autodiff/variable.hpp +0 -0
  26. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/autodiff/variable_block.hpp +0 -0
  27. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/autodiff/variable_matrix.hpp +0 -0
  28. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/multistart.hpp +0 -0
  29. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/ocp/dynamics_type.hpp +0 -0
  30. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/ocp/timestep_method.hpp +0 -0
  31. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/ocp/transcription_method.hpp +0 -0
  32. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/ocp.hpp +0 -0
  33. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/problem.hpp +0 -0
  34. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/exit_status.hpp +0 -0
  35. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/ipm.hpp +0 -0
  36. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/ipm_matrix_callbacks.hpp +0 -0
  37. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/iteration_info.hpp +0 -0
  38. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/newton.hpp +0 -0
  39. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/newton_matrix_callbacks.hpp +0 -0
  40. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/options.hpp +0 -0
  41. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/sqp.hpp +0 -0
  42. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/sqp_matrix_callbacks.hpp +0 -0
  43. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/util/all_finite.hpp +0 -0
  44. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/util/append_as_triplets.hpp +0 -0
  45. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/util/bounds.hpp +0 -0
  46. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/util/constraint_violation.hpp +0 -0
  47. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/util/dense_kkt_solver.hpp +0 -0
  48. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/util/feasibility_restoration.hpp +0 -0
  49. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/util/feasibility_restoration_cycle_detector.hpp +0 -0
  50. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/util/filter.hpp +0 -0
  51. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/util/fraction_to_the_boundary_rule.hpp +0 -0
  52. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/util/inertia.hpp +0 -0
  53. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/util/kkt_error.hpp +0 -0
  54. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/util/kkt_solver.hpp +0 -0
  55. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/util/problem_scaling.hpp +0 -0
  56. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/util/sparse_inf_norms.hpp +0 -0
  57. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/optimization/solver/util/time_trace.hpp +0 -0
  58. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/util/assert.hpp +0 -0
  59. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/util/concepts.hpp +0 -0
  60. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/util/empty.hpp +0 -0
  61. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/util/force_inline.hpp +0 -0
  62. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/util/function_ref.hpp +0 -0
  63. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/util/intrusive_shared_ptr.hpp +0 -0
  64. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/util/pool.hpp +0 -0
  65. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/util/print.hpp +0 -0
  66. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/util/print_diagnostics.hpp +0 -0
  67. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/util/scope_exit.hpp +0 -0
  68. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/util/spy.hpp +0 -0
  69. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/util/symbol_exports.hpp +0 -0
  70. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/include/sleipnir/util/time_tracer.hpp +0 -0
  71. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/pyproject.toml +0 -0
  72. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/arity.hpp +0 -0
  73. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/autodiff/bind_expression_type.cpp +0 -0
  74. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/autodiff/bind_gradient.cpp +0 -0
  75. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/autodiff/bind_hessian.cpp +0 -0
  76. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/autodiff/bind_jacobian.cpp +0 -0
  77. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/autodiff/bind_variable.cpp +0 -0
  78. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/autodiff/bind_variable_block.cpp +0 -0
  79. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/autodiff/bind_variable_matrix.cpp +0 -0
  80. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/binders.hpp +0 -0
  81. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/docstrings.hpp +0 -0
  82. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/for_each_type.hpp +0 -0
  83. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/main.cpp +0 -0
  84. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/optimization/bind_equality_constraints.cpp +0 -0
  85. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/optimization/bind_inequality_constraints.cpp +0 -0
  86. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/optimization/bind_ocp.cpp +0 -0
  87. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/optimization/bind_problem.cpp +0 -0
  88. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/optimization/ocp/bind_dynamics_type.cpp +0 -0
  89. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/optimization/ocp/bind_timestep_method.cpp +0 -0
  90. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/optimization/ocp/bind_transcription_method.cpp +0 -0
  91. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/optimization/solver/bind_exit_status.cpp +0 -0
  92. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/optimization/solver/bind_iteration_info.cpp +0 -0
  93. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/slice_tuple.hpp +0 -0
  94. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/text_wrap.hpp +0 -0
  95. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/cpp/try_cast.hpp +0 -0
  96. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/postprocess_stubs.py +0 -0
  97. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/src/sleipnir/autodiff/__init__.py +0 -0
  98. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/src/sleipnir/optimization/__init__.py +0 -0
  99. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/autodiff/gradient_test.py +0 -0
  100. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/autodiff/hessian_test.py +0 -0
  101. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/autodiff/jacobian_test.py +0 -0
  102. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/autodiff/variable_matrix_test.py +0 -0
  103. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/autodiff/variable_test.py +0 -0
  104. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/arm_on_elevator_problem_test.py +0 -0
  105. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/cart_pole_ocp_test.py +0 -0
  106. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/cart_pole_problem_test.py +0 -0
  107. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/cart_pole_util.py +0 -0
  108. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/constraints_test.py +0 -0
  109. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/decision_variable_test.py +0 -0
  110. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/differential_drive_ocp_test.py +0 -0
  111. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/differential_drive_problem_test.py +0 -0
  112. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/differential_drive_util.py +0 -0
  113. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/double_integrator_problem_test.py +0 -0
  114. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/flywheel_ocp_test.py +0 -0
  115. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/flywheel_problem_test.py +0 -0
  116. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/flywheel_util.py +0 -0
  117. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/linear_problem_test.py +0 -0
  118. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/multistart_test.py +0 -0
  119. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/nonlinear_problem_test.py +0 -0
  120. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/problem_spy_test.py +0 -0
  121. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/quadratic_problem_test.py +0 -0
  122. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/rk4.py +0 -0
  123. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/solver/exit_status_test.py +0 -0
  124. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/python/test/optimization/trivial_problem_test.py +0 -0
  125. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/src/autodiff/gradient.cpp +0 -0
  126. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/src/autodiff/hessian.cpp +0 -0
  127. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/src/autodiff/jacobian.cpp +0 -0
  128. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/src/autodiff/variable_matrix.cpp +0 -0
  129. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/src/optimization/ocp.cpp +0 -0
  130. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/src/optimization/problem.cpp +0 -0
  131. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/src/optimization/solver/ipm.cpp +0 -0
  132. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/src/optimization/solver/newton.cpp +0 -0
  133. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/src/optimization/solver/sqp.cpp +0 -0
  134. {sleipnirgroup_jormungandr-0.6.7.dev121 → sleipnirgroup_jormungandr-0.6.7.dev123}/src/util/pool.cpp +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sleipnirgroup-jormungandr
3
- Version: 0.6.7.dev121
3
+ Version: 0.6.7.dev123
4
4
  Summary: Reverse mode autodiff library and NLP solver DSL
5
5
  License-Expression: BSD-3-Clause
6
6
  License-File: LICENSE.txt
@@ -0,0 +1,215 @@
1
+ // Copyright (c) Sleipnir contributors
2
+
3
+ #pragma once
4
+
5
+ #include <algorithm>
6
+ #include <cstddef>
7
+
8
+ #include <Eigen/Core>
9
+ #include <Eigen/OrderingMethods>
10
+ #include <Eigen/SparseCore>
11
+ #include <gch/small_vector.hpp>
12
+
13
+ namespace slp {
14
+
15
+ /// Fill-reducing ordering of a KKT matrix
16
+ ///
17
+ /// [H Aₑᵀ]
18
+ /// [Aₑ −γI]
19
+ ///
20
+ /// for LDLT factorization without pivoting.
21
+ ///
22
+ /// The ordering is AMD's, except each equality constraint row is eliminated
23
+ /// after at least one of the decision variables it involves. Otherwise, a
24
+ /// constraint row eliminated first has a pivot of exactly −γ, and the decision
25
+ /// variables it involves pick up terms of order 1/γ. That element growth ruins
26
+ /// the factorization's accuracy unless γ is too large for accurate steps, which
27
+ /// matters most with low precision Scalar types.
28
+ ///
29
+ /// Eigen's ordering methods only see the matrix, and the sparsity pattern
30
+ /// doesn't say which rows are constraints, so this computes the permutation
31
+ /// itself and permutes the matrix for a solver that uses it as given.
32
+ ///
33
+ /// @tparam Scalar Scalar type.
34
+ template <typename Scalar>
35
+ class KKTOrdering {
36
+ public:
37
+ /// Type alias for sparse matrix.
38
+ using SparseMatrix = Eigen::SparseMatrix<Scalar>;
39
+ /// Type alias for sparse matrix storage index.
40
+ using StorageIndex = typename SparseMatrix::StorageIndex;
41
+ /// Type alias for permutation matrix.
42
+ using Permutation =
43
+ Eigen::PermutationMatrix<Eigen::Dynamic, Eigen::Dynamic, StorageIndex>;
44
+
45
+ /// Computes the ordering of a KKT matrix.
46
+ ///
47
+ /// @param lhs The KKT matrix's lower triangle. It must be compressed.
48
+ /// @param num_decision_variables The number of decision variables, which
49
+ /// come before the equality constraints in the KKT matrix's rows.
50
+ void analyze(const SparseMatrix& lhs, int num_decision_variables) {
51
+ compute_ordering(lhs, num_decision_variables);
52
+ compute_permuted_pattern(lhs);
53
+ }
54
+
55
+ /// Returns the upper triangle of P lhs Pᵀ, where P is the permutation.
56
+ ///
57
+ /// @param lhs The KKT matrix's lower triangle. It must be compressed and have
58
+ /// the sparsity pattern of the matrix given to analyze().
59
+ /// @return The upper triangle of P lhs Pᵀ.
60
+ const SparseMatrix& permute(const SparseMatrix& lhs) {
61
+ for (size_t k = 0; k < m_permuted_value_indices.size(); ++k) {
62
+ m_permuted_lhs.valuePtr()[m_permuted_value_indices[k]] =
63
+ lhs.valuePtr()[k];
64
+ }
65
+
66
+ return m_permuted_lhs;
67
+ }
68
+
69
+ /// Returns the permutation P. Row i of the KKT matrix is row P(i) of the
70
+ /// permuted matrix.
71
+ ///
72
+ /// @return The permutation P.
73
+ const Permutation& permutation() const { return m_P; }
74
+
75
+ /// Returns the inverse permutation P⁻¹. Row i of the permuted matrix is row
76
+ /// P⁻¹(i) of the KKT matrix, so P⁻¹ lists the KKT matrix's rows in
77
+ /// elimination order.
78
+ ///
79
+ /// @return The inverse permutation P⁻¹.
80
+ const Permutation& inverse_permutation() const { return m_P_inv; }
81
+
82
+ private:
83
+ /// The upper triangle of the most recently permuted KKT matrix.
84
+ SparseMatrix m_permuted_lhs;
85
+
86
+ /// The index in m_permuted_lhs's values of each of the KKT matrix's values.
87
+ gch::small_vector<StorageIndex> m_permuted_value_indices;
88
+
89
+ /// The permutation P.
90
+ Permutation m_P;
91
+
92
+ /// The inverse permutation P⁻¹.
93
+ Permutation m_P_inv;
94
+
95
+ /// Computes the permutation.
96
+ ///
97
+ /// @param lhs The KKT matrix's lower triangle.
98
+ /// @param num_decision_variables The number of decision variables.
99
+ void compute_ordering(const SparseMatrix& lhs, int num_decision_variables) {
100
+ Eigen::AMDOrdering<StorageIndex>{}(
101
+ lhs.template selfadjointView<Eigen::Lower>(), m_P_inv);
102
+
103
+ // In the lower triangle, a decision variable's column holds the constraint
104
+ // rows that involve it
105
+ const int num_rows = lhs.rows();
106
+ gch::small_vector<int> num_variables(num_rows, 0);
107
+ for (int col = 0; col < num_decision_variables; ++col) {
108
+ for (typename SparseMatrix::InnerIterator it{lhs, col}; it; ++it) {
109
+ if (it.row() >= num_decision_variables) {
110
+ ++num_variables[it.row()];
111
+ }
112
+ }
113
+ }
114
+
115
+ // Whether each constraint row involves a placed decision variable
116
+ gch::small_vector<bool> has_placed_variable(num_rows, false);
117
+ gch::small_vector<bool> deferred(num_rows, false);
118
+ gch::small_vector<bool> placed(num_rows, false);
119
+ gch::small_vector<StorageIndex> order;
120
+ order.reserve(num_rows);
121
+
122
+ auto place = [&](int row) {
123
+ placed[row] = true;
124
+ order.emplace_back(row);
125
+ if (row >= num_decision_variables) {
126
+ return;
127
+ }
128
+
129
+ // Place the deferred constraint rows that were waiting on this decision
130
+ // variable
131
+ for (typename SparseMatrix::InnerIterator it{lhs, row}; it; ++it) {
132
+ int constraint_row = it.row();
133
+ if (constraint_row < num_decision_variables) {
134
+ continue;
135
+ }
136
+ has_placed_variable[constraint_row] = true;
137
+ if (deferred[constraint_row] && !placed[constraint_row]) {
138
+ placed[constraint_row] = true;
139
+ order.emplace_back(constraint_row);
140
+ }
141
+ }
142
+ };
143
+
144
+ for (int i = 0; i < num_rows; ++i) {
145
+ int row = m_P_inv.indices()(i);
146
+ if (placed[row]) {
147
+ continue;
148
+ }
149
+
150
+ if (row >= num_decision_variables && !has_placed_variable[row] &&
151
+ num_variables[row] > 0) {
152
+ deferred[row] = true;
153
+ } else {
154
+ place(row);
155
+ }
156
+ }
157
+
158
+ for (int i = 0; i < num_rows; ++i) {
159
+ m_P_inv.indices()(i) = order[i];
160
+ }
161
+ m_P = m_P_inv.inverse();
162
+ }
163
+
164
+ /// Computes the sparsity pattern of the permuted matrix and where each of the
165
+ /// KKT matrix's values goes in it.
166
+ ///
167
+ /// All KKT matrices share a sparsity pattern, so permuting one only has to
168
+ /// copy values instead of rebuilding the whole matrix.
169
+ ///
170
+ /// @param lhs The KKT matrix's lower triangle.
171
+ void compute_permuted_pattern(const SparseMatrix& lhs) {
172
+ // Entry (row, col) of the lower triangle moves to (P(row), P(col)), which
173
+ // the upper triangle stores in column max(P(row), P(col)) at row
174
+ // min(P(row), P(col))
175
+ auto permuted_col = [&](StorageIndex row, StorageIndex col) {
176
+ return std::max(m_P.indices()(row), m_P.indices()(col));
177
+ };
178
+ auto permuted_row = [&](StorageIndex row, StorageIndex col) {
179
+ return std::min(m_P.indices()(row), m_P.indices()(col));
180
+ };
181
+
182
+ const int num_rows = lhs.rows();
183
+ m_permuted_lhs.resize(num_rows, num_rows);
184
+ m_permuted_lhs.resizeNonZeros(lhs.nonZeros());
185
+
186
+ // Count each permuted column's entries, then turn the counts into column
187
+ // start offsets
188
+ StorageIndex* outer = m_permuted_lhs.outerIndexPtr();
189
+ std::fill(outer, outer + num_rows + 1, StorageIndex{0});
190
+ for (int col = 0; col < num_rows; ++col) {
191
+ for (typename SparseMatrix::InnerIterator it{lhs, col}; it; ++it) {
192
+ ++outer[permuted_col(it.row(), col) + 1];
193
+ }
194
+ }
195
+ for (int col = 0; col < num_rows; ++col) {
196
+ outer[col + 1] += outer[col];
197
+ }
198
+
199
+ // Assign each entry the next free slot in its permuted column. lhs is
200
+ // compressed, so iterating over its columns visits its values in storage
201
+ // order.
202
+ gch::small_vector<StorageIndex> next(outer, outer + num_rows);
203
+ m_permuted_value_indices.clear();
204
+ m_permuted_value_indices.reserve(lhs.nonZeros());
205
+ for (int col = 0; col < num_rows; ++col) {
206
+ for (typename SparseMatrix::InnerIterator it{lhs, col}; it; ++it) {
207
+ StorageIndex k = next[permuted_col(it.row(), col)]++;
208
+ m_permuted_lhs.innerIndexPtr()[k] = permuted_row(it.row(), col);
209
+ m_permuted_value_indices.emplace_back(k);
210
+ }
211
+ }
212
+ }
213
+ };
214
+
215
+ } // namespace slp
@@ -10,6 +10,7 @@
10
10
  #include <Eigen/SparseCore>
11
11
 
12
12
  #include "sleipnir/optimization/solver/util/inertia.hpp"
13
+ #include "sleipnir/optimization/solver/util/kkt_ordering.hpp"
13
14
 
14
15
  namespace slp {
15
16
 
@@ -67,7 +68,8 @@ class SparseKKTSolver {
67
68
  m_lhs = lhs + regularization(Scalar(0), Scalar(0));
68
69
 
69
70
  if (!m_analyzed_pattern) {
70
- m_solver.analyzePattern(m_lhs);
71
+ m_ordering.analyze(m_lhs, m_num_decision_variables);
72
+ m_solver.analyzePattern(m_ordering.permute(m_lhs));
71
73
  m_analyzed_pattern = true;
72
74
  }
73
75
 
@@ -75,7 +77,7 @@ class SparseKKTSolver {
75
77
  // it's almost always rejected for small pivots. If the previous δ was
76
78
  // large, attempt δ = 0 so δ can drop to zero quickly.
77
79
  if (m_prev_δ == Scalar(0) || m_prev_δ > Scalar(1e-2)) {
78
- m_solver.factorize(m_lhs);
80
+ m_solver.factorize(m_ordering.permute(m_lhs));
79
81
  m_info = m_solver.info();
80
82
 
81
83
  if (m_info == Eigen::Success) {
@@ -117,7 +119,7 @@ class SparseKKTSolver {
117
119
 
118
120
  while (true) {
119
121
  m_lhs = lhs + regularization(δ, γ);
120
- m_solver.factorize(m_lhs);
122
+ m_solver.factorize(m_ordering.permute(m_lhs));
121
123
  m_info = m_solver.info();
122
124
 
123
125
  if (m_info == Eigen::Success) {
@@ -182,7 +184,8 @@ class SparseKKTSolver {
182
184
  /// @return The solution.
183
185
  template <typename Rhs>
184
186
  DenseVector solve(const Eigen::MatrixBase<Rhs>& rhs) const {
185
- DenseVector x = m_solver.solve(rhs);
187
+ DenseVector x = m_ordering.inverse_permutation() *
188
+ m_solver.solve(m_ordering.permutation() * rhs);
186
189
 
187
190
  // Element growth in the factorization can make the solution inaccurate
188
191
  // (e.g., from small Hessian pivots in rows with no curvature), so apply
@@ -193,7 +196,8 @@ class SparseKKTSolver {
193
196
  if (r.norm() <= Scalar(1e-12) * rhs.norm()) {
194
197
  break;
195
198
  }
196
- x += m_solver.solve(r);
199
+ x += m_ordering.inverse_permutation() *
200
+ m_solver.solve(m_ordering.permutation() * r);
197
201
  }
198
202
 
199
203
  return x;
@@ -219,9 +223,15 @@ class SparseKKTSolver {
219
223
  Scalar constraint_jacobian_regularization() const { return m_prev_γ; }
220
224
 
221
225
  private:
222
- using Solver = Eigen::SimplicialLDLT<SparseMatrix>;
226
+ // KKTOrdering permutes the KKT matrix before factorization, so the solver
227
+ // factors it as given. The upper triangle is the one it can factor without a
228
+ // copy.
229
+ using Solver = Eigen::SimplicialLDLT<
230
+ SparseMatrix, Eigen::Upper,
231
+ Eigen::NaturalOrdering<typename SparseMatrix::StorageIndex>>;
223
232
 
224
233
  Solver m_solver;
234
+ KKTOrdering<Scalar> m_ordering;
225
235
  bool m_analyzed_pattern = false;
226
236
 
227
237
  /// The most recently factorized KKT matrix's lower triangle.
@@ -281,7 +291,8 @@ class SparseKKTSolver {
281
291
  m_solver.vectorD().cwiseAbs().minCoeff(&k);
282
292
 
283
293
  // The factorization is of PAP⁻¹, so the original row of pivot k is P⁻¹k
284
- return m_solver.permutationPinv().indices()(k) < m_num_decision_variables;
294
+ return m_ordering.inverse_permutation().indices()(k) <
295
+ m_num_decision_variables;
285
296
  }
286
297
 
287
298
  /// Returns regularization matrix.
@@ -2,4 +2,4 @@
2
2
 
3
3
  from ._sleipnir import *
4
4
 
5
- __version__ = "0.6.7.dev121"
5
+ __version__ = "0.6.7.dev123"