www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@des_respsurf/pointsvisited.m

    function [np,pc]=pointsvisited(des)
% POINTSVISITED  Returns maximum number of points visited
%
%   [NPOINTS,PERCENT] = POINTSVISITED(DES) returns the total
%   number of candidate points visited and the percentage of
%   the candidate space that this represents.  Note that the
%   number of points cannot be greater than the size of the 
%   candidate set.
%

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.



% Created 27/3/2000

nc=ncandleft(des);
if nc
   np=des.p.*des.maxiter;
   np=min(np,nc);
   
   pc = 100*np./nc;
else
   np=0;
   pc=100;
end
return