Added lambdas linear cost function to QP