www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregusermod/nlconstraints.m
function [c,ceq,gc,geq]= nlconstraints(B,U,varargin); %XREGUSERMOD/NLCONSRAINTS nonlinear constraints evaluation for fmincon % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. U= update(U,B); if nargout>2 [c,gc]= feval(U.funcName,U,'nlconstraints',varargin{:}); else gc=[]; c= feval(U.funcName,U,'nlconstraints',varargin{:}); end ceq=[]; geq=[];