Skip to content

v0.1.4

Choose a tag to compare

@Lhongpei Lhongpei released this 15 Mar 08:17
· 123 commits to main since this release

What's New in v0.1.4

New Features

  • Inner Solver Control: Added parameters to control QP subproblem solving:

    • InnerIterLimit: Max iterations for inner solver.
    • InnerInitTol: Initial tolerance.
    • InnerMinTol: Minimum tolerance floor.
  • IDE Support: Added .pyi stubs for better auto-completion and type checking in Python.

Improvements

  • Robustness: Added C++ backend validation to automatically correct invalid parameter settings.
  • Logging:
    • Added inner column to iteration logs.
    • Improved terminal banner centering.
    • Fixed non-convexity (min eigenvalue) logging logic.
    • Example:
---------------------------------------------------------------------------------------------------
                                            PDHCG-II
                      A GPU-Accelerated First-Order Solver for Convex QPs
                                      (c) Hongpei Li, 2026
                                 Contact: ishongpeili@gmail.com

---------------------------------------------------------------------------------------------------
problem: 400 rows, 688 columns, 2409 nonzeros
settings:
  iter_limit         : 2147483647
  time_limit         : 3600.00 sec
  eps_opt            : 1.0e-04
  eps_feas           : 1.0e-04
  eps_infeas_detect  : 1.0e-10
---------------------------------------------------------------------------------------------------
Problem Type: CONVEX_QP
Quadratic Objective Matrix Type: Sparse Q
L2 Norm of Quadratic Objective Matrix: 6.344e+00
Minimum Eigenvalue of Q: 2.389e-03
---------------------------------------------------------------------------------------------------
        runtime        |     objective      |   absolute residuals    |   relative residuals    
  iter   inner   time  |  pr obj    du obj  |  pr res  du res   gap   |  pr res  du res   gap   
---------------------------------------------------------------------------------------------------
     0       0 1.9e-03 |  0.0e+00   0.0e+00 | 0.0e+00 9.6e+01 0.0e+00 | 0.0e+00 1.2e-01 0.0e+00 
    10      10 2.7e-03 |  1.3e+05   5.9e+04 | 5.7e+03 4.9e+02 7.5e+04 | 5.7e-01 2.5e-01 3.9e-01 
    20      20 3.4e-03 |  1.6e+12   7.2e+11 | 1.9e+07 3.0e+06 9.0e+11 | 1.9e+03 1.3e-01 3.8e-01 
    30      30 4.2e-03 |  2.7e+19   1.2e+19 | 8.3e+10 8.3e+10 1.5e+19 | 8.3e+06 1.3e-01 3.8e-01 
  • CLI: Updated command-line interface to support new parameters.