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

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

?? pfminlcon.m

?? matlab7 gads工具箱
?? M
字號:
function [X,FVAL,EXITFLAG,OUTPUT] = pfminlcon(FUN,initialX,Aineq,Bineq,Aeq,Beq,LB,UB,options)
%PFMINLCON Finds a linearly constrained minimum of a function.
%   PFMINLCON solves problems of the form:
%           min F(X)    subject to:      A*x <= b
%            X                          Aeq*x = beq
%                                      LB <= X <= UB 
%          
%   X = PFMINLCON(FUN,X0) starts at X0 and finds a local minimum X to the
%   function FUN. FUN accepts input X and returns a scalar function value 
%   F evaluated at X. X0 may be a scalar or vector.
%
%   X = PFMINLCON(FUN,X0,A,b) starts at X0 and finds a local minimum X to the
%   function FUN, subject to  A*x <= b. If A is a matrix of size M X N then M is the 
%   number of linear inequality constraints and N is the number of variables. b should a 
%   column vector of length M.
%
%   X = PFMINLCON(FUN,X0,A,b,Aeq,beq) starts at X0 and finds a local minimum X to the
%   function FUN, subject to  A*x <= b and  Aeq*x = beq. If Aeq is a matrix of size M X N 
%   then M is the number of linear equality constraints and N is the number of variables. 
%   beq should a column vector of length M. If there are no inequality constraints, pass 
%   empty matrices for A and b.
%
%   X = PFMINLCON(FUN,X0,A,b,Aeq,beq,LB,UB) starts at X0 and finds a local minimum X to the
%   function FUN, subject to  A*x <= b, Aeq*x = beq and LB <= X <= UB.If LB (or UB) is empty 
%   (or not provided) it is automatically expanded to -Inf (or Inf). If there are no inequality 
%   and/or eqality constraints, pass empty matrices for A, b, Aeq and beq.
%
%   X = PFMINLCON(FUN,X0,A,b,Aeq,beq,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] = PFMINLCON(FUN,X0,...) returns the value of the objective function FUN 
%   at the solution X.
%
%   [X,FVAL,EXITFLAG] = PFMINLCON(FUN,X0,...) returns a string EXITFLAG that 
%   describes the exit condition of PFMINLCON.  
%     If EXITFLAG is:
%        > 0 then PFMINLCON converged to a solution X.
%        = 0 then the algorithm reached the maximum number of iterations or maximum number of function evaluations.
%        < 0 then PFMINLCON did not converge to a solution.
%
%   [X,FVAL,EXITFLAG,OUTPUT] = PFMINLCON(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.21.6.2 $  $Date: 2004/03/09 16:15:54 $

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:PFMINLCON:needHandleOrInline','Objective function must be a function handle.');
end

%At least 2 arguments are needed. 
if nargin <2
    error('gads:PFMINLCON:inputArg','PFMINLCON requires at least 2 input arguments.');
end
if nargin < 9,  options = [];
    if nargin < 8, UB = [];
        if nargin < 7, LB = [];
            if nargin <6, Beq = [];
                if nargin <5, Aeq = [];
                    if nargin < 4, Bineq = [];
                        if nargin <3, Aineq= [];
                        end, end, end, end, end, end, end

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

if(~isempty(initialX))
    Iterate.x = initialX(:);
    X = initialX;
    numberOfVariables = length(Iterate.x);
    type ='linearconstraints';
else
    error('gads:PFMINLCON: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 A, L, U.
[Iterate,A,L,U,nineqcstr,neqcstr,ncstr,IndIneqcstr,IndEqcstr,msg,EXITFLAG] = ...
    aluform(Iterate.x,Aineq,Bineq,Aeq,Beq,LB,UB,numberOfVariables,type,verbosity);
if EXITFLAG < 0
    FVAL     =    [];
    X(:)     =  Iterate.x;
    OUTPUT.message = msg;
    if verbosity > 0
        fprintf('%s\n',msg)
    end
    return
end
%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,neqcstr,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
%Set up plot functions
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,nineqcstr,neqcstr,ncstr,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,L,U,IndIneqcstr,IndEqcstr,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,L,U,IndIneqcstr,IndEqcstr,Iter, ...
            FunEval,maxFun,type,NotVectorizedPoll,Cache,cachetol,cachelimit,objFcnArg{:});
    else
        successPoll =0; %Reset this parameter because this is used in updating mesh
    end
    
    %Scale the variables in every iterations
    if strcmpi(scaleMesh,'on') && ~neqcstr
        scale = logscale(LB,UB,mean(Iterate.x,2));
    end
    
    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 % End of while

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一区二区三区免费野_久草精品视频
国产精品色噜噜| 国产jizzjizz一区二区| 久久国产视频网| av在线播放一区二区三区| 欧美日韩大陆一区二区| 中文字幕日韩一区二区| 美女看a上一区| av高清不卡在线| www久久精品| 日本人妖一区二区| 色婷婷激情综合| 国产精品免费av| 久久99国产精品久久| 在线91免费看| 亚洲与欧洲av电影| 99久久久免费精品国产一区二区| 欧美一区二区在线不卡| 日韩午夜在线观看| 亚洲最色的网站| 91在线视频网址| 国产目拍亚洲精品99久久精品 | 一区二区三区四区亚洲| 国产盗摄精品一区二区三区在线| 久久99久久99小草精品免视看| 日韩电影在线观看电影| 91久久奴性调教| **欧美大码日韩| 成人性色生活片| 日本一区二区视频在线观看| 激情欧美一区二区三区在线观看| 国产精品白丝jk黑袜喷水| 91精品中文字幕一区二区三区| 日韩午夜电影在线观看| 日韩精品乱码免费| 欧美精品丝袜久久久中文字幕| 5566中文字幕一区二区电影| 亚洲精品国产一区二区三区四区在线| 国产欧美日韩另类视频免费观看 | 综合亚洲深深色噜噜狠狠网站| 亚洲欧美综合另类在线卡通| 国产美女精品在线| 久久精品免费在线观看| 国产乱人伦偷精品视频免下载 | 亚洲免费观看视频| 在线一区二区三区四区| 一区二区在线看| 欧美这里有精品| 五月激情综合色| 日韩欧美国产1| 国产福利一区二区三区在线视频| 欧美在线观看视频一区二区三区| 欧美一区二区免费视频| 久久国产精品99久久人人澡| 日韩精品一区二区三区蜜臀 | 日本va欧美va瓶| 欧美成人欧美edvon| 国产成人亚洲综合色影视| 亚洲图片激情小说| 欧美日韩国产高清一区二区| 蜜桃av一区二区三区电影| 国产欧美视频一区二区三区| 91丨九色丨国产丨porny| 日本在线不卡视频| 久久精品人人做| 欧美日韩一级二级| 国产麻豆视频精品| 亚洲国产一区二区在线播放| 精品国产乱码久久久久久蜜臀 | 成人中文字幕电影| 亚洲资源中文字幕| 欧美精品一区二区精品网| 成人av第一页| 日本亚洲一区二区| 久久精品欧美一区二区三区不卡 | 丁香另类激情小说| 午夜不卡av免费| 国产欧美一区二区精品秋霞影院| 久久精品国产免费看久久精品| 欧美性大战xxxxx久久久| 久久丁香综合五月国产三级网站| 欧美日韩成人综合天天影院| 国产成人精品影院| 日本欧美一区二区三区乱码| 亚洲日本在线视频观看| 欧美一级艳片视频免费观看| 成人aa视频在线观看| 人人爽香蕉精品| 一区二区三区在线免费视频| 国产日韩欧美一区二区三区乱码| 精品一区二区三区视频| 亚洲影视在线观看| 国产欧美一区二区精品婷婷| 日韩一级片在线观看| 色播五月激情综合网| 成人午夜在线免费| 理论电影国产精品| 丝瓜av网站精品一区二区| 专区另类欧美日韩| 日本一区二区三区高清不卡| 日韩一级成人av| 欧美伊人久久久久久午夜久久久久| 亚洲精品欧美在线| 国产精品第四页| 久久精品欧美一区二区三区不卡| 国产成人av福利| 极品少妇xxxx精品少妇| 日韩国产高清在线| 午夜a成v人精品| 亚洲精品视频观看| 亚洲精品国产精华液| 亚洲欧美成aⅴ人在线观看 | 午夜在线成人av| 亚洲综合精品自拍| 一区二区三区国产精品| 亚洲三级免费观看| 亚洲精品高清视频在线观看| 亚洲男同性恋视频| 亚洲精品视频免费看| 一区二区三区四区激情| 亚洲最大色网站| 五月婷婷激情综合| 日韩在线一区二区三区| 欧美a一区二区| 麻豆精品在线视频| 国产一区二区视频在线| 国产一区二区网址| 懂色av一区二区夜夜嗨| 91香蕉视频在线| 欧美三级日本三级少妇99| 欧美一区三区二区| 久久久久国产精品麻豆| 国产亚洲精品精华液| 亚洲天堂成人在线观看| 一区二区三区不卡在线观看 | 亚洲一二三区在线观看| 亚洲精选免费视频| 日本欧美一区二区三区乱码| 韩国精品主播一区二区在线观看 | 国产激情偷乱视频一区二区三区| 亚洲一区二区偷拍精品| 亚洲3atv精品一区二区三区| 日本亚洲欧美天堂免费| 国产一区在线看| 成人午夜视频在线观看| 欧美日韩在线精品一区二区三区激情| 国产98色在线|日韩| 91福利国产精品| 91精品在线麻豆| 国产精品视频在线看| 亚洲午夜精品一区二区三区他趣| 中文字幕一区二区视频| 亚洲卡通动漫在线| 黑人巨大精品欧美黑白配亚洲| 日韩在线观看一区二区| 成人一区二区在线观看| 欧美系列在线观看| 久久久久高清精品| 亚洲丶国产丶欧美一区二区三区| 亚洲视频 欧洲视频| 日本不卡高清视频| 成人高清伦理免费影院在线观看| 狠狠色综合播放一区二区| av高清不卡在线| 精品国产乱码久久久久久1区2区| 日韩一级免费一区| 国产精品久久777777| 欧美a一区二区| 欧美在线999| 国产欧美日韩精品一区| 免费观看91视频大全| 色狠狠综合天天综合综合| 欧美激情一区二区三区蜜桃视频| 国产夜色精品一区二区av| 日日夜夜精品视频天天综合网| 亚洲二区视频在线| 91天堂素人约啪| 久久久久久毛片| 蜜臀久久久99精品久久久久久| 韩国av一区二区三区四区| 欧美偷拍一区二区| 中文字幕免费一区| 国产一区二区三区久久久 | 日韩激情中文字幕| 欧美综合一区二区三区| 成人欧美一区二区三区黑人麻豆 | 97久久精品人人做人人爽50路| av亚洲精华国产精华精华| 日韩精品一区二区三区蜜臀| 亚洲一区影音先锋| 色av成人天堂桃色av| 国产精品精品国产色婷婷| 国产一区二区三区四区五区美女 | 成人国产亚洲欧美成人综合网| 从欧美一区二区三区| 久久伊人蜜桃av一区二区| 午夜视频一区在线观看| 欧美午夜一区二区三区免费大片| 日韩三级高清在线| 日韩av在线发布| 精品美女在线观看|