Refactor constraints to IP-compatible box formulation#157
Merged
Conversation
Drop the Torch, ACADO, Gurobi, OSQP, and SQP integration paths from the build and public API. Keep examples, tests, Docker setup, and docs aligned with the remaining supported solver surface.
Remove the leftover test-output lines at the end of test_boxqp.cpp. This restores a clean build so the unit test suite runs successfully again.
Drop the remaining SNOPT build/example wiring and delete leftover neural-dynamics model artifacts. Keep the trimmed repository aligned with the supported build and test surface.
Drop the ALDDP solver from the build, public API, factory, and tests. Remove the dormant DBAS-DDP files and option plumbing to keep the solver surface consistent.
Convert path box constraints into unified IP-style ControlConstraint and StateConstraint Update CLDDP, examples, and constraint tests for raw bounds/clamp behavior.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR refactors box-style constraints to a single interior-point-friendly formulation and aligns all call sites and tests with the new API.
Changes
ControlBoxConstraint/StateBoxConstraintusage inCLDDPSolverand examples withControlConstraintandStateConstraint.include/cddp-cpp/cddp_core/constraint.hppto use IP-compatible evaluate/dual bounds behavior while preserving raw bound access and clamp behavior.src/cddp_core/clddp_solver.cppto the new constraint names and accessors.examples/that build constraints and control/state bound path constraints.tests/cddp_core/to cover the new evaluate behavior ([-x; x]/[-u; u]style), raw bounds, and updated Jacobians where applicable.