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

    function mode = getRunAPIMode(optim)
%GETRUNAPIMODE Get the API version to run with.
%
%   MODE = GETRUNAPIMODE(OPTIM) returns the API mode that should be used
%   when running the optimization.  When MODE is 2, the MBC v2 API will be
%   used.  When MODE is 3, the MBC v3 API will be used.  When MODE is 0,
%   the API will be set to the most recent.  
%
%   This API mode setting is only used when the setting from the script
%   specifies that the user should be allowed to select the run interface.

%   Copyright 2005 The MathWorks, Inc.


mode = optim.RunAPIMode;