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

    function ver = getRunInterfaceVersion(obj)
%GETRUNINTERFACEVERSION Get the preferred interface to provide the evaluation function.
%   VER = GETRUNINTERFACEVERSION(OPTIONS) returns the Model-Based
%   Calibration Toolbox version that will be emulated when the optimization
%   function's evaluate option is called. The different possible values for
%   VER are:
%
%      VER   |   Meaning
%   =======================================================================
%      -1    | The user will be free to choose the interface version to
%            | use.
%       0    | The most up-to-date interface version is always used.
%       2    | The interface provided by the Model-Based Calibration 
%            | Toolbox Toolbox version 2 will be activated.
%       3    | The new interface that the Model-Based Calibration Toolbox 
%            | Toolbox version 3 defines will be used.
%
%   See also CGOPTIMOPTIONS/SETRUNINTERFACEVERSION.

%   Copyright 2005 The MathWorks, Inc.


ver = obj.preferredAPI;