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

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

?? fgoalattain.m

?? 遺傳算法的小程序
?? M
?? 第 1 頁 / 共 2 頁
字號:
function [x,FVAL,ATTAINFACTOR,EXITFLAG,OUTPUT,LAMBDA] = fgoalattain(FUN,x,GOAL,WEIGHT,A,B,Aeq,Beq,LB,UB,NONLCON,options,varargin)
%FGOALATTAIN Solves the multi-objective goal attainment optimization problem.
%
%   X = FGOALATTAIN(FUN,X0,GOAL,WEIGHT)
%   tries to make the objective functions (F) supplied by the function FUN
%   attain the goals (GOAL) by varying X. The goals are weighted according to
%   WEIGHT. In doing so the following nonlinear programming problem is solved:
%            min     { LAMBDA :  F(X)-WEIGHT.*LAMBDA<=GOAL } 
%          X,LAMBDA  
%
%   FUN accepts input X and returns a vector (matrix) of function values F 
%   evaluated at X. X0 may be a scalar, vector, or matrix.  
%
%   X=FGOALATTAIN(FUN,X0,GOAL,WEIGHT,A,B) solves the goal attainment problem
%   subject to the linear inequalities A*X <= B.
%
%   X=FGOALATTAIN(FUN,X0,GOAL,WEIGHT,A,B,Aeq,Beq) solves the goal attainment problem
%   subject to the linear equalities Aeq*X = Beq as well.  
%
%   X=FGOALATTAIN(FUN,X0,GOAL,WEIGHT,A,B,Aeq,Beq,LB,UB) defines a set of lower 
%   and upper bounds on the design variables, X, so that the solution is in 
%   the range LB <= X <= UB. Use empty matrices for LB and U if no bounds 
%   exist. Set LB(i) = -Inf if X(i) is unbounded below; set UB(i) = Inf if X(i) is 
%   unbounded above.
%   
%   X=FGOALATTAIN(FUN,X0,GOAL,WEIGHT,A,B,Aeq,Beq,LB,UB,NONLCON) subjects the 
%   goal attainment problem to the constraints defined in NONLCON (usually an 
%   M-file: NONLCON.m). The function NONLCON should return the vectors
%   C and Ceq, representing the nonlinear inequalities and equalities respectively, 
%   when called with feval: [C, Ceq] = feval(NONLCON,X). FGOALATTAIN 
%   optimizes such that C(X)<=0 and Ceq(X)=0.
%
%   X=FGOALATTAIN(FUN,X0,GOAL,WEIGHT,A,B,Aeq,Beq,LB,UB,NONLCON,OPTIONS) minimizes the 
%   with default optimization parameters replaced by values in the structure OPTIONS, 
%   an argument created with the OPTIMSET function.  See OPTIMSET for details.  Used
%   options are Display, TolX, TolFun, TolCon, DerivativeCheck, GradObj, GradConstr, 
%   MaxFunEvals, MaxIter, MeritFunction, GoalsExactAchieve, Diagnostics, DiffMinChange, 
%   and DiffMaxChange. Use the GradObj option to specify that FUN may be called with 
%   two output arguments where the second, G, is the partial derivatives of the
%   function df/dX, at the point X: [F,G] = feval(FUN,X). Use the GradConstr
%   option to specify that NONLCON may be called with four output arguments:
%   [C,Ceq,GC,GCeq] = feval(NONLCON,X) where GC is the partial derivatives of the 
%   constraint vector of inequalities C an GCeq is the partial derivatives of the 
%   constraint vector of equalities Ceq. Use OPTIONS = [] as a place holder if 
%   no options are set.
%
%   X=FGOALATTAIN(FUN,X0,GOAL,WEIGHT,A,B,Aeq,Beq,LB,UB,NONLCON,OPTIONS,P1,P2,...)
%   passes the problem-dependent parameters P1,P2,... directly to the 
%   functions FUN and NONLCON: feval(FUN,X,P1,P2,...) and feval(NONLCON,X,P1,P2,...).  
%   Pass empty matrices for A, B, Aeq, Beq, LB, UB, NONLCON and OPTIONS to use the 
%   default values.
%
%   [X,FVAL]=FGOALATTAIN(FUN,X0,...) returns the value of the objective 
%   function FUN at the solution X.
%
%   [X,FVAL,ATTAINFACTOR]=FGOALATTAIN(FUN,X0,...) returns the attainment factor
%   at the solution X. If ATTAINFACTOR is negative, the goals have been over-
%   achieved; if ATTAINFACTOR is positive, the goals have been under-achieved.
%
%   [X,FVAL,ATTAINFACTOR,EXITFLAG]=FGOALATTAIN(FUN,X0,...) returns a string 
%   EXITFLAG that describes the exit condition of FGOALATTAIN.  
%   If EXITFLAG is:
%      > 0 then FGOALATTAIN converged to a solution X.
%      0   then the maximum number of function evaluations was reached.
%      < 0 then FGOALATTAIN did not converge to a solution.
%   
%   [X,FVAL,ATTAINFACTOR,EXITFLAG,OUTPUT]=FGOALATTAIN(FUN,X0,...) returns a structure
%   OUTPUT with the number of iterations taken in OUTPUT.iterations, the number
%   of function evaluations in OUTPUT.funcCount, and the algorithm used in OUTPUT.algorithm.
% 
%   [X,FVAL,ATTAINFACTOR,EXITFLAG,OUTPUT,LAMBDA]=FGOALATTAIN(FUN,X0,...) returns 
%   the Lagrange multiplier at the solution X: LAMBDA.lower for LB, LAMBDA.upper 
%   for UB, LAMBDA.ineqlin is for the linear inequalities, LAMBDA.eqlin is for 
%   the linear equalities, LAMBDA.ineqnonlin is for the nonlinear inequalities, 
%   and LAMBDA.eqnonlin is for the nonlinear equalities.
%
%   For more details, type the M-file FGOALATTAIN.M.
%
%   See also OPTIMSET, OPTIMGET.

%   Copyright 1990-2002 The MathWorks, Inc. 
%   $Revision: 1.22 $  $Date: 2002/03/12 20:36:21 $
%   Andy Grace 7-9-90.


% ---------------------More Details---------------------------
% [x]=fgoalattain(F,x,GOAL,WEIGHT,[],[],[],[],[],[],[],OPTIONS)
% Solves the goal attainment problem where:
%
%  X  Is a set of design parameters which can be varied.
%  F  Is a set of objectives which are dependent on X.
%  GOAL Set of design goals. The optimizer will try to make 
%         F<GOAL, F=GOAL, or F>GOAL depending on the formulation.
%  WEIGHT Set of weighting parameters which determine the 
%         relative under or over achievement of the objectives.
%         Notes:
%           1.Setting WEIGHT=abs(GOAL)  will try to make the objectives
%             less than the goals resulting in roughly the same 
%             percentage under or over achievement of the goals.
%             Note: use WEIGHT 1 for GOALS that are 0 (see Note 3 below).
%           2. Setting WEIGHT=-abs(GOAL) will try to make the objectives
%              greater then the goals resulting in roughly the same percentage 
%              under- or over-achievement in the goals.
%             Note: use WEIGHT 1 for GOALS that are 0 (see Note 3 below).
%           3. Setting WEIGHT(i)=0  indicates a hard constraint.
%              i.e. F<=GOAL.
%  OPTIONS.GoalsExactAchieve indicates the number of objectives for which it is
%      required for the objectives (F) to equal the goals (GOAL). 
%      Such objectives should be partitioned into the first few 
%      elements of F.
%      The remaining parameters determine tolerance settings.
%          
%
%
defaultopt = struct('Display','final',...
   'TolX',1e-6,'TolFun',1e-6,'TolCon',1e-6,'DerivativeCheck','off',...
   'Diagnostics','off',...
   'GradObj','off','GradConstr','off','MaxFunEvals','100*numberOfVariables',...
   'MaxIter',400,...
   'MaxSQPIter',Inf,...
   'Hessian','off','LargeScale','off',... 
   'DiffMaxChange',1e-1,'DiffMinChange',1e-8, 'MeritFunction','multiobj',...
   'GoalsExactAchieve', 0);
% If just 'defaults' passed in, return the default options in X
if nargin==1 & nargout <= 1 & isequal(FUN,'defaults')
   x = defaultopt;
   return
end

caller='fgoalattain';

if nargin < 12, options = [];
   if nargin < 11, NONLCON = [];
      if nargin < 10, UB = [];
         if nargin < 9, LB = [];
            if nargin < 8, Beq = [];
               if nargin < 7, Aeq = [];
                  if nargin < 6, B = [];
                     if nargin < 5, A = [];
                        if nargin < 4, error('fgoalattain requires four input arguments'); 
                        end,end,end,end,end,end,end,end,end 
                        

xnew=[x(:);0];

numberOfVariablesplus1 = length(xnew);
numberOfVariables = numberOfVariablesplus1 - 1;
WEIGHT = WEIGHT(:);
GOAL = GOAL(:);

diagnostics = isequal(optimget(options,'Diagnostics',defaultopt,'fast'),'on');
switch optimget(options,'Display',defaultopt,'fast')
case {'off','none'}
   verbosity = 0;
case 'iter'
   verbosity = 2;
case 'final'
   verbosity = 1;
otherwise
   verbosity = 1;
end

% Set to column vectors
B = B(:);
Beq = Beq(:);

[xnew(1:numberOfVariables),l,u,msg] = checkbounds(xnew(1:numberOfVariables),LB,UB,numberOfVariables);
if ~isempty(msg)
   EXITFLAG = -1;
   [FVAL,ATTAINFACTOR,OUTPUT,LAMBDA] = deal([]);
   x(:) = xnew(1:numberOfVariables);
   if verbosity > 0
      disp(msg)
   end
   return
end

neqgoals = optimget(options, 'GoalsExactAchieve',defaultopt,'fast');
% meritFunctionType is 1 unless changed by user to fmincon merit function;
% formerly options(7)
% 0 uses the fmincon single-objective merit and Hess; 1 is the default
meritFunctionType = strcmp(optimget(options,'MeritFunction',defaultopt,'fast'),'multiobj');

lenVarIn = length(varargin);
% goalgra and goalfun also take: neqgoals,funfcn,gradfcn,WEIGHT,GOAL,x
goalargs = 6; 

gradflag = strcmp(optimget(options,'GradObj',defaultopt,'fast'),'on');
gradconstflag = strcmp(optimget(options,'GradConstr',defaultopt,'fast'),'on');
hessflag = strcmp(optimget(options,'Hessian',defaultopt,'fast'),'on');
if hessflag
   warning('FGOALATTAIN does not use user-supplied Hessian.')
   hessflag = 0;
end

if isempty(NONLCON)
   constflag = 0;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美喷潮久久久xxxxx| 国产欧美久久久精品影院| 日韩欧美在线123| 国产日韩av一区| 午夜亚洲国产au精品一区二区| 久久精品99国产精品日本| 99精品欧美一区二区蜜桃免费 | 99re热视频精品| 欧美福利视频一区| 国产精品久久国产精麻豆99网站| 亚洲bt欧美bt精品| 91小宝寻花一区二区三区| 精品国精品自拍自在线| 亚洲网友自拍偷拍| 成人精品电影在线观看| 久久精品人人做人人综合| 日韩高清不卡一区二区| 欧美优质美女网站| 日韩国产精品大片| 欧美色欧美亚洲另类二区| 国产精品理论在线观看| 国产福利不卡视频| 精品欧美一区二区三区精品久久| 亚洲午夜一区二区三区| 色综合视频在线观看| 国产精品无码永久免费888| 国产在线精品一区二区不卡了| 在线不卡一区二区| 日韩精品一级中文字幕精品视频免费观看 | 在线免费观看一区| 自拍偷拍国产亚洲| 99re热这里只有精品免费视频| 国产精品麻豆久久久| 福利视频网站一区二区三区| 久久久高清一区二区三区| 久久电影网电视剧免费观看| 91精品免费在线观看| 日韩精品一级二级 | 国产suv精品一区二区6| 亚洲成人av在线电影| 91久久精品一区二区| 亚洲情趣在线观看| 91社区在线播放| 亚洲三级理论片| 欧美在线观看视频一区二区| 亚洲福利视频导航| 91精品午夜视频| 日韩三区在线观看| 欧美日韩一区二区电影| 99久久精品情趣| 九色综合国产一区二区三区| 国产精品久久久久久久久免费相片| 91色porny| 欧美日韩国产成人在线免费| 日本精品一级二级| 精品一区二区三区免费观看| 亚洲激情自拍偷拍| 国产精品久久久久aaaa樱花| 偷拍一区二区三区| 精品久久国产97色综合| 成人激情电影免费在线观看| 亚洲欧洲精品成人久久奇米网| 色综合天天综合给合国产| 亚洲mv在线观看| 精品裸体舞一区二区三区| 国产东北露脸精品视频| 亚洲欧洲日本在线| 欧美日韩一区小说| 蜜乳av一区二区| 国产精品剧情在线亚洲| 欧美精品久久久久久久久老牛影院| 精品一区二区三区久久| 国产日本一区二区| 欧美日韩情趣电影| 国产高清久久久| 午夜精品在线看| 国产精品人成在线观看免费 | 男人的天堂亚洲一区| 国产欧美日韩精品一区| 欧美日韩国产影片| 成人黄色网址在线观看| 麻豆精品一区二区av白丝在线| 国产精品进线69影院| 日韩欧美自拍偷拍| 欧美色综合网站| 欧美视频中文一区二区三区在线观看 | 看电视剧不卡顿的网站| 亚洲狼人国产精品| 亚洲精品一区二区三区福利| 欧美三电影在线| 成人激情免费视频| 久久国产综合精品| 亚洲一区二区视频在线| 国产精品伦理在线| 久久久久久97三级| 制服丝袜亚洲网站| 欧美一a一片一级一片| 成人a免费在线看| 经典三级视频一区| 视频一区在线播放| 亚洲综合av网| 一区二区三区视频在线看| 国产欧美一区二区在线| 欧美zozozo| 日韩亚洲欧美一区二区三区| 欧美日韩一区久久| 欧美亚洲一区三区| 色八戒一区二区三区| 不卡视频在线观看| 成av人片一区二区| 懂色一区二区三区免费观看| 国产美女在线观看一区| 六月婷婷色综合| 久久精品国产999大香线蕉| 日本午夜精品视频在线观看| 亚洲成av人片一区二区三区| 一区二区三区四区视频精品免费| 亚洲蜜臀av乱码久久精品| 亚洲视频你懂的| 亚洲色图.com| 亚洲精选视频在线| 亚洲永久免费视频| 亚洲在线中文字幕| 天天综合天天做天天综合| 人人爽香蕉精品| 麻豆国产精品一区二区三区 | 国产精品电影一区二区三区| 欧美高清在线精品一区| 国产精品毛片大码女人| 亚洲伦理在线精品| 亚洲自拍偷拍图区| 日本不卡视频在线观看| 麻豆国产欧美一区二区三区| 国产精品一区在线| 99久久综合精品| 色婷婷精品久久二区二区蜜臂av| 欧洲一区在线观看| 欧美高清视频不卡网| 精品久久一区二区| 亚洲国产精品精华液2区45| 亚洲视频小说图片| 日本欧美在线观看| 国内精品久久久久影院薰衣草| 国产成人精品免费视频网站| 91啪亚洲精品| 91精品国产综合久久香蕉的特点 | 秋霞午夜av一区二区三区| 国内精品嫩模私拍在线| 91蝌蚪porny| 91精品啪在线观看国产60岁| 亚洲国产高清不卡| 一区二区三区电影在线播| 久久99久久久欧美国产| bt欧美亚洲午夜电影天堂| 欧美性生活影院| 国产欧美精品一区二区色综合朱莉 | 日韩一级在线观看| 国产精品每日更新| 日韩不卡手机在线v区| 粉嫩av一区二区三区粉嫩| 欧美日韩电影在线| 中文字幕乱码日本亚洲一区二区 | 亚洲视频一区在线| 麻豆极品一区二区三区| 91美女在线观看| 欧美α欧美αv大片| 一区二区在线观看视频| 国产精品一区二区久久精品爱涩| 91久久精品午夜一区二区| 精品美女一区二区三区| 亚洲国产三级在线| 国产精品1区2区3区| 欧美人成免费网站| 中文字幕一区免费在线观看| 久久精品国产色蜜蜜麻豆| 91麻豆免费视频| 国产视频一区在线观看| 日韩精品一二三| 色视频一区二区| 国产精品传媒入口麻豆| 狠狠狠色丁香婷婷综合激情| 色88888久久久久久影院按摩| 久久精品亚洲乱码伦伦中文| 日韩综合在线视频| 欧洲一区在线电影| 亚洲天堂成人网| 国产成人免费视频网站高清观看视频| 欧美久久久影院| 亚洲亚洲人成综合网络| 日本高清无吗v一区| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 精品国产123| 亚洲高清久久久| 一本一道波多野结衣一区二区| 国产亚洲自拍一区| 国产一区二区三区蝌蚪| 26uuu精品一区二区| 激情深爱一区二区| 日韩欧美在线影院| 麻豆一区二区在线|