www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimrunner/getOptimOptions.m

    function options = getOptimOptions(obj, opt)
%GETOPTIMOPTIONS Return the optimization options object
%
%  OPTIONS = GETOPTIMOPTIONS returns the basic optimization options object.
%  This can be passed to the user for use in their optimization scripts.
%
%  OPTIONS = GETOPTIMOPTIONS('full') returns the extended options object
%  that has more methods and can be used internally.

%  Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc.


if nargin<2 || ~strcmpi(opt, 'full')
    options = cgoptimoptions(obj.Setup);
else
    options = obj.Setup;
end