quadprog is a library for solving quadratic programming optimization problems. Implementations exist in several languages, including R and MATLAB.