softqp 0.1.0__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.
- softqp-0.1.0/LICENSE +201 -0
- softqp-0.1.0/MANIFEST.in +6 -0
- softqp-0.1.0/NOTICE +13 -0
- softqp-0.1.0/PKG-INFO +76 -0
- softqp-0.1.0/README.md +50 -0
- softqp-0.1.0/VERSION +1 -0
- softqp-0.1.0/licenses/AMD.txt +36 -0
- softqp-0.1.0/licenses/OSQPSlack-MIT.txt +21 -0
- softqp-0.1.0/native/osqp/CMakeLists.txt +605 -0
- softqp-0.1.0/native/osqp/CMakePresets.json +117 -0
- softqp-0.1.0/native/osqp/LICENSE +201 -0
- softqp-0.1.0/native/osqp/NOTICE +14 -0
- softqp-0.1.0/native/osqp/algebra/CMakeLists.txt +7 -0
- softqp-0.1.0/native/osqp/algebra/_common/csc_math.c +363 -0
- softqp-0.1.0/native/osqp/algebra/_common/csc_math.h +92 -0
- softqp-0.1.0/native/osqp/algebra/_common/csc_utils.c +631 -0
- softqp-0.1.0/native/osqp/algebra/_common/csc_utils.h +211 -0
- softqp-0.1.0/native/osqp/algebra/_common/kkt.c +424 -0
- softqp-0.1.0/native/osqp/algebra/_common/kkt.h +109 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/amd/LICENSE +36 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/amd/include/SuiteSparse_config.h +246 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/amd/include/amd.h +401 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/amd/include/amd_internal.h +328 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/amd/src/SuiteSparse_config.c +407 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/amd/src/amd_1.c +180 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/amd/src/amd_2.c +1842 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/amd/src/amd_aat.c +184 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/amd/src/amd_control.c +64 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/amd/src/amd_defaults.c +37 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/amd/src/amd_info.c +119 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/amd/src/amd_order.c +199 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/amd/src/amd_post_tree.c +120 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/amd/src/amd_postorder.c +206 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/amd/src/amd_preprocess.c +118 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/amd/src/amd_valid.c +92 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/qdldl.cmake +58 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/qdldl_codegen_types.h.in +35 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/qdldl_interface.c +894 -0
- softqp-0.1.0/native/osqp/algebra/_common/lin_sys/qdldl/qdldl_interface.h +207 -0
- softqp-0.1.0/native/osqp/algebra/_common/reduced_kkt.c +65 -0
- softqp-0.1.0/native/osqp/algebra/_common/reduced_kkt.h +79 -0
- softqp-0.1.0/native/osqp/algebra/_common/vector_penalty.c +938 -0
- softqp-0.1.0/native/osqp/algebra/builtin/CMakeLists.txt +78 -0
- softqp-0.1.0/native/osqp/algebra/builtin/algebra_impl.h +47 -0
- softqp-0.1.0/native/osqp/algebra/builtin/algebra_libs.c +94 -0
- softqp-0.1.0/native/osqp/algebra/builtin/matrix.c +245 -0
- softqp-0.1.0/native/osqp/algebra/builtin/vector.c +981 -0
- softqp-0.1.0/native/osqp/algebra/cuda/CMakeLists.txt +30 -0
- softqp-0.1.0/native/osqp/algebra/cuda/algebra_types.h +62 -0
- softqp-0.1.0/native/osqp/algebra/cuda/findAlgebraDependency.cmake.in +3 -0
- softqp-0.1.0/native/osqp/algebra/cuda/include/csr_type.h +43 -0
- softqp-0.1.0/native/osqp/algebra/cuda/include/cuda_configure.h +34 -0
- softqp-0.1.0/native/osqp/algebra/cuda/include/cuda_csr.h +64 -0
- softqp-0.1.0/native/osqp/algebra/cuda/include/cuda_handler.h +45 -0
- softqp-0.1.0/native/osqp/algebra/cuda/include/cuda_lin_alg.h +607 -0
- softqp-0.1.0/native/osqp/algebra/cuda/include/cuda_memory.h +53 -0
- softqp-0.1.0/native/osqp/algebra/cuda/include/cuda_wrapper.h +135 -0
- softqp-0.1.0/native/osqp/algebra/cuda/include/helper_cuda.h +972 -0
- softqp-0.1.0/native/osqp/algebra/cuda/include/helper_string.h +428 -0
- softqp-0.1.0/native/osqp/algebra/cuda/lin_sys/indirect/cuda_pcg.h +43 -0
- softqp-0.1.0/native/osqp/algebra/cuda/lin_sys/indirect/cuda_pcg_interface.h +193 -0
- softqp-0.1.0/native/osqp/algebra/mkl/CMakeLists.txt +71 -0
- softqp-0.1.0/native/osqp/algebra/mkl/algebra_impl.h +52 -0
- softqp-0.1.0/native/osqp/algebra/mkl/algebra_libs.c +96 -0
- softqp-0.1.0/native/osqp/algebra/mkl/blas_helpers.h +80 -0
- softqp-0.1.0/native/osqp/algebra/mkl/findAlgebraDependency.cmake.in +10 -0
- softqp-0.1.0/native/osqp/algebra/mkl/lin_sys/direct/pardiso_interface.c +363 -0
- softqp-0.1.0/native/osqp/algebra/mkl/lin_sys/direct/pardiso_interface.h +174 -0
- softqp-0.1.0/native/osqp/algebra/mkl/lin_sys/indirect/mkl-cg_interface.c +390 -0
- softqp-0.1.0/native/osqp/algebra/mkl/lin_sys/indirect/mkl-cg_interface.h +184 -0
- softqp-0.1.0/native/osqp/algebra/mkl/matrix.c +412 -0
- softqp-0.1.0/native/osqp/algebra/mkl/vector.c +761 -0
- softqp-0.1.0/native/osqp/configure/cmake/FindITTAPI.cmake +101 -0
- softqp-0.1.0/native/osqp/configure/cmake/FindR.cmake +34 -0
- softqp-0.1.0/native/osqp/configure/cmake/FindROCTX.cmake +65 -0
- softqp-0.1.0/native/osqp/configure/cmake/Utils.cmake +101 -0
- softqp-0.1.0/native/osqp/configure/cmake/cmake_uninstall.cmake.in +21 -0
- softqp-0.1.0/native/osqp/configure/cmake/osqp-config.cmake.in +32 -0
- softqp-0.1.0/native/osqp/configure/osqp_configure.h.in +54 -0
- softqp-0.1.0/native/osqp/configure/version.h.in +3 -0
- softqp-0.1.0/native/osqp/examples/osqp_codegen_demo.c +126 -0
- softqp-0.1.0/native/osqp/examples/osqp_demo.c +204 -0
- softqp-0.1.0/native/osqp/examples/osqp_simple_demo.c +68 -0
- softqp-0.1.0/native/osqp/examples/problems/cvxqp2_s.c +1757 -0
- softqp-0.1.0/native/osqp/examples/problems/cvxqp2_s.h +33 -0
- softqp-0.1.0/native/osqp/examples/problems/hs21.c +114 -0
- softqp-0.1.0/native/osqp/examples/problems/hs21.h +32 -0
- softqp-0.1.0/native/osqp/examples/problems/hs35.c +130 -0
- softqp-0.1.0/native/osqp/examples/problems/hs35.h +32 -0
- softqp-0.1.0/native/osqp/examples/problems/largeqp.c +4958 -0
- softqp-0.1.0/native/osqp/examples/problems/largeqp.h +35 -0
- softqp-0.1.0/native/osqp/examples/problems/primalc1.c +6316 -0
- softqp-0.1.0/native/osqp/examples/problems/primalc1.h +33 -0
- softqp-0.1.0/native/osqp/examples/problems/qpcblend.c +1959 -0
- softqp-0.1.0/native/osqp/examples/problems/qpcblend.h +33 -0
- softqp-0.1.0/native/osqp/examples/problems/qptest.c +121 -0
- softqp-0.1.0/native/osqp/examples/problems/qptest.h +34 -0
- softqp-0.1.0/native/osqp/include/CMakeLists.txt +88 -0
- softqp-0.1.0/native/osqp/include/private/algebra_matrix.h +146 -0
- softqp-0.1.0/native/osqp/include/private/algebra_vector.h +556 -0
- softqp-0.1.0/native/osqp/include/private/auxil.h +200 -0
- softqp-0.1.0/native/osqp/include/private/codegen.h +28 -0
- softqp-0.1.0/native/osqp/include/private/derivative.h +30 -0
- softqp-0.1.0/native/osqp/include/private/error.h +48 -0
- softqp-0.1.0/native/osqp/include/private/glob_opts.h +82 -0
- softqp-0.1.0/native/osqp/include/private/interrupt.h +32 -0
- softqp-0.1.0/native/osqp/include/private/lin_alg.h +74 -0
- softqp-0.1.0/native/osqp/include/private/penalty.h +93 -0
- softqp-0.1.0/native/osqp/include/private/polish.h +25 -0
- softqp-0.1.0/native/osqp/include/private/printing.h +53 -0
- softqp-0.1.0/native/osqp/include/private/profilers.h +117 -0
- softqp-0.1.0/native/osqp/include/private/scaling.h +53 -0
- softqp-0.1.0/native/osqp/include/private/timing.h +48 -0
- softqp-0.1.0/native/osqp/include/private/types.h +333 -0
- softqp-0.1.0/native/osqp/include/private/util.h +130 -0
- softqp-0.1.0/native/osqp/include/private/version.h +9 -0
- softqp-0.1.0/native/osqp/include/public/osqp.h +11 -0
- softqp-0.1.0/native/osqp/include/public/osqp_api_constants.h +259 -0
- softqp-0.1.0/native/osqp/include/public/osqp_api_functions.h +630 -0
- softqp-0.1.0/native/osqp/include/public/osqp_api_types.h +207 -0
- softqp-0.1.0/native/osqp/include/public/osqp_api_utils.h +38 -0
- softqp-0.1.0/native/osqp/include/public/osqp_export_define.h +27 -0
- softqp-0.1.0/native/osqp/src/CMakeLists.txt +102 -0
- softqp-0.1.0/native/osqp/src/auxil.c +1315 -0
- softqp-0.1.0/native/osqp/src/codegen.c +953 -0
- softqp-0.1.0/native/osqp/src/derivative.c +331 -0
- softqp-0.1.0/native/osqp/src/error.c +45 -0
- softqp-0.1.0/native/osqp/src/interrupt_unix.c +33 -0
- softqp-0.1.0/native/osqp/src/interrupt_windows.c +28 -0
- softqp-0.1.0/native/osqp/src/osqp_api.c +1664 -0
- softqp-0.1.0/native/osqp/src/penalty.c +820 -0
- softqp-0.1.0/native/osqp/src/polish.c +741 -0
- softqp-0.1.0/native/osqp/src/profilers.c +28 -0
- softqp-0.1.0/native/osqp/src/profilers_impl.c +28 -0
- softqp-0.1.0/native/osqp/src/profilers_itt.c +82 -0
- softqp-0.1.0/native/osqp/src/profilers_nvtx.c +91 -0
- softqp-0.1.0/native/osqp/src/profilers_omnitrace.c +67 -0
- softqp-0.1.0/native/osqp/src/profilers_roctx.c +68 -0
- softqp-0.1.0/native/osqp/src/profilers_terminal.c +58 -0
- softqp-0.1.0/native/osqp/src/scaling.c +219 -0
- softqp-0.1.0/native/osqp/src/timing_linux.c +47 -0
- softqp-0.1.0/native/osqp/src/timing_macos.c +47 -0
- softqp-0.1.0/native/osqp/src/timing_windows.c +41 -0
- softqp-0.1.0/native/osqp/src/util.c +488 -0
- softqp-0.1.0/native/osqp/tests/CMakeInstallTests/CMakeLists.txt +36 -0
- softqp-0.1.0/native/osqp/tests/CMakeLists.txt +211 -0
- softqp-0.1.0/native/osqp/tests/__init__.py +0 -0
- softqp-0.1.0/native/osqp/tests/basic_lp/CMakeLists.txt +28 -0
- softqp-0.1.0/native/osqp/tests/basic_lp/generate_problem.py +30 -0
- softqp-0.1.0/native/osqp/tests/basic_lp/test_basic_lp.cpp +69 -0
- softqp-0.1.0/native/osqp/tests/basic_qp/CMakeLists.txt +35 -0
- softqp-0.1.0/native/osqp/tests/basic_qp/__init__.py +0 -0
- softqp-0.1.0/native/osqp/tests/basic_qp/generate_problem.py +30 -0
- softqp-0.1.0/native/osqp/tests/basic_qp/test_basic_qp.cpp +993 -0
- softqp-0.1.0/native/osqp/tests/basic_qp/test_cuda_io.cpp +195 -0
- softqp-0.1.0/native/osqp/tests/basic_qp/test_later_solution.cpp +65 -0
- softqp-0.1.0/native/osqp/tests/basic_qp2/CMakeLists.txt +27 -0
- softqp-0.1.0/native/osqp/tests/basic_qp2/__init__.py +0 -0
- softqp-0.1.0/native/osqp/tests/basic_qp2/generate_problem.py +34 -0
- softqp-0.1.0/native/osqp/tests/basic_qp2/test_basic_qp2.cpp +130 -0
- softqp-0.1.0/native/osqp/tests/codegen/CMakeLists.txt +27 -0
- softqp-0.1.0/native/osqp/tests/codegen/compilation_test/CMakeLists.txt +75 -0
- softqp-0.1.0/native/osqp/tests/codegen/compilation_test/embedded_mode1.c +195 -0
- softqp-0.1.0/native/osqp/tests/codegen/compilation_test/embedded_mode2.c +193 -0
- softqp-0.1.0/native/osqp/tests/codegen/generate_problem.py +30 -0
- softqp-0.1.0/native/osqp/tests/codegen/matrix/CMakeLists.txt +59 -0
- softqp-0.1.0/native/osqp/tests/codegen/matrix/mat_codegen_test.c +75 -0
- softqp-0.1.0/native/osqp/tests/codegen/matrix/mat_codegen_test.cpp +75 -0
- softqp-0.1.0/native/osqp/tests/codegen/test_codegen.cpp +718 -0
- softqp-0.1.0/native/osqp/tests/codegen/vector/CMakeLists.txt +53 -0
- softqp-0.1.0/native/osqp/tests/codegen/vector/vec_codegen_test.c +49 -0
- softqp-0.1.0/native/osqp/tests/codegen/vector/vec_codegen_test.cpp +49 -0
- softqp-0.1.0/native/osqp/tests/csc_api/CMakeLists.txt +14 -0
- softqp-0.1.0/native/osqp/tests/csc_api/test_csc_api.cpp +281 -0
- softqp-0.1.0/native/osqp/tests/custom_memory/CMakeLists.txt +12 -0
- softqp-0.1.0/native/osqp/tests/custom_memory/custom_memory.c +36 -0
- softqp-0.1.0/native/osqp/tests/custom_memory/custom_memory.h +27 -0
- softqp-0.1.0/native/osqp/tests/custom_printing/CMakeLists.txt +14 -0
- softqp-0.1.0/native/osqp/tests/custom_printing/custom_printing.c +37 -0
- softqp-0.1.0/native/osqp/tests/custom_printing/custom_printing.h +23 -0
- softqp-0.1.0/native/osqp/tests/demo/CMakeLists.txt +6 -0
- softqp-0.1.0/native/osqp/tests/demo/test_demo.cpp +50 -0
- softqp-0.1.0/native/osqp/tests/derivative_adjoint/CMakeLists.txt +31 -0
- softqp-0.1.0/native/osqp/tests/derivative_adjoint/generate_problem.py +29 -0
- softqp-0.1.0/native/osqp/tests/derivative_adjoint/test_derivative_adjoint.cpp +185 -0
- softqp-0.1.0/native/osqp/tests/generate_tests_data.py +15 -0
- softqp-0.1.0/native/osqp/tests/large_qp/CMakeLists.txt +16 -0
- softqp-0.1.0/native/osqp/tests/large_qp/large_qp_data.c +4958 -0
- softqp-0.1.0/native/osqp/tests/large_qp/test_large_qp.cpp +38 -0
- softqp-0.1.0/native/osqp/tests/lin_alg/CMakeLists.txt +61 -0
- softqp-0.1.0/native/osqp/tests/lin_alg/__init__.py +0 -0
- softqp-0.1.0/native/osqp/tests/lin_alg/generate_problem.py +296 -0
- softqp-0.1.0/native/osqp/tests/lin_alg/lin_alg_tester.cpp +88 -0
- softqp-0.1.0/native/osqp/tests/lin_alg/test_lin_alg.h +23 -0
- softqp-0.1.0/native/osqp/tests/lin_alg/test_mat_vec.cpp +149 -0
- softqp-0.1.0/native/osqp/tests/lin_alg/test_matrix.cpp +335 -0
- softqp-0.1.0/native/osqp/tests/lin_alg/testcases/cuda/test_vector_cuda.cpp +110 -0
- softqp-0.1.0/native/osqp/tests/lin_alg/testcases/test_vector_comparisons.cpp +78 -0
- softqp-0.1.0/native/osqp/tests/lin_alg/testcases/test_vector_creation.cpp +442 -0
- softqp-0.1.0/native/osqp/tests/lin_alg/testcases/test_vector_math_ops.cpp +760 -0
- softqp-0.1.0/native/osqp/tests/lin_alg/testcases/test_vector_penalty.cpp +632 -0
- softqp-0.1.0/native/osqp/tests/no_active_set/CMakeLists.txt +27 -0
- softqp-0.1.0/native/osqp/tests/no_active_set/generate_problem.py +23 -0
- softqp-0.1.0/native/osqp/tests/no_active_set/test_no_active_set.cpp +61 -0
- softqp-0.1.0/native/osqp/tests/non_cvx/CMakeLists.txt +27 -0
- softqp-0.1.0/native/osqp/tests/non_cvx/__init__.py +0 -0
- softqp-0.1.0/native/osqp/tests/non_cvx/generate_problem.py +15 -0
- softqp-0.1.0/native/osqp/tests/non_cvx/test_non_cvx.cpp +78 -0
- softqp-0.1.0/native/osqp/tests/osqp_api.h +91 -0
- softqp-0.1.0/native/osqp/tests/osqp_tester.cpp +52 -0
- softqp-0.1.0/native/osqp/tests/osqp_tester.h +101 -0
- softqp-0.1.0/native/osqp/tests/penalty/CMakeLists.txt +14 -0
- softqp-0.1.0/native/osqp/tests/penalty/test_certificates.cpp +417 -0
- softqp-0.1.0/native/osqp/tests/penalty/test_group_penalty.cpp +666 -0
- softqp-0.1.0/native/osqp/tests/penalty/test_penalty.cpp +532 -0
- softqp-0.1.0/native/osqp/tests/penalty/test_soft_qp.cpp +572 -0
- softqp-0.1.0/native/osqp/tests/primal_dual_infeasibility/CMakeLists.txt +27 -0
- softqp-0.1.0/native/osqp/tests/primal_dual_infeasibility/__init__.py +0 -0
- softqp-0.1.0/native/osqp/tests/primal_dual_infeasibility/generate_problem.py +36 -0
- softqp-0.1.0/native/osqp/tests/primal_dual_infeasibility/test_primal_dual_infeasibility.cpp +136 -0
- softqp-0.1.0/native/osqp/tests/primal_infeasibility/CMakeLists.txt +27 -0
- softqp-0.1.0/native/osqp/tests/primal_infeasibility/__init__.py +0 -0
- softqp-0.1.0/native/osqp/tests/primal_infeasibility/generate_problem.py +33 -0
- softqp-0.1.0/native/osqp/tests/primal_infeasibility/test_primal_infeasibility.cpp +41 -0
- softqp-0.1.0/native/osqp/tests/settings/CMakeLists.txt +11 -0
- softqp-0.1.0/native/osqp/tests/settings/test_settings.cpp +32 -0
- softqp-0.1.0/native/osqp/tests/solve_linsys/CMakeLists.txt +18 -0
- softqp-0.1.0/native/osqp/tests/solve_linsys/__init__.py +0 -0
- softqp-0.1.0/native/osqp/tests/solve_linsys/generate_problem.py +44 -0
- softqp-0.1.0/native/osqp/tests/solve_linsys/test_solve_linsys.h +59 -0
- softqp-0.1.0/native/osqp/tests/unconstrained/CMakeLists.txt +27 -0
- softqp-0.1.0/native/osqp/tests/unconstrained/__init__.py +0 -0
- softqp-0.1.0/native/osqp/tests/unconstrained/generate_problem.py +17 -0
- softqp-0.1.0/native/osqp/tests/unconstrained/test_unconstrained.cpp +61 -0
- softqp-0.1.0/native/osqp/tests/update_matrices/CMakeLists.txt +27 -0
- softqp-0.1.0/native/osqp/tests/update_matrices/__init__.py +0 -0
- softqp-0.1.0/native/osqp/tests/update_matrices/generate_problem.py +116 -0
- softqp-0.1.0/native/osqp/tests/update_matrices/test_update_matrices.cpp +385 -0
- softqp-0.1.0/native/osqp/tests/utils/__init__.py +0 -0
- softqp-0.1.0/native/osqp/tests/utils/codegen_utils.py +480 -0
- softqp-0.1.0/native/osqp/tests/utils/test_utils.cpp +44 -0
- softqp-0.1.0/native/osqp/tests/utils/test_utils.h +10 -0
- softqp-0.1.0/native/python/CMakeLists.txt +86 -0
- softqp-0.1.0/native/python/LICENSE +201 -0
- softqp-0.1.0/native/python/cmake/memory.h +21 -0
- softqp-0.1.0/native/python/cmake/printing.h +7 -0
- softqp-0.1.0/native/python/src/bindings.cpp.in +621 -0
- softqp-0.1.0/pyproject.toml +27 -0
- softqp-0.1.0/scripts/wheel_smoke.py +23 -0
- softqp-0.1.0/setup.cfg +4 -0
- softqp-0.1.0/setup.py +58 -0
- softqp-0.1.0/src/softqp/__init__.py +3 -0
- softqp-0.1.0/src/softqp/builtin.py +6 -0
- softqp-0.1.0/src/softqp/elasti.py +111 -0
- softqp-0.1.0/src/softqp/flex.py +196 -0
- softqp-0.1.0/src/softqp/interface.py +735 -0
- softqp-0.1.0/src/softqp/lifting.py +121 -0
- softqp-0.1.0/src/softqp/problem.py +125 -0
- softqp-0.1.0/src/softqp/reference.py +130 -0
- softqp-0.1.0/src/softqp/sessions.py +232 -0
- softqp-0.1.0/src/softqp/solvers.py +214 -0
- softqp-0.1.0/src/softqp.egg-info/PKG-INFO +76 -0
- softqp-0.1.0/src/softqp.egg-info/SOURCES.txt +272 -0
- softqp-0.1.0/src/softqp.egg-info/dependency_links.txt +1 -0
- softqp-0.1.0/src/softqp.egg-info/requires.txt +13 -0
- softqp-0.1.0/src/softqp.egg-info/top_level.txt +1 -0
- softqp-0.1.0/tests/test_asymmetric.py +130 -0
- softqp-0.1.0/tests/test_daqp.py +78 -0
- softqp-0.1.0/tests/test_elasti.py +72 -0
- softqp-0.1.0/tests/test_flex.py +75 -0
- softqp-0.1.0/tests/test_formulations.py +81 -0
- softqp-0.1.0/tests/test_native_penalty.py +47 -0
- softqp-0.1.0/tests/test_reference_backend.py +32 -0
- softqp-0.1.0/tests/test_sessions.py +138 -0
softqp-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2021 Bartolomeo Stellato, Goran Banjac, Paul Goulart, Stephen Boyd
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
softqp-0.1.0/MANIFEST.in
ADDED
softqp-0.1.0/NOTICE
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
SoftQP native engine
|
|
2
|
+
|
|
3
|
+
Contains modified OSQP and OSQP Python interface (Apache-2.0).
|
|
4
|
+
OSQP contributors: https://github.com/osqp/osqp
|
|
5
|
+
Generalized penalty implementation: A2R-Lab/osqp at 2500405a1bc63387721feec64f0c050fa99223dd.
|
|
6
|
+
Python binding: A2R-Lab/osqp-python at d6df7f987ba40e75bfac338ab19a97b2c92f7334.
|
|
7
|
+
OSQPSlack research repository: https://github.com/A2R-Lab/OSQPSlack (MIT).
|
|
8
|
+
Original notices and licenses are retained under native/.
|
|
9
|
+
The namespace and reproducible local-source build are modified for SoftQP.
|
|
10
|
+
|
|
11
|
+
SoftQP modifications include asymmetric projection, objective, conjugate, scaling
|
|
12
|
+
and recession paths, original-space contracts, compact/asymmetric lifting adapters
|
|
13
|
+
and the optional original-scale DAQP comparison. Modified files are marked.
|
softqp-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: softqp
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Native soft-constrained quadratic programs with inspectable penalty semantics
|
|
5
|
+
Author: Felipe Santibáñez-Leal
|
|
6
|
+
License-Expression: Apache-2.0 AND MIT AND BSD-3-Clause
|
|
7
|
+
Project-URL: Repository, https://github.com/fsantibanezleal/CAOS_SoftQP_Engine
|
|
8
|
+
Requires-Python: <3.13,>=3.12
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
License-File: NOTICE
|
|
12
|
+
License-File: licenses/AMD.txt
|
|
13
|
+
License-File: licenses/OSQPSlack-MIT.txt
|
|
14
|
+
Requires-Dist: numpy>=1.26
|
|
15
|
+
Requires-Dist: scipy>=1.11
|
|
16
|
+
Requires-Dist: jinja2>=3.1
|
|
17
|
+
Requires-Dist: joblib>=1.3
|
|
18
|
+
Provides-Extra: dev
|
|
19
|
+
Requires-Dist: pytest>=8; extra == "dev"
|
|
20
|
+
Requires-Dist: build>=1.2; extra == "dev"
|
|
21
|
+
Requires-Dist: osqp>=1.0; extra == "dev"
|
|
22
|
+
Provides-Extra: comparisons
|
|
23
|
+
Requires-Dist: daqp==0.10.3; extra == "comparisons"
|
|
24
|
+
Requires-Dist: elastiqp==0.2.0; extra == "comparisons"
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
|
|
27
|
+
# SoftQP
|
|
28
|
+
|
|
29
|
+
SoftQP exposes a pinned native OSQP solver with generalized soft-constraint penalties. It preserves the authors' C implementation and Python binding, with a separate import namespace and reproducible local-source build.
|
|
30
|
+
|
|
31
|
+
The implementation supports the published generalized projection method and a candidate asymmetric separable elastic extension. Native asymmetric solutions are checked against independently lifted QPs; no novelty or performance improvement is claimed.
|
|
32
|
+
|
|
33
|
+
## Install from source
|
|
34
|
+
|
|
35
|
+
Version 0.1.0 targets CPython 3.12, Windows x64 and Linux x86_64. A C/C++ compiler and CMake are required for source installation. Portable wheels and clean installed tests are prepared by the [release workflow](docs/releasing.md); public package publication remains a separate gate.
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
python -m pip install .
|
|
39
|
+
python -m pytest
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Penalties
|
|
43
|
+
|
|
44
|
+
Call `softqp.OSQP().setup(...)` with the usual QP matrices and bounds, then `setup_penalty(...)` with per-row types, linear and quadratic weights. Hard constraints use `PenaltyType.OSQP_PENALTY_NONE`. Quadratic, L1, elastic-net, Huber and grouped norms follow the pinned upstream implementation. See [the upstream tutorial](https://github.com/A2R-Lab/OSQPSlack).
|
|
45
|
+
|
|
46
|
+
## Provenance
|
|
47
|
+
|
|
48
|
+
The native source is the A2R-Lab OSQP fork at `2500405a1bc63387721feec64f0c050fa99223dd`; the binding is `d6df7f987ba40e75bfac338ab19a97b2c92f7334`. Both are Apache-2.0. Original attribution is preserved in [NOTICE](NOTICE) and `native/`.
|
|
49
|
+
|
|
50
|
+
The mathematical reference is [Schwan, Lew and Plancher (2026)](https://arxiv.org/abs/2610.35631). No paper timing is a measurement of this distribution.
|
|
51
|
+
|
|
52
|
+
## Original-space API
|
|
53
|
+
|
|
54
|
+
`softqp.problem.Problem` declares a symmetric PSD Hessian, sparse constraint matrix, interval bounds and `Penalty` arrays. `softqp.solvers.solve(problem, method)` accepts `lifted`, `generalized` (symmetric weights) `asymmetric` (side-specific elastic weights), or `daqp` with the `comparisons` extra (a dense active-set reference). It reports original-space objective components, physical violations, hard-row error, stationarity, dimensions and solver work. Failed solves carry no purported solution.
|
|
55
|
+
|
|
56
|
+
The asymmetric update supports the CPU builtin backend. Its derivation, sign conventions and limitations are in [penalty semantics](docs/penalty-semantics.md). `softqp.reference` preserves the authors' lifting helpers for Huber and grouped penalties, with their MIT notice.
|
|
57
|
+
|
|
58
|
+
The DAQP adapter preserves original-scale side costs, exports backend settings, and refuses unsupported objectives. See [DAQP comparison](docs/daqp-comparison.md) for its positive-definite and quadratic-side restrictions.
|
|
59
|
+
|
|
60
|
+
Symmetric penalties use the authors' compact signed/shared-slack lifting helper. Asymmetric penalties use explicit nonnegative lower and upper slacks. Performance comparisons must include the compact symmetric baseline rather than forcing an unnecessarily large general formulation.
|
|
61
|
+
|
|
62
|
+
## Repeated vector updates
|
|
63
|
+
|
|
64
|
+
```python
|
|
65
|
+
from softqp.sessions import PreparedSolver
|
|
66
|
+
workspace = PreparedSolver(problem, method="asymmetric")
|
|
67
|
+
first = workspace.solve()
|
|
68
|
+
workspace.update(q=next_q, lower=next_lower, upper=next_upper)
|
|
69
|
+
next_result = workspace.solve()
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
The workspace owns a copy of the input problem. Matrices, hard/soft row policy, side coefficients and finite-side pattern remain fixed. Invalid updates are rejected before the native workspace changes. `problem` returns a copy for inspection, and `reset()` zeros warm iterates while keeping the factorization. Generalized and compact lifted workspaces are also available; lifted workspaces default to the same native backend, with `reference_backend="stock"` for independent checking.
|
|
73
|
+
|
|
74
|
+
`setup_wall_seconds` includes initial validation and assembly; `update_wall_seconds` includes validation and vector construction. The returned native setup/solve timers keep their backend meaning. A session's `elapsed_seconds` measures that solve call including original-space evaluation, whereas cold `solve()` retains its documented timing scope. A benchmark must time its full declared operation explicitly and never sum repeated initial setup fields as if every stream step created a solver. Warm-state reuse does not guarantee a runtime gain.
|
|
75
|
+
|
|
76
|
+
`DaqpWorkspace` in `softqp.sessions` uses DAQP 0.10.3's documented vector update API without resending sense flags, preserving its active state. It retains original-scale side weights, hard-row policy, finite-side pattern and hard equality classification. Random mixed-row streams match independent cold lifting. It provides the same setup/update wall timers as the native workspace, so a comparison need not handicap DAQP by rebuilding it at every frame.
|
softqp-0.1.0/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# SoftQP
|
|
2
|
+
|
|
3
|
+
SoftQP exposes a pinned native OSQP solver with generalized soft-constraint penalties. It preserves the authors' C implementation and Python binding, with a separate import namespace and reproducible local-source build.
|
|
4
|
+
|
|
5
|
+
The implementation supports the published generalized projection method and a candidate asymmetric separable elastic extension. Native asymmetric solutions are checked against independently lifted QPs; no novelty or performance improvement is claimed.
|
|
6
|
+
|
|
7
|
+
## Install from source
|
|
8
|
+
|
|
9
|
+
Version 0.1.0 targets CPython 3.12, Windows x64 and Linux x86_64. A C/C++ compiler and CMake are required for source installation. Portable wheels and clean installed tests are prepared by the [release workflow](docs/releasing.md); public package publication remains a separate gate.
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
python -m pip install .
|
|
13
|
+
python -m pytest
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Penalties
|
|
17
|
+
|
|
18
|
+
Call `softqp.OSQP().setup(...)` with the usual QP matrices and bounds, then `setup_penalty(...)` with per-row types, linear and quadratic weights. Hard constraints use `PenaltyType.OSQP_PENALTY_NONE`. Quadratic, L1, elastic-net, Huber and grouped norms follow the pinned upstream implementation. See [the upstream tutorial](https://github.com/A2R-Lab/OSQPSlack).
|
|
19
|
+
|
|
20
|
+
## Provenance
|
|
21
|
+
|
|
22
|
+
The native source is the A2R-Lab OSQP fork at `2500405a1bc63387721feec64f0c050fa99223dd`; the binding is `d6df7f987ba40e75bfac338ab19a97b2c92f7334`. Both are Apache-2.0. Original attribution is preserved in [NOTICE](NOTICE) and `native/`.
|
|
23
|
+
|
|
24
|
+
The mathematical reference is [Schwan, Lew and Plancher (2026)](https://arxiv.org/abs/2610.35631). No paper timing is a measurement of this distribution.
|
|
25
|
+
|
|
26
|
+
## Original-space API
|
|
27
|
+
|
|
28
|
+
`softqp.problem.Problem` declares a symmetric PSD Hessian, sparse constraint matrix, interval bounds and `Penalty` arrays. `softqp.solvers.solve(problem, method)` accepts `lifted`, `generalized` (symmetric weights) `asymmetric` (side-specific elastic weights), or `daqp` with the `comparisons` extra (a dense active-set reference). It reports original-space objective components, physical violations, hard-row error, stationarity, dimensions and solver work. Failed solves carry no purported solution.
|
|
29
|
+
|
|
30
|
+
The asymmetric update supports the CPU builtin backend. Its derivation, sign conventions and limitations are in [penalty semantics](docs/penalty-semantics.md). `softqp.reference` preserves the authors' lifting helpers for Huber and grouped penalties, with their MIT notice.
|
|
31
|
+
|
|
32
|
+
The DAQP adapter preserves original-scale side costs, exports backend settings, and refuses unsupported objectives. See [DAQP comparison](docs/daqp-comparison.md) for its positive-definite and quadratic-side restrictions.
|
|
33
|
+
|
|
34
|
+
Symmetric penalties use the authors' compact signed/shared-slack lifting helper. Asymmetric penalties use explicit nonnegative lower and upper slacks. Performance comparisons must include the compact symmetric baseline rather than forcing an unnecessarily large general formulation.
|
|
35
|
+
|
|
36
|
+
## Repeated vector updates
|
|
37
|
+
|
|
38
|
+
```python
|
|
39
|
+
from softqp.sessions import PreparedSolver
|
|
40
|
+
workspace = PreparedSolver(problem, method="asymmetric")
|
|
41
|
+
first = workspace.solve()
|
|
42
|
+
workspace.update(q=next_q, lower=next_lower, upper=next_upper)
|
|
43
|
+
next_result = workspace.solve()
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
The workspace owns a copy of the input problem. Matrices, hard/soft row policy, side coefficients and finite-side pattern remain fixed. Invalid updates are rejected before the native workspace changes. `problem` returns a copy for inspection, and `reset()` zeros warm iterates while keeping the factorization. Generalized and compact lifted workspaces are also available; lifted workspaces default to the same native backend, with `reference_backend="stock"` for independent checking.
|
|
47
|
+
|
|
48
|
+
`setup_wall_seconds` includes initial validation and assembly; `update_wall_seconds` includes validation and vector construction. The returned native setup/solve timers keep their backend meaning. A session's `elapsed_seconds` measures that solve call including original-space evaluation, whereas cold `solve()` retains its documented timing scope. A benchmark must time its full declared operation explicitly and never sum repeated initial setup fields as if every stream step created a solver. Warm-state reuse does not guarantee a runtime gain.
|
|
49
|
+
|
|
50
|
+
`DaqpWorkspace` in `softqp.sessions` uses DAQP 0.10.3's documented vector update API without resending sense flags, preserving its active state. It retains original-scale side weights, hard-row policy, finite-side pattern and hard equality classification. Random mixed-row streams match independent cold lifting. It provides the same setup/update wall timers as the native workspace, so a comparison need not handicap DAQP by rebuilding it at every frame.
|
softqp-0.1.0/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.01.000
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
AMD, Copyright (c), 1996-2015, Timothy A. Davis,
|
|
2
|
+
Patrick R. Amestoy, and Iain S. Duff. All Rights Reserved.
|
|
3
|
+
|
|
4
|
+
Availability:
|
|
5
|
+
|
|
6
|
+
http://www.suitesparse.com
|
|
7
|
+
|
|
8
|
+
-------------------------------------------------------------------------------
|
|
9
|
+
AMD License: BSD 3-clause:
|
|
10
|
+
-------------------------------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
Redistribution and use in source and binary forms, with or without
|
|
13
|
+
modification, are permitted provided that the following conditions are met:
|
|
14
|
+
* Redistributions of source code must retain the above copyright
|
|
15
|
+
notice, this list of conditions and the following disclaimer.
|
|
16
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
17
|
+
notice, this list of conditions and the following disclaimer in the
|
|
18
|
+
documentation and/or other materials provided with the distribution.
|
|
19
|
+
* Neither the name of the organizations to which the authors are
|
|
20
|
+
affiliated, nor the names of its contributors may be used to endorse
|
|
21
|
+
or promote products derived from this software without specific prior
|
|
22
|
+
written permission.
|
|
23
|
+
|
|
24
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
25
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
26
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
27
|
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
28
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
29
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
30
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
31
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
32
|
+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
33
|
+
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
|
|
34
|
+
DAMAGE.
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 The OSQPSlack Project Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|