亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pfminbnd.m

?? matlab7 gads工具箱
?? M
字號:
function [X,FVAL,EXITFLAG,OUTPUT] = pfminbnd(FUN,initialX,LB,UB,options)
%PFMINBND Finds minimum of a function with bound constraints.
%   PFMINBND solves problems of the form:
%        min F(X)  subject to: LB <= X <= UB  (Bound constraints) 
%         X                  
%           
%   X = PFMINBND(FUN,X0,LB,UB) starts at X0 and finds a local minimum X to the
%   function FUN, subject to the bounds LB <= X <= UB. FUN accepts input X
%   and returns a scalar function value F evaluated at X. X0 may be a scalar,
%   or vector. If LB (or UB) is empty (or not provided) it is automatically 
%   expanded to -Inf (or Inf)
%
%   X = PFMINBND(FUN,X0,LB,UB,OPTIONS) minimizes with the default optimization 
%   parameters replaced by values in the structure OPTIONS. OPTIONS can be created 
%   with the PSOPTIMSET function.
%
%   [X,FVAL] = PFMINBND(FUN,X0,LB,UB,...) returns the value of the objective 
%   function FUN at the solution X.
%
%   [X,FVAL,EXITFLAG] = PFMINBND(FUN,X0,LB,UB,...) returns a string EXITFLAG that 
%   describes the exit condition of PFMINBND.  
%     If EXITFLAG is:
%        > 0 then PFMINBND converged to a solution X.
%        = 0 then the algorithm reached the maximum number of iterations or maximum number of function evaluations.
%        < 0 then PFMINBND did not converge to a solution.
%
%   [X,FVAL,EXITFLAG,OUTPUT] = PFMINBND(FUN,X0,...) returns a structure
%   OUTPUT with the following information:
%          function: <Objective function>
%       problemtype: <Type of problem> (Unconstrained, Bound constrained or linear constrained)
%        pollmethod: <Polling technique>
%      searchmethod: <Search technique> used, if any
%        iterations: <Total iterations>
%         funcCount: <Total function evaluations>
%          meshsize: <Mesh size at X>



%   Copyright 2004 The MathWorks, Inc. 
%   $Revision: 1.20.6.2 $  $Date: 2004/03/09 16:15:53 $


defaultopt = psoptimset;  

%If FUN is a cell array with additional arguments, handle them
if  iscell(FUN)
    objFcnArg = FUN(2:end);
    FUN = FUN{1};
else
    objFcnArg = {};
    FUN = FUN;
end

% If just 'defaults' passed in, return the default options in X
if nargin == 1 && nargout <= 1 && isequal(FUN,'defaults')
    X = defaultopt;
    return
end

%Only function_handle or inlines are allowed
if isempty(FUN) ||  ~(isa(FUN,'inline') || isa(FUN,'function_handle'))
    error('gads:PFMINBND:needHandleOrInline','Objective function must be a function handle.');
end


%At least 2 arguments are needed. 
if nargin <2
    error('gads:PFMINBND:inputArg','PFMINBND requires at least 2 input arguments.');
end
if nargin < 5,options = [];
    if nargin < 4, UB = [];
        if nargin < 3, LB = [];
        end, end, end

%Initialize output args
X = []; FVAL = []; EXITFLAG = []; OUTPUT = []; 

if(~isempty(initialX))
    Iterate.x = initialX(:);
    X = initialX;
    numberOfVariables = length(Iterate.x);
    type = 'boundconstraints';
else
    error('gads:PFMINBND:initialPoint','You must provide an initial point.');
end
%Retrieve all the options
[verbosity,MeshExpansion,MeshContraction,Completesearch, MeshAccelerator,minMesh,MaxMeshSize, ...
        maxIter,maxFun, TolBind,TolFun, TolX, MeshSize, pollmethod, pollorder,Completepoll,outputTrue,OutputFcns, ...
        OutputFcnArgs,plotTrue,PlotFcns, PlotFcnArgs, PlotInterval,searchtype ,searchFcnArg,Cache,Vectorized,NotVectorizedPoll, ...
        NotVectorizedSearch,cachetol,cachelimit,scaleMesh,RotatePattern]  =  checkoptions(options,defaultopt,numberOfVariables);
%Bound correction
[LB,UB,msg,EXITFLAG] = checkbound(LB,UB,numberOfVariables,verbosity);
if EXITFLAG < 0
    FVAL = [];
    X(:) = Iterate.x;
    OUTPUT.message = msg;
    if verbosity > 0
         fprintf('%s\n',msg)
    end
    return
end
%Make Iterate feasible and form A.
[Iterate,A] =aluform(Iterate.x,[],[],[],[],LB,UB,numberOfVariables,type,verbosity);
%Get some initial values
[FUN,Iterate,Iter,FunEval,scale,Successdir,nextIterate,deltaF,deltaX,MeshCont,NewMeshSize, ...
        infMessage,how,stopOutput,stopPlot,run,OUTPUT,EXITFLAG,X,FVAL] = getinitial(FUN,X,Iterate,Vectorized, ...
    objFcnArg,type,0,MeshContraction,MeshSize,scaleMesh,numberOfVariables,LB,UB);

%Set up output function plot
if(outputTrue)
    optimvalues = struct('x',X,'iteration',Iter,'fval',Iterate.f,'meshsize',MeshSize, ...
        'funccount',FunEval,'method',how,'TolFun',deltaF,'TolX',deltaX);
    [stopOutput,options,optchanged] = psoutput(OutputFcns,OutputFcnArgs,optimvalues,options,'init');
end
if(plotTrue)
    optimvalues = struct('x',X,'iteration',Iter,'fval',Iterate.f,'meshsize',MeshSize, ...
        'funccount',FunEval,'method',how,'TolFun',deltaF,'TolX',deltaX);
    stopPlot = psplot(PlotFcns,PlotFcnArgs,PlotInterval,optimvalues,'init');
end
%Print some more diagnostic information if verbosity > 2
if verbosity > 2
    psdiagnose(FUN,Iterate,X,type,[],[],[],options);
end
%Setup display header 
if  verbosity > 1
    fprintf('\n\nIter     f-count        MeshSize      f(x)        Method\n');
end

while run 
    
    %Check for convergence
    [X,EXITFLAG,FVAL,msg,run] = isconverged(stopOutput,stopPlot,verbosity,Iter,maxIter,FunEval,maxFun,MeshSize,minMesh, ...
        infMessage,nextIterate,how,deltaX,deltaF,TolFun,TolX,X,EXITFLAG,FVAL,run);
    if ~run
        continue;
    end
    %SEARCH.
    [successSearch,nextIterate,FunEval] = search(FUN,X,searchtype,Completesearch,Iterate, ...
        Successdir,pollorder,MeshSize,scale,TolBind,A,LB,UB,[],[],Iter,FunEval,maxFun,type,NotVectorizedSearch,Cache,cachetol,cachelimit,searchFcnArg,objFcnArg{:});
    %POLL
    if ~successSearch  %Unsuccessful search
        [successPoll,nextIterate,FunEval,Successdir] = poll(FUN,X,pollmethod,Completepoll,pollorder ...
            ,Iterate,Successdir,MeshSize,scale,TolBind,A,LB,UB,[],[],Iter,FunEval,maxFun,type,NotVectorizedPoll,Cache,cachetol,cachelimit,objFcnArg{:});
    else
        successPoll =0;
    end 
    
    %Scale the variables (if needed)
    if strcmpi(scaleMesh,'on') 
        meanX = mean([Iterate.x],2);
        scale = logscale(LB,UB,meanX);
    end
    
    %Update optimvalues if outputfcn is provided
    if outputTrue
        %Update optimvalues if outputfcn is provided
        optimvalues.x = X; optimvalues.iteration = Iter; optimvalues.fval = Iterate.f; optimvalues.meshsize = MeshSize;
        optimvalues.funccount = FunEval; optimvalues.method = how; optimvalues.TolFun = deltaF; optimvalues.TolX = deltaX;
        %Intermediate call to outputfcn 'iter' state
        [stopOutput,options,optchanged] = psoutput(OutputFcns, OutputFcnArgs,optimvalues,options,'iter');
        if optchanged
            [verbosity,MeshExpansion,MeshContraction,Completesearch, MeshAccelerator,minMesh,MaxMeshSize, ...
                    maxIter,maxFun, TolBind,TolFun, TolX, MeshSize, pollmethod, pollorder,Completepoll,outputTrue,OutputFcns, ...
                    OutputFcnArgs,plotTrue,PlotFcns, PlotFcnArgs, PlotInterval,searchtype ,searchFcnArg,Cache,Vectorized,NotVectorizedPoll, ...
                    NotVectorizedSearch,cachetol,cachelimit,scaleMesh,RotatePattern]  =  checkoptions(options,defaultopt,numberOfVariables); 
        end
    end
    if(plotTrue)
        optimvalues.x = X; optimvalues.iteration = Iter; optimvalues.fval = Iterate.f; optimvalues.meshsize = MeshSize;
        optimvalues.funccount = FunEval; optimvalues.method = how; optimvalues.TolFun = deltaF; optimvalues.TolX = deltaX;
        stopPlot = psplot(PlotFcns,PlotFcnArgs,PlotInterval,optimvalues,'iter');
    end
    %UPDATE
    [NewMeshSize,MeshContraction,how,deltaX,deltaF,scale,Iterate,X,Iter,infMessage] = ...
        updateparam(successPoll,successSearch,MeshAccelerator,RotatePattern,MaxMeshSize,minMesh,MeshExpansion,MeshCont, ...
        MeshContraction,MeshSize,scale,nextIterate,Iterate,X,Iter,how,infMessage);
   
    %Update mesh size 
    MeshSize = NewMeshSize;
end

%Output Function 
if(outputTrue)
    optimvalues.x = X; optimvalues.iteration = Iter; optimvalues.fval = Iterate.f; optimvalues.meshsize = MeshSize;
        optimvalues.funccount = FunEval; optimvalues.method = how; optimvalues.TolFun = deltaF; optimvalues.TolX = deltaX;
    [stopOutput,options,optchanged] = psoutput(OutputFcns, OutputFcnArgs,optimvalues,options,'done');
end
if(plotTrue)
    optimvalues.x = X; optimvalues.iteration = Iter; optimvalues.fval = Iterate.f; optimvalues.meshsize = MeshSize;
        optimvalues.funccount = FunEval; optimvalues.method = how; optimvalues.TolFun = deltaF; optimvalues.TolX = deltaX;
    stopPlot = psplot(PlotFcns,PlotFcnArgs,PlotInterval,optimvalues,'done');
end
OUTPUT = struct('function',FUN,'problemtype',type,'pollmethod',pollmethod,'searchmethod',searchtype, ...
    'iterations',Iter,'funccount',FunEval,'meshsize',MeshSize,'message',msg);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
综合电影一区二区三区 | 成人免费看片app下载| 在线播放欧美女士性生活| 亚洲国产精品一区二区www| 在线日韩一区二区| 亚洲v精品v日韩v欧美v专区| 欧美老女人在线| 麻豆免费精品视频| 久久蜜桃香蕉精品一区二区三区| 韩国成人福利片在线播放| 国产亚洲成av人在线观看导航| 国产99久久精品| 亚洲人吸女人奶水| 欧美精品99久久久**| 久久99国产精品久久99| 国产精品美女久久久久久久久| av色综合久久天堂av综合| 亚洲精品日日夜夜| 欧美精品色一区二区三区| 免费成人在线影院| 久久久久成人黄色影片| 91丨porny丨国产入口| 亚洲国产三级在线| 久久久久久久久久看片| 色婷婷av一区二区三区gif | 91在线高清观看| 亚洲高清在线视频| 欧美一区二区视频在线观看 | 亚洲一区二区高清| 91麻豆精品国产91久久久更新时间| 久久精品国产精品亚洲精品 | 91.com视频| 国产成人综合亚洲91猫咪| 亚洲人被黑人高潮完整版| 欧美一区二视频| 国产aⅴ综合色| 一区二区理论电影在线观看| 欧美本精品男人aⅴ天堂| 97久久精品人人做人人爽| 日韩高清欧美激情| 中文字幕日韩精品一区| 欧美一级专区免费大片| 99久久综合国产精品| 男人的天堂亚洲一区| 国产精品美日韩| 日韩亚洲欧美成人一区| 色偷偷88欧美精品久久久| 久久精品久久久精品美女| 一区二区三区免费| 国产日韩精品视频一区| 日韩一区二区免费电影| 日本韩国欧美在线| 国产成人精品在线看| 蜜桃av噜噜一区二区三区小说| 亚洲精品写真福利| 中文字幕第一页久久| 精品久久人人做人人爱| 欧美三级午夜理伦三级中视频| 丁香婷婷综合五月| 韩国成人福利片在线播放| 丝袜诱惑亚洲看片| 亚洲国产日产av| 亚洲免费视频成人| 中文字幕在线一区| 国产免费成人在线视频| 26uuu色噜噜精品一区二区| 欧美精选午夜久久久乱码6080| 99精品视频在线观看| 成人网男人的天堂| 成人晚上爱看视频| 成人国产视频在线观看| 国产精品一区二区男女羞羞无遮挡 | 色就色 综合激情| 91色九色蝌蚪| 91网站黄www| 95精品视频在线| 91老司机福利 在线| gogogo免费视频观看亚洲一| 高清av一区二区| 国产黄色精品网站| 成人午夜视频福利| 成a人片国产精品| 岛国精品在线播放| 成人污污视频在线观看| av电影在线观看不卡| 91尤物视频在线观看| 91福利国产成人精品照片| 欧美专区日韩专区| 在线不卡一区二区| 日韩欧美精品三级| 久久久99精品久久| 国产精品色噜噜| 亚洲三级在线免费| 亚洲一区二区欧美激情| 丝袜诱惑亚洲看片| 理论片日本一区| 国产成人av电影| 一本久道中文字幕精品亚洲嫩| 日本精品视频一区二区| 91精品国产乱码| 久久亚洲一区二区三区明星换脸 | 欧美日韩亚洲综合在线| 欧美乱熟臀69xxxxxx| 日韩欧美电影一二三| 久久久久国产精品人| 国产精品久久福利| 亚洲va在线va天堂| 久久69国产一区二区蜜臀| 国产精品1024| 欧美最新大片在线看| 欧美videos中文字幕| 国产精品乱码一区二区三区软件| 一区二区三区四区av| 免费成人在线网站| 成人性生交大片免费看中文网站| 在线免费观看不卡av| 2024国产精品| 亚洲欧美日韩在线| 久久精品国产在热久久| 99精品黄色片免费大全| 欧美一区二区久久| 亚洲视频一区二区免费在线观看 | 亚洲精品国产a| 奇米影视在线99精品| 成人av资源站| 666欧美在线视频| 欧美国产精品一区二区| 亚洲一级在线观看| 国产精品亚洲成人| 51久久夜色精品国产麻豆| 欧美国产在线观看| 青青草成人在线观看| 成年人午夜久久久| 久久综合九色综合久久久精品综合| 亚洲欧洲三级电影| 九色综合狠狠综合久久| 欧美亚洲精品一区| 中文字幕一区二| 久久99热99| 欧美精品久久99久久在免费线| 国产精品免费视频一区| 捆绑紧缚一区二区三区视频| 在线免费视频一区二区| 中文字幕国产精品一区二区| 精品一区二区三区在线播放视频| 欧美午夜精品久久久久久超碰| 国产精品天干天干在线综合| 美女精品自拍一二三四| 欧美精品久久一区| 亚洲午夜在线观看视频在线| 成年人国产精品| 中文字幕久久午夜不卡| 国产一区二区在线影院| 欧美一级国产精品| 日本最新不卡在线| 欧美日韩激情在线| 亚洲国产精品久久久男人的天堂| 9久草视频在线视频精品| 国产亚洲欧美在线| 国产在线播放一区三区四| 日韩亚洲欧美一区二区三区| 日韩精品电影一区亚洲| 欧美日韩视频不卡| 午夜视频久久久久久| 在线观看亚洲a| 亚洲伦在线观看| 99久久久国产精品| 国产精品国产三级国产aⅴ原创 | 中文字幕在线不卡视频| 国产精品1区2区3区| 久久精品一区二区三区不卡牛牛 | 国产麻豆视频精品| 欧美xxxx在线观看| 国内精品久久久久影院薰衣草 | 国产一区二区不卡| 欧美精品一区二区蜜臀亚洲| 精品综合免费视频观看| 337p日本欧洲亚洲大胆精品| 国产综合色视频| 精品福利二区三区| 国产成人精品亚洲日本在线桃色| 欧美国产激情一区二区三区蜜月| 成人免费看的视频| 一区二区三区.www| 欧美另类变人与禽xxxxx| 看电影不卡的网站| 国产欧美在线观看一区| 91免费观看视频| 亚洲国产一区二区视频| 日韩欧美电影一区| 国产99久久久久| 一区二区三区av电影| 日韩限制级电影在线观看| 国产激情视频一区二区三区欧美| 日韩美女视频19| 欧美日韩高清在线播放| 久久99国产乱子伦精品免费| 国产精品麻豆一区二区| 欧美人与z0zoxxxx视频| 狠狠色丁香九九婷婷综合五月|