介绍如何使用quadprog and mpcqpsolver. 依然是解决一类典型的二次规划问题: 通过看matlab文档中的例子可以基本了解如何使用。下面给出几个例子: quadprog: %% the use of quadprog H = [1 -1; -1 2]; f = [-2; -6]; A = [1 1; -1 2; 2 1]; b = [2; 2; 3]; [x,fval,exitflag,output,lambda] = ... quadprog(H,f,A,b) %% H = [1 -1; -1 2]; f = [-2; -6]; Aeq = [1 1]; beq