www.gusucode.com > sloptim工具箱matlab源码程序 > sloptim/sloptim/@sroengine/@Optimization/checkModel.m

    function msg = checkModel(this) 
% CHECKMODEL  check model settings are ok for optimization
%
 
% Author(s): A. Stothert 22-Jun-2007
% Copyright 2007-2012 The MathWorks, Inc.

if isa(this.Specs(1).getModel,'modelpack.SLModel')
   msg = checkSimulinkModel(this,this.Specs(1).getModel);
   return
end

%Got this far, everything must be ok
msg = [];
end