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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? fgoalattain.m

?? 遺傳算法的小程序
?? M
?? 第 1 頁 / 共 2 頁
字號(hào):
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;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美高清dvd| 538在线一区二区精品国产| 亚洲伦理在线精品| 欧美一级艳片视频免费观看| 国产精品影视网| 午夜精品影院在线观看| 欧美国产乱子伦 | 欧美一区二区三区四区高清| 国产呦精品一区二区三区网站| 不卡欧美aaaaa| 麻豆高清免费国产一区| 亚洲精品精品亚洲| 中文字幕av一区二区三区| 日韩精品中文字幕一区二区三区| 午夜伦理一区二区| 综合亚洲深深色噜噜狠狠网站| 盗摄精品av一区二区三区| 亚洲成人免费在线观看| 国产精品久久久久国产精品日日| 91麻豆精品视频| 国产传媒欧美日韩成人| 理论电影国产精品| 日韩极品在线观看| 亚洲成人一区二区在线观看| 专区另类欧美日韩| 国产婷婷色一区二区三区四区 | 国产成人免费xxxxxxxx| 蜜臀av在线播放一区二区三区 | 在线播放/欧美激情| 色婷婷激情一区二区三区| 成人激情午夜影院| 高清免费成人av| 国产91丝袜在线18| 国产精品亚洲第一| 国产曰批免费观看久久久| 另类调教123区| 久久99精品久久只有精品| 日本91福利区| 久久 天天综合| 国产综合色视频| 精品一区二区三区在线视频| 久久国产精品99精品国产| 久久不见久久见免费视频7| 男人的天堂亚洲一区| 麻豆精品视频在线观看| 久久电影网站中文字幕| 国产一区二区三区黄视频| 精品亚洲aⅴ乱码一区二区三区| 1区2区3区欧美| 亚洲精品免费播放| 亚洲一区二区三区美女| 午夜国产精品影院在线观看| 日韩精品电影在线观看| 极品美女销魂一区二区三区| 国产一二三精品| 成人av综合在线| 一道本成人在线| 欧美日韩高清不卡| 日韩精品一区二区三区四区视频| 91麻豆文化传媒在线观看| 欧美性视频一区二区三区| 在线不卡欧美精品一区二区三区| 丁香亚洲综合激情啪啪综合| 不卡电影一区二区三区| 在线观看视频一区二区欧美日韩| 国产精品99久久久久久宅男| 99久久免费精品| 欧美日韩精品专区| 欧美大胆一级视频| 国产精品福利电影一区二区三区四区| 欧美电视剧免费观看| 国产日韩欧美不卡在线| 亚洲精品成人天堂一二三| 免费日韩伦理电影| 9久草视频在线视频精品| 欧美日韩精品三区| 欧美国产欧美综合| 五月天欧美精品| 粉嫩高潮美女一区二区三区 | 欧美精品一区二区三区四区| 国产精品久久久久久久久免费樱桃| 日韩欧美一二三区| 亚洲私人影院在线观看| 秋霞国产午夜精品免费视频| 成人免费看视频| 欧美三级视频在线播放| 国产喂奶挤奶一区二区三区| 亚洲精品视频免费看| 精品午夜一区二区三区在线观看| 另类人妖一区二区av| 97久久精品人人做人人爽| 日韩一区二区三区免费看| 中文字幕精品一区二区精品绿巨人 | 亚洲一区二区三区四区在线免费观看| 亚洲国产精品99久久久久久久久| 精品sm捆绑视频| 一区二区三区在线观看视频| 日本不卡1234视频| 日本道色综合久久| 久久久久久久综合| 日韩1区2区日韩1区2区| 99re这里只有精品视频首页| 亚洲精品一区二区三区精华液 | 久久精品国产成人一区二区三区| 亚洲va欧美va人人爽| 国产精品123| 日韩欧美国产1| 亚洲大片免费看| 99精品视频一区二区三区| 精品少妇一区二区| 日韩高清在线不卡| 色综合天天综合网国产成人综合天| 91成人免费在线| 国产精品天美传媒| 国产精品888| 欧美mv日韩mv国产网站app| 亚洲成人激情社区| 色综合色综合色综合色综合色综合| 色综合色综合色综合| 欧美激情中文不卡| 国产一区二区三区香蕉| 日韩视频一区二区三区在线播放 | 亚洲午夜激情av| 成人av在线资源| 久久精品视频在线看| 精油按摩中文字幕久久| 欧美一级搡bbbb搡bbbb| 日韩成人精品在线观看| 欧美伦理影视网| 亚洲成在线观看| 欧美三级中文字幕在线观看| 一区二区国产视频| 欧洲一区在线电影| 一区二区三区免费网站| 欧洲av在线精品| 亚洲最快最全在线视频| 91福利视频在线| 亚洲一区二区av在线| 欧美日韩中文字幕精品| 亚洲成a人在线观看| 67194成人在线观看| 日韩高清一区在线| 精品少妇一区二区三区| 韩国欧美国产1区| 国产日韩v精品一区二区| 国产成人免费在线观看不卡| 中文字幕不卡在线播放| 99精品视频免费在线观看| 一区二区免费看| 制服丝袜亚洲色图| 精品一区二区三区的国产在线播放| 99久久99久久久精品齐齐| 中文字幕在线不卡一区 | 成人免费视频一区| 日本一区二区在线不卡| 99久久伊人网影院| 亚洲精品免费看| 91精品国产麻豆国产自产在线| 亚洲欧美日韩中文字幕一区二区三区| 全国精品久久少妇| 久久色视频免费观看| a亚洲天堂av| 亚洲成a人片在线不卡一二三区| 国产不卡高清在线观看视频| 综合分类小说区另类春色亚洲小说欧美 | 国产欧美日韩在线看| 91亚洲大成网污www| 午夜国产精品一区| 精品久久久久久最新网址| 国产成人在线网站| 亚洲精品成人悠悠色影视| 日韩欧美一级片| av电影在线不卡| 日本不卡一二三| 中文字幕在线一区二区三区| 欧美老肥妇做.爰bbww视频| 国产精品一区一区三区| 夜夜嗨av一区二区三区四季av| 99国产精品久久久久久久久久 | 中文字幕制服丝袜一区二区三区| 久久99国产精品久久99果冻传媒| 欧美日韩在线三级| 国产精一区二区三区| 亚洲一区在线播放| 国产欧美综合在线| 欧美日韩精品一区二区三区| 国产电影一区在线| 亚洲自拍另类综合| 国产亚洲一二三区| 欧美绝品在线观看成人午夜影视| 亚洲不卡av一区二区三区| 国产亚洲va综合人人澡精品| 欧美日本一道本在线视频| 成人手机在线视频| 喷水一区二区三区| 亚洲黄色免费网站| 亚洲国产精品成人综合色在线婷婷| 国产麻豆视频一区| 一区二区三区成人| 国产清纯白嫩初高生在线观看91 |