Kaskade 7 contains a collection of solvers for linearly constrained quadratic programs (QPs) in linalg/qp.hh. They are used, for example, in contact mechanics and in optimization problems with inequality constraints. The general form is
$$
\min_x \frac{1}{2} x^\top A x + c^\top x
\quad\text{subject to}\quad Bx \le b,; Cx = 0,
$$
with a positive semidefinite matrix \( A \). The classes in Kaskade 7 concentrate on important special cases, in particular problems without equality constraints.
For problems of the form $$ \min_x \frac{1}{2} x^\top A x + c^\top x \quad\text{subject to}\quad Bx \le b $$ with positive semidefinite \( A \), the following solvers are available:
QPSolver transforms the QP into its Lagrange dual and solves the dual problem with a projected gradient method.QPPenalizedSolver solves a quadratically penalized version of the problem.QPALSolver combines quadratic penalization with a Rockafellar augmentation.QPMultiGrid (in linalg/qpmg.hh) uses a multigrid approach for suitable problem structures.For bound constrained problems $$ \min_x \frac{1}{2} x^\top A x + c^\top x \quad\text{subject to}\quad x \le b, $$ there are
QPBoundSolver, a projected gradient method with dense linear algebra, intended for small problems with up to a few dozen variables,QPDirectSparse, the corresponding projected gradient method with sparse linear algebra,QPSlackSolver, which introduces slack variables and supports both dense and sparse storage via the QPStructure template parameter.The bound solvers start from the feasible point \( x = \min(0,b) \) (or project a supplied initial guess onto the feasible set) and terminate when the projected gradient is below a user-specified tolerance.
The header also provides
QPConvexificationStrategy (DONOTHING, INCREMENTALADDITION, EIGENVALUEADDITION) to control how indefinite local matrices are convexified,QPStructure (DENSE, SPARSE) to select the linear algebra backend,checkKKT, which evaluates the KKT residual
$$
\bigl(|Ax+c+B^\top\lambda|,; |(Bx-b)+|,; |\lambda-|,; \lambda^\top(b-Bx)\bigr)
$$
for an approximate primal-dual solution \( (x,\lambda) \).See the Doxygen documentation of linalg/qp.hh and the contact mechanics code in fem/diffops/contactConstraints.hh for usage examples.