Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
f027c6f
update julia interfaces
micahreich Jul 2, 2026
dde2564
get rid of the regularizer to try hack
micahreich Jul 2, 2026
a504881
try using last regularizer to warmstart
micahreich Jul 2, 2026
c386d79
add inertia warmstart as an option, update retraction map to not use …
micahreich Jul 2, 2026
26df2c4
add another example where kappa initial matters, Makefile
micahreich Jul 6, 2026
54a5422
add ability to change reteaction at compile-time
micahreich Jul 6, 2026
edf3839
Revert "add ability to change reteaction at compile-time"
micahreich Jul 11, 2026
d39f624
add IFT correction for kappa scaling, add backsolve overload to take …
micahreich Jul 12, 2026
8ca1261
change Eigen func signatures to avoid accidental copies; split m_comp…
micahreich Jul 12, 2026
582a870
wip new penalty update working on it
micahreich Jul 13, 2026
a82bddf
best perf on macmpec
micahreich Jul 14, 2026
8ba5853
Fix spdlog install bug
arunleob Jul 18, 2026
7964cba
Init retraction map options, exp
arunleob Jul 18, 2026
0bef11d
Add scaled exp
arunleob Jul 18, 2026
ac31d5b
Add member accessors for testing and debugging
arunleob Jul 20, 2026
565e612
Add test for residual with softplus
arunleob Jul 20, 2026
309a556
KKT residual for all retraction maps
arunleob Jul 20, 2026
b19a71a
Add kkt system and smoke tests
arunleob Jul 21, 2026
0704e1e
Clean up test, add result getters
arunleob Jul 21, 2026
40bca48
Updated entry and kappa solve for new retraction maps, added tests fo…
arunleob Jul 21, 2026
d1eb814
Add relaxation derivative and filter tests
arunleob Jul 21, 2026
4be770f
Merge branch 'master' into exp_test
arunleob Jul 21, 2026
a2fefc8
CLean up tests, speed up slightly
arunleob Jul 21, 2026
44ee1e4
Testing hessian clamping
arunleob Jul 22, 2026
0f0c1f5
clamp only the s_comp_stationary block of the AL hessian
micahreich Jul 22, 2026
a924087
use enums for retraction type
micahreich Jul 22, 2026
f1180d9
update docs
micahreich Jul 22, 2026
cad8448
update Julia example simple_test and default solver params to use mos…
micahreich Jul 22, 2026
c810783
update spdlogging to reflect IPOPT-style, from `logging` branch
micahreich Jul 22, 2026
186d967
fix a bug in entry_from_solution for non-softplus retractions
micahreich Jul 23, 2026
80e239a
fixed a but in dkkt_residual_drelax
micahreich Jul 23, 2026
2810abf
Add warmstart flag, just controls whether workspace is cleared
arunleob Jul 24, 2026
1283ed9
Merge branch 'exp_test' into mr/benchmarks_pin
arunleob Jul 24, 2026
c0f86b3
Merge branch 'clamp_hessian' into mr/benchmarks_pin
arunleob Jul 24, 2026
f160cdc
Fix test for kkt relaxation derivative
arunleob Jul 24, 2026
404e4af
Fix cold-starting (clear multiplier estimates)
arunleob Jul 24, 2026
3517d8d
updated READMe to use IEEE citation instead of arxiv
micahreich Nov 9, 2026
45febe5
fix flaky CI test
micahreich Nov 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,10 @@ LocalPreferences.toml
*.jl.cov
*.jl.*.cov
*.jl.mem

# Testing
docs/*.aux
docs/*.log
docs/*.out
docs/*.gz
proglogs/
34 changes: 28 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,17 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
include(FetchContent)

find_package(Eigen3 3.3 REQUIRED NO_MODULE)
find_package(nlohmann_json CONFIG REQUIRED)

# Fetch a specific version of spdlog to avoid fmt/spdlog compatibility issues
FetchContent_Declare(
spdlog
GIT_REPOSITORY https://github.com/gabime/spdlog.git
GIT_TAG v1.12.0 # Or whatever version you prefer
)
# Make sure spdlog builds its bundled fmt instead of looking for the system one
set(SPDLOG_FMT_EXTERNAL OFF CACHE BOOL "Use bundled fmt" FORCE)
FetchContent_MakeAvailable(spdlog)
add_definitions(-DSPDLOG_COMPILED_LIB)

# QDLDL – prefer a system install, otherwise fetch as static-only.
# EXCLUDE_FROM_ALL suppresses QDLDL's cmake --install rules so they don't
Expand Down Expand Up @@ -73,7 +83,7 @@ add_library(marble STATIC
src/filter.cpp
)
target_include_directories(marble PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_link_libraries(marble PUBLIC Eigen3::Eigen nlohmann_json::nlohmann_json marble_qdldl)
target_link_libraries(marble PUBLIC Eigen3::Eigen spdlog::spdlog marble_qdldl)

# ---------------------------------------------------------------------------
# Python bindings (cmake -DMARBLE_BUILD_PYTHON=ON — default ON)
Expand All @@ -95,13 +105,25 @@ if(MARBLE_BUILD_PYTHON)
# Python `marble` package (python/marble/) wraps it with the high-level API.
pybind11_add_module(marble_python MODULE bindings/python_bindings.cpp)
target_link_libraries(marble_python PRIVATE marble)

# A plain CMake build writes the extension straight into the source package,
# so anything with python/ on sys.path imports the module just built — no
# copy step to keep in sync. A wheel build (scikit-build-core sets SKBUILD)
# keeps its output in the build tree and installs it via install(TARGETS).
# Build wheels from a clean tree: scikit-build-core copies python/marble/
# wholesale, so an in-place _core*.so left there rides along into the wheel.
if(SKBUILD)
set(MARBLE_PYTHON_OUTPUT_DIR ${CMAKE_BINARY_DIR}/python/marble)
else()
set(MARBLE_PYTHON_OUTPUT_DIR ${CMAKE_SOURCE_DIR}/python/marble)
endif()
set_target_properties(marble_python PROPERTIES
OUTPUT_NAME _core
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/python/marble
LIBRARY_OUTPUT_DIRECTORY ${MARBLE_PYTHON_OUTPUT_DIR}
)

# Stage the pure Python package next to the freshly built extension so that
# adding build/python to sys.path is enough to `import marble` from the tree.
# Stage the package (extension included) so that adding build/python to
# sys.path is enough to `import marble` from the tree — see the Dockerfile.
add_custom_command(TARGET marble_python POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_SOURCE_DIR}/python/marble ${CMAKE_BINARY_DIR}/python/marble
Expand All @@ -115,7 +137,7 @@ if(MARBLE_BUILD_PYTHON)
if(PYBIND11_STUBGEN)
add_custom_command(TARGET marble_python POST_BUILD
COMMAND ${CMAKE_COMMAND} -E env
PYTHONPATH=${CMAKE_BINARY_DIR}/python
PYTHONPATH=${MARBLE_PYTHON_OUTPUT_DIR}/..
${PYBIND11_STUBGEN} marble._core
--output-dir ${CMAKE_SOURCE_DIR}/python
--numpy-array-remove-parameters
Expand Down
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.PHONY: all python julia clean

all:
cmake --preset all
cmake --build --preset all --parallel

python:
cmake --preset python
cmake --build --preset python --parallel

julia:
cmake --preset julia
cmake --build --preset julia --parallel

clean:
rm -rf build
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ Please see the [installation instructions](https://roboticexplorationlab.org/Mar
If you use this work in your research, please cite it as follows:

```bibtex
@article{bishop2026complementarityconstructionliegroupapproach,
title={Complementarity by Construction: A Lie-Group Approach to Solving Quadratic Programs with Linear Complementarity Constraints},
author={Arun L. Bishop and Micah I. Reich and Zachary Manchester},
year={2026},
eprint={2604.11991},
archivePrefix={arXiv},
primaryClass={cs.RO},
url={https://arxiv.org/abs/2604.11991},
@ARTICLE{complementarityconstructionliegroupapproach2026,
author={Bishop, Arun L. and Reich, Micah I. and Manchester, Zachary},
journal={IEEE Robotics and Automation Letters},
title={Complementarity by Construction: A Lie-Group Approach to Solving Quadratic Programs With Linear Complementarity Constraints},
year={2026},
volume={11},
number={11},
pages={12799-12806},
keywords={Optimization;Modeling;Timing;Lie groups;Quadratic programming;Contacts;Algorithms;Construction;Mathematical programming;Newton method;Optimization and optimal control;constrained motion planning},
doi={10.1109/LRA.2026.3734878}
}
```
Loading
Loading