sleipnirgroup-jormungandr 0.5.6.dev19__tar.gz → 0.5.6.dev21__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.
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/PKG-INFO +1 -1
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/interior_point.hpp +8 -10
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/sqp.hpp +4 -6
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/util/feasibility_restoration.hpp +13 -11
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/util/print_diagnostics.hpp +3 -5
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/src/sleipnir/__init__.py +1 -1
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/CMakeLists.txt +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/LICENSE.txt +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/README.md +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/SleipnirConfig.cmake.in +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/cmake/BuildTypes.cmake +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/cmake/CompilerFlags.cmake +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/cmake/Pybind11Mkdoc.cmake +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/cmake/SubdirList.cmake +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/cmake/arm-none-eabi.cmake +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/autodiff/expression.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/autodiff/expression_graph.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/autodiff/expression_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/autodiff/gradient.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/autodiff/gradient_expression_graph.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/autodiff/hessian.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/autodiff/jacobian.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/autodiff/sleipnir_base.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/autodiff/slice.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/autodiff/variable.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/autodiff/variable_block.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/autodiff/variable_matrix.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/multistart.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/ocp/dynamics_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/ocp/timestep_method.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/ocp/transcription_method.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/ocp.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/problem.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/exit_status.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/interior_point_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/iteration_info.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/newton.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/newton_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/options.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/sqp_matrix_callbacks.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/util/all_finite.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/util/append_as_triplets.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/util/bounds.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/util/dense_regularized_ldlt.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/util/filter.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/util/fraction_to_the_boundary_rule.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/util/inertia.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/util/is_locally_infeasible.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/util/kkt_error.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/util/lagrange_multiplier_estimate.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/util/problem_scaling.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/util/regularized_ldlt.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/util/sparse_inf_norms.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/optimization/solver/util/sparse_regularized_ldlt.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/util/assert.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/util/concepts.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/util/empty.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/util/function_ref.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/util/intrusive_shared_ptr.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/util/pool.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/util/print.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/util/profiler.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/util/scope_exit.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/util/spy.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/include/sleipnir/util/symbol_exports.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/pyproject.toml +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/autodiff/bind_expression_type.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/autodiff/bind_gradient.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/autodiff/bind_hessian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/autodiff/bind_jacobian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/autodiff/bind_variable.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/autodiff/bind_variable_block.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/autodiff/bind_variable_matrix.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/binders.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/docstrings.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/for_each_type.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/main.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/optimization/bind_equality_constraints.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/optimization/bind_inequality_constraints.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/optimization/bind_ocp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/optimization/bind_problem.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/optimization/ocp/bind_dynamics_type.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/optimization/ocp/bind_timestep_method.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/optimization/ocp/bind_transcription_method.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/optimization/solver/bind_exit_status.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/optimization/solver/bind_iteration_info.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/try_cast.hpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/src/sleipnir/autodiff/__init__.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/src/sleipnir/optimization/__init__.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/autodiff/gradient_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/autodiff/hessian_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/autodiff/jacobian_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/autodiff/variable_matrix_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/autodiff/variable_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/arm_on_elevator_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/cart_pole_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/cart_pole_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/cart_pole_util.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/constraints_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/decision_variable_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/differential_drive_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/differential_drive_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/differential_drive_util.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/double_integrator_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/flywheel_ocp_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/flywheel_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/linear_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/multistart_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/nonlinear_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/problem_spy_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/quadratic_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/rk4.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/solver/exit_status_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/test/optimization/trivial_problem_test.py +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/src/autodiff/gradient.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/src/autodiff/hessian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/src/autodiff/jacobian.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/src/autodiff/variable_matrix.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/src/optimization/ocp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/src/optimization/problem.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/src/optimization/solver/interior_point.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/src/optimization/solver/newton.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/src/optimization/solver/sqp.cpp +0 -0
- {sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/src/util/pool.cpp +0 -0
|
@@ -77,12 +77,13 @@ ExitStatus interior_point(
|
|
|
77
77
|
DenseVector z =
|
|
78
78
|
DenseVector::Ones(matrix_callbacks.num_inequality_constraints);
|
|
79
79
|
Scalar μ = Scalar(0.1) * matrix_callbacks.scaling.f;
|
|
80
|
+
int iterations = 0;
|
|
80
81
|
|
|
81
82
|
return interior_point(matrix_callbacks, iteration_callbacks, options, false,
|
|
82
83
|
#ifdef SLEIPNIR_ENABLE_BOUND_PROJECTION
|
|
83
84
|
bound_constraint_mask,
|
|
84
85
|
#endif
|
|
85
|
-
x, s, y, z,
|
|
86
|
+
x, s, y, z, μ, iterations);
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
/// Finds the optimal solution to a nonlinear program using the interior-point
|
|
@@ -116,6 +117,7 @@ ExitStatus interior_point(
|
|
|
116
117
|
/// constraint dual variables.
|
|
117
118
|
/// @param[in,out] μ The initial guess and output location for the barrier
|
|
118
119
|
/// parameter.
|
|
120
|
+
/// @param[in,out] iterations The iteration counter.
|
|
119
121
|
/// @return The exit status.
|
|
120
122
|
template <typename Scalar>
|
|
121
123
|
ExitStatus interior_point(
|
|
@@ -129,7 +131,7 @@ ExitStatus interior_point(
|
|
|
129
131
|
Eigen::Vector<Scalar, Eigen::Dynamic>& x,
|
|
130
132
|
Eigen::Vector<Scalar, Eigen::Dynamic>& s,
|
|
131
133
|
Eigen::Vector<Scalar, Eigen::Dynamic>& y,
|
|
132
|
-
Eigen::Vector<Scalar, Eigen::Dynamic>& z, Scalar&
|
|
134
|
+
Eigen::Vector<Scalar, Eigen::Dynamic>& z, Scalar& μ, int& iterations) {
|
|
133
135
|
using DenseVector = Eigen::Vector<Scalar, Eigen::Dynamic>;
|
|
134
136
|
using SparseMatrix = Eigen::SparseMatrix<Scalar>;
|
|
135
137
|
using SparseVector = Eigen::SparseVector<Scalar>;
|
|
@@ -288,8 +290,6 @@ ExitStatus interior_point(
|
|
|
288
290
|
s = bound_constraint_mask.select(c_i, s);
|
|
289
291
|
#endif
|
|
290
292
|
|
|
291
|
-
int iterations = 0;
|
|
292
|
-
|
|
293
293
|
// Barrier parameter minimum
|
|
294
294
|
const Scalar μ_min =
|
|
295
295
|
matrices.scaling.f * Scalar(options.tolerance) / Scalar(10);
|
|
@@ -567,11 +567,9 @@ ExitStatus interior_point(
|
|
|
567
567
|
scope_exit soc_exit{[&] {
|
|
568
568
|
soc_profiler.stop();
|
|
569
569
|
|
|
570
|
-
if (options.diagnostics) {
|
|
570
|
+
if (options.diagnostics && step_acceptable) {
|
|
571
571
|
print_iteration_diagnostics(
|
|
572
|
-
iterations,
|
|
573
|
-
step_acceptable ? IterationType::ACCEPTED_SOC
|
|
574
|
-
: IterationType::REJECTED_SOC,
|
|
572
|
+
iterations, IterationType::SECOND_ORDER_CORRECTION,
|
|
575
573
|
soc_profiler.current_duration(),
|
|
576
574
|
unscaled_kkt_error<Scalar, KKTErrorType::INF_NORM_SCALED>(
|
|
577
575
|
matrices.scaling, g, A_e, trial_c_e, A_i, trial_c_i,
|
|
@@ -735,8 +733,8 @@ ExitStatus interior_point(
|
|
|
735
733
|
Scalar(0.9) * initial_entry.constraint_violation &&
|
|
736
734
|
filter.try_add(initial_entry, trial_entry, trial_x - x, g, α);
|
|
737
735
|
});
|
|
738
|
-
auto status = feasibility_restoration<Scalar>(
|
|
739
|
-
|
|
736
|
+
auto status = feasibility_restoration<Scalar>(
|
|
737
|
+
matrices, callbacks, options, x, s, y, z, μ, iterations);
|
|
740
738
|
|
|
741
739
|
if (status != ExitStatus::SUCCESS) {
|
|
742
740
|
// Report failure
|
|
@@ -393,11 +393,9 @@ ExitStatus sqp(const SQPMatrixCallbacks<Scalar>& matrix_callbacks,
|
|
|
393
393
|
scope_exit soc_exit{[&] {
|
|
394
394
|
soc_profiler.stop();
|
|
395
395
|
|
|
396
|
-
if (options.diagnostics) {
|
|
396
|
+
if (options.diagnostics && step_acceptable) {
|
|
397
397
|
print_iteration_diagnostics(
|
|
398
|
-
iterations,
|
|
399
|
-
step_acceptable ? IterationType::ACCEPTED_SOC
|
|
400
|
-
: IterationType::REJECTED_SOC,
|
|
398
|
+
iterations, IterationType::SECOND_ORDER_CORRECTION,
|
|
401
399
|
soc_profiler.current_duration(),
|
|
402
400
|
kkt_error<Scalar, KKTErrorType::INF_NORM_SCALED>(
|
|
403
401
|
g, A_e, trial_c_e, trial_y),
|
|
@@ -533,8 +531,8 @@ ExitStatus sqp(const SQPMatrixCallbacks<Scalar>& matrix_callbacks,
|
|
|
533
531
|
Scalar(0.9) * initial_entry.constraint_violation &&
|
|
534
532
|
filter.try_add(initial_entry, trial_entry, trial_x - x, g, α);
|
|
535
533
|
});
|
|
536
|
-
auto status =
|
|
537
|
-
|
|
534
|
+
auto status = feasibility_restoration<Scalar>(matrices, callbacks,
|
|
535
|
+
options, x, y, iterations);
|
|
538
536
|
|
|
539
537
|
if (status != ExitStatus::SUCCESS) {
|
|
540
538
|
// Report failure
|
|
@@ -33,7 +33,7 @@ ExitStatus interior_point(
|
|
|
33
33
|
Eigen::Vector<Scalar, Eigen::Dynamic>& x,
|
|
34
34
|
Eigen::Vector<Scalar, Eigen::Dynamic>& s,
|
|
35
35
|
Eigen::Vector<Scalar, Eigen::Dynamic>& y,
|
|
36
|
-
Eigen::Vector<Scalar, Eigen::Dynamic>& z, Scalar&
|
|
36
|
+
Eigen::Vector<Scalar, Eigen::Dynamic>& z, Scalar& μ, int& iterations);
|
|
37
37
|
|
|
38
38
|
/// Computes initial values for p and n in feasibility restoration.
|
|
39
39
|
///
|
|
@@ -109,6 +109,7 @@ compute_p_n(const Eigen::Vector<Scalar, Eigen::Dynamic>& c, Scalar ρ,
|
|
|
109
109
|
/// @param[in,out] x The decision variables from the normal solve.
|
|
110
110
|
/// @param[in,out] y The equality constraint dual variables from the normal
|
|
111
111
|
/// solve.
|
|
112
|
+
/// @param[in,out] iterations The iteration counter.
|
|
112
113
|
/// @return The exit status.
|
|
113
114
|
template <typename Scalar>
|
|
114
115
|
ExitStatus feasibility_restoration(
|
|
@@ -116,7 +117,7 @@ ExitStatus feasibility_restoration(
|
|
|
116
117
|
std::span<std::function<bool(const IterationInfo<Scalar>& info)>>
|
|
117
118
|
iteration_callbacks,
|
|
118
119
|
const Options& options, Eigen::Vector<Scalar, Eigen::Dynamic>& x,
|
|
119
|
-
Eigen::Vector<Scalar, Eigen::Dynamic>& y) {
|
|
120
|
+
Eigen::Vector<Scalar, Eigen::Dynamic>& y, int& iterations) {
|
|
120
121
|
// Feasibility restoration
|
|
121
122
|
//
|
|
122
123
|
// min ρ Σ (pₑ + nₑ) + ζ/2 (x - xᵣ)ᵀDᵣ(x - xᵣ)
|
|
@@ -297,12 +298,12 @@ ExitStatus feasibility_restoration(
|
|
|
297
298
|
},
|
|
298
299
|
fr_scaling};
|
|
299
300
|
|
|
300
|
-
auto status = interior_point<Scalar>(
|
|
301
|
-
|
|
301
|
+
auto status = interior_point<Scalar>(
|
|
302
|
+
fr_matrix_callbacks, iteration_callbacks, options, true,
|
|
302
303
|
#ifdef SLEIPNIR_ENABLE_BOUND_PROJECTION
|
|
303
|
-
|
|
304
|
+
{},
|
|
304
305
|
#endif
|
|
305
|
-
|
|
306
|
+
fr_x, fr_s, fr_y, fr_z, fr_μ, iterations);
|
|
306
307
|
|
|
307
308
|
x = fr_x.segment(0, x.rows());
|
|
308
309
|
|
|
@@ -337,6 +338,7 @@ ExitStatus feasibility_restoration(
|
|
|
337
338
|
/// @param[in,out] z The current inequality constraint duals from the normal
|
|
338
339
|
/// solve.
|
|
339
340
|
/// @param[in] μ Barrier parameter.
|
|
341
|
+
/// @param[in,out] iterations The iteration counter.
|
|
340
342
|
/// @return The exit status.
|
|
341
343
|
template <typename Scalar>
|
|
342
344
|
ExitStatus feasibility_restoration(
|
|
@@ -346,7 +348,7 @@ ExitStatus feasibility_restoration(
|
|
|
346
348
|
const Options& options, Eigen::Vector<Scalar, Eigen::Dynamic>& x,
|
|
347
349
|
Eigen::Vector<Scalar, Eigen::Dynamic>& s,
|
|
348
350
|
Eigen::Vector<Scalar, Eigen::Dynamic>& y,
|
|
349
|
-
Eigen::Vector<Scalar, Eigen::Dynamic>& z, Scalar
|
|
351
|
+
Eigen::Vector<Scalar, Eigen::Dynamic>& z, Scalar μ, int& iterations) {
|
|
350
352
|
// Feasibility restoration
|
|
351
353
|
//
|
|
352
354
|
// min ρ Σ (pₑ + nₑ + pᵢ + nᵢ) + ζ/2 (x - xᵣ)ᵀDᵣ(x - xᵣ)
|
|
@@ -584,12 +586,12 @@ ExitStatus feasibility_restoration(
|
|
|
584
586
|
},
|
|
585
587
|
fr_scaling};
|
|
586
588
|
|
|
587
|
-
auto status = interior_point<Scalar>(
|
|
588
|
-
|
|
589
|
+
auto status = interior_point<Scalar>(
|
|
590
|
+
fr_matrix_callbacks, iteration_callbacks, options, true,
|
|
589
591
|
#ifdef SLEIPNIR_ENABLE_BOUND_PROJECTION
|
|
590
|
-
|
|
592
|
+
{},
|
|
591
593
|
#endif
|
|
592
|
-
|
|
594
|
+
fr_x, fr_s, fr_y, fr_z, fr_μ, iterations);
|
|
593
595
|
|
|
594
596
|
x = fr_x.segment(0, x.rows());
|
|
595
597
|
s = fr_s.segment(0, s.rows());
|
|
@@ -24,10 +24,8 @@ namespace slp {
|
|
|
24
24
|
enum class IterationType : uint8_t {
|
|
25
25
|
/// Normal iteration.
|
|
26
26
|
NORMAL,
|
|
27
|
-
///
|
|
28
|
-
|
|
29
|
-
/// Rejected second-order correction iteration.
|
|
30
|
-
REJECTED_SOC,
|
|
27
|
+
/// Second-order correction iteration.
|
|
28
|
+
SECOND_ORDER_CORRECTION,
|
|
31
29
|
/// Feasibility restoration iteration.
|
|
32
30
|
FEASIBILITY_RESTORATION
|
|
33
31
|
};
|
|
@@ -228,7 +226,7 @@ void print_iteration_diagnostics(int iterations, IterationType type,
|
|
|
228
226
|
int backtracks =
|
|
229
227
|
static_cast<int>(log(primal_α / primal_α_max) / log(α_reduction_factor));
|
|
230
228
|
|
|
231
|
-
constexpr std::array ITERATION_TYPES{" ", "s", "
|
|
229
|
+
constexpr std::array ITERATION_TYPES{" ", "s", "r"};
|
|
232
230
|
slp::println(
|
|
233
231
|
"│{:4} {:1} {:9.3f} {:.4e} {:11.4e} {:.4e} {:.2e} {:.2e} {:<5} {:<5} "
|
|
234
232
|
"{:.2e} {:.2e} {:.2e} {:.2e} {:2d}│",
|
{sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/CMakeLists.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.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/pyproject.toml
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
|
{sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/python/cpp/main.cpp
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
|
{sleipnirgroup_jormungandr-0.5.6.dev19 → sleipnirgroup_jormungandr-0.5.6.dev21}/src/util/pool.cpp
RENAMED
|
File without changes
|