Add the QP offline algorithm