function [fun,dF]=mpcCustomCostQuadFcn(x,H,f)
% Default MPC quadratic function to optimize by nonlinear programming

% Author:  A. Bemporad
% Copyright 2017 The MathWorks, Inc.

fun=.5*x'*(H*x)+f'*x;
dF=H*x+f;

