sleipnirgroup-jormungandr 0.6.7.dev143__tar.gz → 0.6.7.dev147__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.
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/PKG-INFO +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/autodiff/expression.hpp +9 -16
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/autodiff/expression_functions.hpp +26 -25
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/ipm.hpp +14 -13
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/newton.hpp +4 -2
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/sqp.hpp +4 -4
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/util/dense_kkt_solver.hpp +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/util/kkt_solver.hpp +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/util/sparse_kkt_solver.hpp +2 -2
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/util/time_trace.hpp +5 -5
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/src/sleipnir/__init__.py +1 -1
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/CMakeLists.txt +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/LICENSE.txt +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/README.md +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/SleipnirConfig.cmake.in +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/cmake/BuildTypes.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/cmake/CompilerFlags.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/cmake/Pybind11Mkdoc.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/cmake/Pybind11MkdocPostprocess.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/cmake/SubdirList.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/cmake/aarch64-linux-gnu.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/cmake/arm-none-eabi.cmake +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/autodiff/expression_graph.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/autodiff/expression_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/autodiff/gradient.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/autodiff/hessian.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/autodiff/jacobian.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/autodiff/sleipnir_base.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/autodiff/slice.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/autodiff/variable.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/autodiff/variable_block.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/autodiff/variable_matrix.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/multistart.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/ocp/dynamics_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/ocp/timestep_method.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/ocp/transcription_method.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/ocp.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/problem.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/control_flow.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/exit_status.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/ipm_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/iteration_info.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/newton_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/options.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/sqp_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/util/all_finite.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/util/append_as_triplets.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/util/bounds.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/util/constraint_violation.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/util/feasibility_restoration.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/util/feasibility_restoration_cycle_detector.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/util/filter.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/util/fraction_to_the_boundary_rule.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/util/kkt_error.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/util/problem_scaling.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/util/regularization_limits.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/util/ruiz_equilibration.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/optimization/solver/util/sparse_inf_norms.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/util/assert.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/util/concepts.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/util/empty.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/util/force_inline.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/util/function_ref.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/util/intrusive_shared_ptr.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/util/pool.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/util/print.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/util/print_diagnostics.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/util/scope_exit.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/util/spy.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/util/symbol_exports.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/include/sleipnir/util/time_tracer.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/pyproject.toml +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/.clang-tidy +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/arity.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/autodiff/bind_expression_type.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/autodiff/bind_gradient.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/autodiff/bind_hessian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/autodiff/bind_jacobian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/autodiff/bind_variable.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/autodiff/bind_variable_block.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/autodiff/bind_variable_matrix.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/binders.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/docstrings.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/for_each_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/main.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/optimization/bind_equality_constraints.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/optimization/bind_inequality_constraints.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/optimization/bind_ocp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/optimization/bind_problem.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/optimization/ocp/bind_dynamics_type.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/optimization/ocp/bind_timestep_method.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/optimization/ocp/bind_transcription_method.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/optimization/solver/bind_exit_status.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/optimization/solver/bind_iteration_info.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/slice_tuple.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/text_wrap.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/cpp/try_cast.hpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/postprocess_stubs.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/src/sleipnir/autodiff/__init__.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/src/sleipnir/optimization/__init__.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/autodiff/gradient_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/autodiff/hessian_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/autodiff/jacobian_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/autodiff/variable_matrix_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/autodiff/variable_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/arm_on_elevator_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/cart_pole_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/cart_pole_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/cart_pole_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/constraints_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/differential_drive_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/differential_drive_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/differential_drive_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/double_integrator_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/flywheel_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/flywheel_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/flywheel_util.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/linear_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/multistart_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/nonlinear_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/problem_spy_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/problem_variable_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/quadratic_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/rk4.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/solver/exit_status_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/tolerance.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/test/optimization/trivial_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/src/autodiff/gradient.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/src/autodiff/hessian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/src/autodiff/jacobian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/src/autodiff/variable_matrix.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/src/optimization/ocp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/src/optimization/problem.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/src/optimization/solver/ipm.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/src/optimization/solver/newton.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/src/optimization/solver/sqp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/src/util/pool.cpp +0 -0
|
@@ -33,13 +33,6 @@ inline constexpr bool USE_POOL_ALLOCATOR = true;
|
|
|
33
33
|
template <typename Scalar>
|
|
34
34
|
struct Expression;
|
|
35
35
|
|
|
36
|
-
/// Array with one element per expression argument in visit_args() order.
|
|
37
|
-
///
|
|
38
|
-
/// @tparam T Element type.
|
|
39
|
-
/// @tparam N The number of arguments.
|
|
40
|
-
template <typename T, size_t N>
|
|
41
|
-
using ArgArray = std::array<T, N>;
|
|
42
|
-
|
|
43
36
|
/// Typedef for intrusive shared pointer to Expression.
|
|
44
37
|
///
|
|
45
38
|
/// @tparam Scalar Scalar type.
|
|
@@ -468,7 +461,7 @@ struct NonLeafExpression : Expression<Scalar> {
|
|
|
468
461
|
void accumulate_adjoints() const final {
|
|
469
462
|
[&]<size_t... Is>(std::index_sequence<Is...>) {
|
|
470
463
|
// Evaluate gradients
|
|
471
|
-
|
|
464
|
+
std::array<Scalar, NumArgs> g{};
|
|
472
465
|
grad(g, this->val, args[Is]->val...);
|
|
473
466
|
|
|
474
467
|
// Accumulate adjoints
|
|
@@ -483,7 +476,7 @@ struct NonLeafExpression : Expression<Scalar> {
|
|
|
483
476
|
// instead of building them as expressions
|
|
484
477
|
if constexpr (Self::CONSTANT_PARTIALS) {
|
|
485
478
|
// Evaluate gradients
|
|
486
|
-
|
|
479
|
+
std::array<Scalar, NumArgs> g{};
|
|
487
480
|
grad(g, this->val, args[Is]->val...);
|
|
488
481
|
|
|
489
482
|
// Accumulate adjoints
|
|
@@ -502,7 +495,7 @@ struct NonLeafExpression : Expression<Scalar> {
|
|
|
502
495
|
...);
|
|
503
496
|
} else {
|
|
504
497
|
// Evaluate gradients
|
|
505
|
-
|
|
498
|
+
std::array<ExpressionPtr<Scalar>, NumArgs> g;
|
|
506
499
|
grad(g, ExpressionPtr<Scalar>{const_cast<NonLeafExpression*>(this)},
|
|
507
500
|
args[Is]...);
|
|
508
501
|
|
|
@@ -535,7 +528,7 @@ struct NonLeafExpression : Expression<Scalar> {
|
|
|
535
528
|
/// @param val The expression's value.
|
|
536
529
|
/// @param x The argument values in visit_args() order.
|
|
537
530
|
template <typename Value, typename... Args>
|
|
538
|
-
void grad(
|
|
531
|
+
void grad(std::array<Value, NumArgs>& g, const Value& val,
|
|
539
532
|
const Args&... x) const {
|
|
540
533
|
if constexpr (requires(const Self& expr) {
|
|
541
534
|
expr.eval_grad(g, val, x...);
|
|
@@ -596,7 +589,7 @@ struct BinaryMinusExpression final
|
|
|
596
589
|
static Scalar eval(Scalar lhs, Scalar rhs) { return lhs - rhs; }
|
|
597
590
|
|
|
598
591
|
template <typename Value>
|
|
599
|
-
static void eval_grad(
|
|
592
|
+
static void eval_grad(std::array<Value, 2>& g,
|
|
600
593
|
[[maybe_unused]] const Value& val,
|
|
601
594
|
[[maybe_unused]] const Value& lhs,
|
|
602
595
|
[[maybe_unused]] const Value& rhs) {
|
|
@@ -623,7 +616,7 @@ struct BinaryPlusExpression final
|
|
|
623
616
|
static Scalar eval(Scalar lhs, Scalar rhs) { return lhs + rhs; }
|
|
624
617
|
|
|
625
618
|
template <typename Value>
|
|
626
|
-
static void eval_grad(
|
|
619
|
+
static void eval_grad(std::array<Value, 2>& g,
|
|
627
620
|
[[maybe_unused]] const Value& val,
|
|
628
621
|
[[maybe_unused]] const Value& lhs,
|
|
629
622
|
[[maybe_unused]] const Value& rhs) {
|
|
@@ -646,7 +639,7 @@ struct DivExpression final : NonLeafExpression<DivExpression, Scalar, Type, 2> {
|
|
|
646
639
|
static Scalar eval(Scalar lhs, Scalar rhs) { return lhs / rhs; }
|
|
647
640
|
|
|
648
641
|
template <typename Value>
|
|
649
|
-
static void eval_grad(
|
|
642
|
+
static void eval_grad(std::array<Value, 2>& g,
|
|
650
643
|
[[maybe_unused]] const Value& val, const Value& lhs,
|
|
651
644
|
const Value& rhs) {
|
|
652
645
|
g[0] = lit<Value>(Scalar(1)) / rhs;
|
|
@@ -669,7 +662,7 @@ struct MultExpression final
|
|
|
669
662
|
static Scalar eval(Scalar lhs, Scalar rhs) { return lhs * rhs; }
|
|
670
663
|
|
|
671
664
|
template <typename Value>
|
|
672
|
-
static void eval_grad(
|
|
665
|
+
static void eval_grad(std::array<Value, 2>& g,
|
|
673
666
|
[[maybe_unused]] const Value& val, const Value& lhs,
|
|
674
667
|
const Value& rhs) {
|
|
675
668
|
g[0] = rhs;
|
|
@@ -695,7 +688,7 @@ struct UnaryMinusExpression final
|
|
|
695
688
|
static Scalar eval(Scalar lhs) { return -lhs; }
|
|
696
689
|
|
|
697
690
|
template <typename Value>
|
|
698
|
-
static void eval_grad(
|
|
691
|
+
static void eval_grad(std::array<Value, 1>& g,
|
|
699
692
|
[[maybe_unused]] const Value& val,
|
|
700
693
|
[[maybe_unused]] const Value& lhs) {
|
|
701
694
|
g[0] = lit<Value>(Scalar(-1));
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
#pragma once
|
|
4
4
|
|
|
5
5
|
#include <algorithm>
|
|
6
|
+
#include <array>
|
|
6
7
|
#include <cmath>
|
|
7
8
|
#include <concepts>
|
|
8
9
|
#include <numbers>
|
|
@@ -31,7 +32,7 @@ struct AbsExpression final : NonLeafExpression<AbsExpression, Scalar, Type, 1> {
|
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
template <typename Value>
|
|
34
|
-
static void eval_grad(
|
|
35
|
+
static void eval_grad(std::array<Value, 1>& g,
|
|
35
36
|
[[maybe_unused]] const Value& val, const Value& x) {
|
|
36
37
|
if constexpr (std::same_as<Value, Scalar>) {
|
|
37
38
|
if (x < Scalar(0)) {
|
|
@@ -74,7 +75,7 @@ struct AcosExpression final
|
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
template <typename Value>
|
|
77
|
-
static void eval_grad(
|
|
78
|
+
static void eval_grad(std::array<Value, 1>& g,
|
|
78
79
|
[[maybe_unused]] const Value& val, const Value& x) {
|
|
79
80
|
using std::sqrt;
|
|
80
81
|
g[0] = lit<Value>(Scalar(-1)) / sqrt(lit<Value>(Scalar(1)) - x * x);
|
|
@@ -108,7 +109,7 @@ struct AsinExpression final
|
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
template <typename Value>
|
|
111
|
-
static void eval_grad(
|
|
112
|
+
static void eval_grad(std::array<Value, 1>& g,
|
|
112
113
|
[[maybe_unused]] const Value& val, const Value& x) {
|
|
113
114
|
using std::sqrt;
|
|
114
115
|
g[0] = lit<Value>(Scalar(1)) / sqrt(lit<Value>(Scalar(1)) - x * x);
|
|
@@ -142,7 +143,7 @@ struct AtanExpression final
|
|
|
142
143
|
}
|
|
143
144
|
|
|
144
145
|
template <typename Value>
|
|
145
|
-
static void eval_grad(
|
|
146
|
+
static void eval_grad(std::array<Value, 1>& g,
|
|
146
147
|
[[maybe_unused]] const Value& val, const Value& x) {
|
|
147
148
|
g[0] = lit<Value>(Scalar(1)) / (lit<Value>(Scalar(1)) + x * x);
|
|
148
149
|
}
|
|
@@ -175,7 +176,7 @@ struct Atan2Expression final
|
|
|
175
176
|
}
|
|
176
177
|
|
|
177
178
|
template <typename Value>
|
|
178
|
-
static void eval_grad(
|
|
179
|
+
static void eval_grad(std::array<Value, 2>& g,
|
|
179
180
|
[[maybe_unused]] const Value& val, const Value& y,
|
|
180
181
|
const Value& x) {
|
|
181
182
|
Value d = y * y + x * x;
|
|
@@ -213,7 +214,7 @@ struct CbrtExpression final
|
|
|
213
214
|
}
|
|
214
215
|
|
|
215
216
|
template <typename Value>
|
|
216
|
-
static void eval_grad(
|
|
217
|
+
static void eval_grad(std::array<Value, 1>& g, const Value& val,
|
|
217
218
|
[[maybe_unused]] const Value& x) {
|
|
218
219
|
g[0] = lit<Value>(Scalar(1)) / (lit<Value>(Scalar(3)) * val * val);
|
|
219
220
|
}
|
|
@@ -245,7 +246,7 @@ struct CosExpression final : NonLeafExpression<CosExpression, Scalar, Type, 1> {
|
|
|
245
246
|
}
|
|
246
247
|
|
|
247
248
|
template <typename Value>
|
|
248
|
-
static void eval_grad(
|
|
249
|
+
static void eval_grad(std::array<Value, 1>& g,
|
|
249
250
|
[[maybe_unused]] const Value& val, const Value& x) {
|
|
250
251
|
using std::sin;
|
|
251
252
|
g[0] = -sin(x);
|
|
@@ -279,7 +280,7 @@ struct CoshExpression final
|
|
|
279
280
|
}
|
|
280
281
|
|
|
281
282
|
template <typename Value>
|
|
282
|
-
static void eval_grad(
|
|
283
|
+
static void eval_grad(std::array<Value, 1>& g,
|
|
283
284
|
[[maybe_unused]] const Value& val, const Value& x) {
|
|
284
285
|
using std::sinh;
|
|
285
286
|
g[0] = sinh(x);
|
|
@@ -312,7 +313,7 @@ struct ErfExpression final : NonLeafExpression<ErfExpression, Scalar, Type, 1> {
|
|
|
312
313
|
}
|
|
313
314
|
|
|
314
315
|
template <typename Value>
|
|
315
|
-
static void eval_grad(
|
|
316
|
+
static void eval_grad(std::array<Value, 1>& g,
|
|
316
317
|
[[maybe_unused]] const Value& val, const Value& x) {
|
|
317
318
|
using std::exp;
|
|
318
319
|
g[0] = lit<Value>(Scalar(2.0 * std::numbers::inv_sqrtpi)) * exp(-x * x);
|
|
@@ -345,7 +346,7 @@ struct ExpExpression final : NonLeafExpression<ExpExpression, Scalar, Type, 1> {
|
|
|
345
346
|
}
|
|
346
347
|
|
|
347
348
|
template <typename Value>
|
|
348
|
-
static void eval_grad(
|
|
349
|
+
static void eval_grad(std::array<Value, 1>& g, const Value& val,
|
|
349
350
|
[[maybe_unused]] const Value& x) {
|
|
350
351
|
g[0] = val;
|
|
351
352
|
}
|
|
@@ -382,8 +383,8 @@ struct Hypot2Expression final
|
|
|
382
383
|
}
|
|
383
384
|
|
|
384
385
|
template <typename Value>
|
|
385
|
-
static void eval_grad(
|
|
386
|
-
const Value& y) {
|
|
386
|
+
static void eval_grad(std::array<Value, 2>& g, const Value& val,
|
|
387
|
+
const Value& x, const Value& y) {
|
|
387
388
|
g[0] = x / val;
|
|
388
389
|
g[1] = y / val;
|
|
389
390
|
}
|
|
@@ -430,8 +431,8 @@ struct Hypot3Expression final
|
|
|
430
431
|
}
|
|
431
432
|
|
|
432
433
|
template <typename Value>
|
|
433
|
-
static void eval_grad(
|
|
434
|
-
const Value& y, const Value& z) {
|
|
434
|
+
static void eval_grad(std::array<Value, 3>& g, const Value& val,
|
|
435
|
+
const Value& x, const Value& y, const Value& z) {
|
|
435
436
|
g[0] = x / val;
|
|
436
437
|
g[1] = y / val;
|
|
437
438
|
g[2] = z / val;
|
|
@@ -494,7 +495,7 @@ struct IfElseExpression final
|
|
|
494
495
|
}
|
|
495
496
|
|
|
496
497
|
template <typename Value>
|
|
497
|
-
void eval_grad(
|
|
498
|
+
void eval_grad(std::array<Value, 4>& g, [[maybe_unused]] const Value& val,
|
|
498
499
|
const Value& a, const Value& b,
|
|
499
500
|
[[maybe_unused]] const Value& t,
|
|
500
501
|
[[maybe_unused]] const Value& f) const {
|
|
@@ -569,7 +570,7 @@ struct LogExpression final : NonLeafExpression<LogExpression, Scalar, Type, 1> {
|
|
|
569
570
|
}
|
|
570
571
|
|
|
571
572
|
template <typename Value>
|
|
572
|
-
static void eval_grad(
|
|
573
|
+
static void eval_grad(std::array<Value, 1>& g,
|
|
573
574
|
[[maybe_unused]] const Value& val, const Value& x) {
|
|
574
575
|
g[0] = lit<Value>(Scalar(1)) / x;
|
|
575
576
|
}
|
|
@@ -602,7 +603,7 @@ struct Log10Expression final
|
|
|
602
603
|
}
|
|
603
604
|
|
|
604
605
|
template <typename Value>
|
|
605
|
-
static void eval_grad(
|
|
606
|
+
static void eval_grad(std::array<Value, 1>& g,
|
|
606
607
|
[[maybe_unused]] const Value& val, const Value& x) {
|
|
607
608
|
g[0] = lit<Value>(Scalar(1)) / (lit<Value>(Scalar(std::numbers::ln10)) * x);
|
|
608
609
|
}
|
|
@@ -636,7 +637,7 @@ struct MaxExpression final : NonLeafExpression<MaxExpression, Scalar, Type, 2> {
|
|
|
636
637
|
}
|
|
637
638
|
|
|
638
639
|
template <typename Value>
|
|
639
|
-
static void eval_grad(
|
|
640
|
+
static void eval_grad(std::array<Value, 2>& g,
|
|
640
641
|
[[maybe_unused]] const Value& val, const Value& a,
|
|
641
642
|
const Value& b) {
|
|
642
643
|
if constexpr (std::same_as<Value, Scalar>) {
|
|
@@ -683,7 +684,7 @@ struct MinExpression final : NonLeafExpression<MinExpression, Scalar, Type, 2> {
|
|
|
683
684
|
}
|
|
684
685
|
|
|
685
686
|
template <typename Value>
|
|
686
|
-
static void eval_grad(
|
|
687
|
+
static void eval_grad(std::array<Value, 2>& g,
|
|
687
688
|
[[maybe_unused]] const Value& val, const Value& a,
|
|
688
689
|
const Value& b) {
|
|
689
690
|
if constexpr (std::same_as<Value, Scalar>) {
|
|
@@ -735,7 +736,7 @@ struct PowExpression final : NonLeafExpression<PowExpression, Scalar, Type, 2> {
|
|
|
735
736
|
}
|
|
736
737
|
|
|
737
738
|
template <typename Value>
|
|
738
|
-
static void eval_grad(
|
|
739
|
+
static void eval_grad(std::array<Value, 2>& g, const Value& val,
|
|
739
740
|
const Value& base, const Value& power) {
|
|
740
741
|
using std::log;
|
|
741
742
|
using std::pow;
|
|
@@ -841,7 +842,7 @@ struct SinExpression final : NonLeafExpression<SinExpression, Scalar, Type, 1> {
|
|
|
841
842
|
}
|
|
842
843
|
|
|
843
844
|
template <typename Value>
|
|
844
|
-
static void eval_grad(
|
|
845
|
+
static void eval_grad(std::array<Value, 1>& g,
|
|
845
846
|
[[maybe_unused]] const Value& val, const Value& x) {
|
|
846
847
|
using std::cos;
|
|
847
848
|
g[0] = cos(x);
|
|
@@ -875,7 +876,7 @@ struct SinhExpression final
|
|
|
875
876
|
}
|
|
876
877
|
|
|
877
878
|
template <typename Value>
|
|
878
|
-
static void eval_grad(
|
|
879
|
+
static void eval_grad(std::array<Value, 1>& g,
|
|
879
880
|
[[maybe_unused]] const Value& val, const Value& x) {
|
|
880
881
|
using std::cosh;
|
|
881
882
|
g[0] = cosh(x);
|
|
@@ -909,7 +910,7 @@ struct SqrtExpression final
|
|
|
909
910
|
}
|
|
910
911
|
|
|
911
912
|
template <typename Value>
|
|
912
|
-
static void eval_grad(
|
|
913
|
+
static void eval_grad(std::array<Value, 1>& g, const Value& val,
|
|
913
914
|
[[maybe_unused]] const Value& x) {
|
|
914
915
|
g[0] = lit<Value>(Scalar(1)) / (lit<Value>(Scalar(2)) * val);
|
|
915
916
|
}
|
|
@@ -941,7 +942,7 @@ struct TanExpression final : NonLeafExpression<TanExpression, Scalar, Type, 1> {
|
|
|
941
942
|
}
|
|
942
943
|
|
|
943
944
|
template <typename Value>
|
|
944
|
-
static void eval_grad(
|
|
945
|
+
static void eval_grad(std::array<Value, 1>& g,
|
|
945
946
|
[[maybe_unused]] const Value& val, const Value& x) {
|
|
946
947
|
using std::cos;
|
|
947
948
|
|
|
@@ -977,7 +978,7 @@ struct TanhExpression final
|
|
|
977
978
|
}
|
|
978
979
|
|
|
979
980
|
template <typename Value>
|
|
980
|
-
static void eval_grad(
|
|
981
|
+
static void eval_grad(std::array<Value, 1>& g,
|
|
981
982
|
[[maybe_unused]] const Value& val, const Value& x) {
|
|
982
983
|
using std::cosh;
|
|
983
984
|
|
|
@@ -422,15 +422,16 @@ ExitStatus ipm(
|
|
|
422
422
|
matrices.num_decision_variables + matrices.num_equality_constraints);
|
|
423
423
|
lhs.setFromSortedTriplets(triplets.begin(), triplets.end());
|
|
424
424
|
|
|
425
|
-
// rhs = −[∇f − Aₑᵀy − Aᵢᵀ(
|
|
426
|
-
// [
|
|
427
|
-
DenseVector rhs{
|
|
428
|
-
|
|
425
|
+
// rhs = −[∇f − Aₑᵀy − Aᵢᵀ(μS⁻¹e − Σ(cᵢ − s))]
|
|
426
|
+
// [ cₑ ]
|
|
427
|
+
DenseVector rhs{g.rows() + y.rows()};
|
|
428
|
+
DenseVector c_i_minus_s = c_i - s;
|
|
429
|
+
rhs.segment(0, g.rows()) =
|
|
429
430
|
-g + A_e.transpose() * y +
|
|
430
|
-
A_i.transpose() * (
|
|
431
|
-
rhs.segment(
|
|
431
|
+
A_i.transpose() * (μ * s.cwiseInverse() - Σ * c_i_minus_s);
|
|
432
|
+
rhs.segment(g.rows(), y.rows()) = -c_e;
|
|
432
433
|
|
|
433
|
-
phase_tracer.next(diagnostics[
|
|
434
|
+
phase_tracer.next(diagnostics[KKT_MATRIX_FACTOR]);
|
|
434
435
|
|
|
435
436
|
Step step;
|
|
436
437
|
Scalar α_max(1);
|
|
@@ -440,8 +441,8 @@ ExitStatus ipm(
|
|
|
440
441
|
|
|
441
442
|
// Solve the Newton-KKT system
|
|
442
443
|
//
|
|
443
|
-
// [H + AᵢᵀΣAᵢ Aₑᵀ][ pˣ] = −[∇f − Aₑᵀy − Aᵢᵀ(
|
|
444
|
-
// [ Aₑ 0 ][−pʸ] [
|
|
444
|
+
// [H + AᵢᵀΣAᵢ Aₑᵀ][ pˣ] = −[∇f − Aₑᵀy − Aᵢᵀ(μS⁻¹e − Σ(cᵢ − s))]
|
|
445
|
+
// [ Aₑ 0 ][−pʸ] [ cₑ ]
|
|
445
446
|
if (solver.compute(lhs).info() != Eigen::Success) [[unlikely]] {
|
|
446
447
|
return ExitStatus::FACTORIZATION_FAILED;
|
|
447
448
|
}
|
|
@@ -460,7 +461,7 @@ ExitStatus ipm(
|
|
|
460
461
|
step.p_s = c_i_minus_s + A_i * step.p_x;
|
|
461
462
|
step.p_z = μ * s.cwiseInverse() - z - Σ * step.p_s;
|
|
462
463
|
};
|
|
463
|
-
compute_step(step,
|
|
464
|
+
compute_step(step, c_i_minus_s);
|
|
464
465
|
|
|
465
466
|
phase_tracer.next(diagnostics[LINE_SEARCH]);
|
|
466
467
|
|
|
@@ -581,7 +582,7 @@ ExitStatus ipm(
|
|
|
581
582
|
// Rebuild Newton-KKT rhs with updated constraint values.
|
|
582
583
|
//
|
|
583
584
|
// rhs = −[∇f − Aₑᵀy − Aᵢᵀ(μS⁻¹e − Σ(cᵢ − s)ˢᵒᶜ)]
|
|
584
|
-
// [
|
|
585
|
+
// [ cₑˢᵒᶜ ]
|
|
585
586
|
//
|
|
586
587
|
// where
|
|
587
588
|
//
|
|
@@ -590,10 +591,10 @@ ExitStatus ipm(
|
|
|
590
591
|
// αˢᵒᶜ(cᵢ(xₖ) − sₖ) + cᵢ(xₖ + αˢᵒᶜpˣˢᵒᶜ) − (sₖ + αˢᵒᶜpˢˢᵒᶜ)
|
|
591
592
|
c_e_soc = α_soc * c_e_soc + trial_c_e;
|
|
592
593
|
c_i_minus_s_soc = α_soc * c_i_minus_s_soc + trial_c_i - trial_s;
|
|
593
|
-
rhs.segment(0,
|
|
594
|
+
rhs.segment(0, g.rows()) =
|
|
594
595
|
-g + A_e.transpose() * y +
|
|
595
596
|
A_i.transpose() * (μ * s.cwiseInverse() - Σ * c_i_minus_s_soc);
|
|
596
|
-
rhs.segment(
|
|
597
|
+
rhs.segment(g.rows(), y.rows()) = -c_e_soc;
|
|
597
598
|
|
|
598
599
|
// Solve the Newton-KKT system
|
|
599
600
|
compute_step(soc_step, c_i_minus_s_soc);
|
|
@@ -150,12 +150,14 @@ ExitStatus newton(
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
phase_tracer.next(diagnostics[
|
|
153
|
+
phase_tracer.next(diagnostics[KKT_MATRIX_FACTOR]);
|
|
154
154
|
|
|
155
155
|
// Solve the Newton-KKT system
|
|
156
156
|
//
|
|
157
157
|
// Hpˣ = −∇f
|
|
158
|
-
solver.compute(H)
|
|
158
|
+
if (solver.compute(H).info() != Eigen::Success) [[unlikely]] {
|
|
159
|
+
return ExitStatus::FACTORIZATION_FAILED;
|
|
160
|
+
}
|
|
159
161
|
|
|
160
162
|
phase_tracer.next(diagnostics[KKT_SYSTEM_SOLVE]);
|
|
161
163
|
|
|
@@ -293,11 +293,11 @@ ExitStatus sqp(
|
|
|
293
293
|
|
|
294
294
|
// rhs = −[∇f − Aₑᵀy]
|
|
295
295
|
// [ cₑ ]
|
|
296
|
-
DenseVector rhs{
|
|
297
|
-
rhs.segment(0,
|
|
298
|
-
rhs.segment(
|
|
296
|
+
DenseVector rhs{g.rows() + y.rows()};
|
|
297
|
+
rhs.segment(0, g.rows()) = -g + A_e.transpose() * y;
|
|
298
|
+
rhs.segment(g.rows(), y.rows()) = -c_e;
|
|
299
299
|
|
|
300
|
-
phase_tracer.next(diagnostics[
|
|
300
|
+
phase_tracer.next(diagnostics[KKT_MATRIX_FACTOR]);
|
|
301
301
|
|
|
302
302
|
Step step;
|
|
303
303
|
constexpr Scalar α_max(1);
|
|
@@ -119,7 +119,7 @@ class DenseKKTSolver {
|
|
|
119
119
|
return *this;
|
|
120
120
|
}
|
|
121
121
|
} else {
|
|
122
|
-
// If the
|
|
122
|
+
// If the factorization failed, increase δ and γ to drive all
|
|
123
123
|
// eigenvalues away from zero
|
|
124
124
|
δ *= Scalar(10);
|
|
125
125
|
γ = γ == Scalar(0) ? γ_initial : std::min(γ * Scalar(10), γ_max);
|
|
@@ -49,7 +49,7 @@ class KKTSolver {
|
|
|
49
49
|
|
|
50
50
|
/// Computes the factorization of the KKT matrix.
|
|
51
51
|
///
|
|
52
|
-
/// In sparse mode, the matrix's symbolic
|
|
52
|
+
/// In sparse mode, the matrix's symbolic factorization is reused in
|
|
53
53
|
/// subsequent calls, so subsequent calls must be given a matrix with the same
|
|
54
54
|
/// sparsity pattern.
|
|
55
55
|
///
|
|
@@ -45,7 +45,7 @@ class SparseKKTSolver {
|
|
|
45
45
|
|
|
46
46
|
/// Computes the factorization of the KKT matrix.
|
|
47
47
|
///
|
|
48
|
-
/// The matrix's symbolic
|
|
48
|
+
/// The matrix's symbolic factorization is reused in subsequent calls, so
|
|
49
49
|
/// subsequent calls must be given a matrix with the same sparsity pattern.
|
|
50
50
|
///
|
|
51
51
|
/// @param lhs Left-hand side of the system.
|
|
@@ -134,7 +134,7 @@ class SparseKKTSolver {
|
|
|
134
134
|
return *this;
|
|
135
135
|
}
|
|
136
136
|
} else {
|
|
137
|
-
// If the
|
|
137
|
+
// If the factorization failed, increase δ and γ to drive all
|
|
138
138
|
// eigenvalues away from zero
|
|
139
139
|
δ *= Scalar(10);
|
|
140
140
|
γ = γ == Scalar(0) ? γ_initial : std::min(γ * Scalar(10), γ_max);
|
|
@@ -44,8 +44,8 @@ enum class SolveTimeTracerID : uint8_t {
|
|
|
44
44
|
CALLBACKS,
|
|
45
45
|
/// KKT matrix build.
|
|
46
46
|
KKT_MATRIX_BUILD,
|
|
47
|
-
/// KKT matrix
|
|
48
|
-
|
|
47
|
+
/// KKT matrix factorization.
|
|
48
|
+
KKT_MATRIX_FACTOR,
|
|
49
49
|
/// KKT system solve.
|
|
50
50
|
KKT_SYSTEM_SOLVE,
|
|
51
51
|
/// Line search.
|
|
@@ -106,7 +106,7 @@ inline constexpr std::array newton_time_trace{
|
|
|
106
106
|
TimeTraceEntry{SolveTimeTracerID::SETUP, "setup", 1},
|
|
107
107
|
TimeTraceEntry{SolveTimeTracerID::ITERATION, "iteration", 1},
|
|
108
108
|
TimeTraceEntry{SolveTimeTracerID::CALLBACKS, "callbacks", 2},
|
|
109
|
-
TimeTraceEntry{SolveTimeTracerID::
|
|
109
|
+
TimeTraceEntry{SolveTimeTracerID::KKT_MATRIX_FACTOR, "KKT matrix factor",
|
|
110
110
|
2},
|
|
111
111
|
TimeTraceEntry{SolveTimeTracerID::KKT_SYSTEM_SOLVE, "KKT system solve", 2},
|
|
112
112
|
TimeTraceEntry{SolveTimeTracerID::LINE_SEARCH, "line search", 2},
|
|
@@ -122,7 +122,7 @@ inline constexpr std::array sqp_time_trace{
|
|
|
122
122
|
TimeTraceEntry{SolveTimeTracerID::ITERATION, "iteration", 1},
|
|
123
123
|
TimeTraceEntry{SolveTimeTracerID::CALLBACKS, "callbacks", 2},
|
|
124
124
|
TimeTraceEntry{SolveTimeTracerID::KKT_MATRIX_BUILD, "KKT matrix build", 2},
|
|
125
|
-
TimeTraceEntry{SolveTimeTracerID::
|
|
125
|
+
TimeTraceEntry{SolveTimeTracerID::KKT_MATRIX_FACTOR, "KKT matrix factor",
|
|
126
126
|
2},
|
|
127
127
|
TimeTraceEntry{SolveTimeTracerID::KKT_SYSTEM_SOLVE, "KKT system solve", 2},
|
|
128
128
|
TimeTraceEntry{SolveTimeTracerID::LINE_SEARCH, "line search", 2},
|
|
@@ -144,7 +144,7 @@ inline constexpr std::array ipm_time_trace{
|
|
|
144
144
|
TimeTraceEntry{SolveTimeTracerID::ITERATION, "iteration", 1},
|
|
145
145
|
TimeTraceEntry{SolveTimeTracerID::CALLBACKS, "callbacks", 2},
|
|
146
146
|
TimeTraceEntry{SolveTimeTracerID::KKT_MATRIX_BUILD, "KKT matrix build", 2},
|
|
147
|
-
TimeTraceEntry{SolveTimeTracerID::
|
|
147
|
+
TimeTraceEntry{SolveTimeTracerID::KKT_MATRIX_FACTOR, "KKT matrix factor",
|
|
148
148
|
2},
|
|
149
149
|
TimeTraceEntry{SolveTimeTracerID::KKT_SYSTEM_SOLVE, "KKT system solve", 2},
|
|
150
150
|
TimeTraceEntry{SolveTimeTracerID::LINE_SEARCH, "line search", 2},
|
{sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/CMakeLists.txt
RENAMED
|
File without changes
|
{sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/LICENSE.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/pyproject.toml
RENAMED
|
File without changes
|
{sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/python/.clang-tidy
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sleipnirgroup_jormungandr-0.6.7.dev143 → sleipnirgroup_jormungandr-0.6.7.dev147}/src/util/pool.cpp
RENAMED
|
File without changes
|