QPControler with matrix generation.