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

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

?? partetooptimalsolution.m

?? 一個用MATLAB編寫的優化控制工具箱
?? M
字號:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Example of finding Pareto-optimal solutions for a multiobjective% optimization problem.%% Example of computation of Pareto-optimal strategies for % bimatrix games. Ignores issues of multiple optima in payoff% matrices and as p varies.%% Example of problems found in defining the Pareto cost%% Author: K. Passino% Version: 4/5/02%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% First, example: multiobjective optimization - quadratic caseclear all% Define payoff (cost) functions for each playertheta1=-4:0.05:4; % Ok, while we think of it as an infinite game computationally	              % we of course only study a finite number of points.m=length(theta1);theta2=-5:0.05:5;n=length(theta2);% A set of cost functions, J1 for player 1 and J2 for player 2for ii=1:length(theta1)	for jj=1:length(theta2)		J1(ii,jj)=(theta1(ii)-2)^2 + (theta2(jj)-3)^2; 		J2(ii,jj)=(theta1(ii)+2)^2 + (theta2(jj)+2)^2;;	endend% Next, compute the reaction curves for each player and will plot on top of J1 and J2for j=1:length(theta2)	[temp,t1]=min(J1(:,j)); % Find the min point on J1 with theta2 fixed, for all theta2	R1(j)=theta1(t1); % Compute the theta1 value that is the best reaction to each theta2endfor i=1:length(theta1)	[temp,t2]=min(J2(i,:)); % Find the min point on J2 with theta1 fixed	R2(i)=theta2(t2); % Compute the theta2 value that is the best reaction to each theta1end% Compute the family of Pareto-optimal strategies:p=0:0.01:1; % Used for defining the Pareto cost matricesfor k=1:length(p)	for i=1:m		for j=1:n			Jp(i,j)=p(k)*J1(i,j)+(1-p(k))*J2(i,j); % Form the Pareto cost matrix		end	end	[temp,indicesmin]=min(Jp); % Find the min elements of each column of Jp, and their indices	[paretooptimalval(k),paretooptimalstrat2(k)]=min(temp); % Gives min value and its column index	paretooptimalstrat1(k)=indicesmin(paretooptimalstrat2(k)); % Gives the row index	J1opt(k)=J1(paretooptimalstrat1(k),paretooptimalstrat2(k));  % Find the cost to J1 for the Pareto-point	J2opt(k)=J2(paretooptimalstrat1(k),paretooptimalstrat2(k));  % Find the cost to J2 for the Pareto-point	% Next, find the theta1 and theta2 values for plotting below	theta1k(k)=theta1(paretooptimalstrat1(k));	theta2k(k)=theta2(paretooptimalstrat2(k));	endfigure(1)clfcolormap(jet)contour(theta2,theta1,J1,14)hold oncontour(theta2,theta1,J2,14)hold onplot(theta2,R1,'k-')hold onplot(R2,theta1,'k--')hold onplot(theta2k,theta1k,'x')xlabel('\theta^2')ylabel('\theta^1')title('J_1, J_2, R_1 (-), R_2 (--), "x" marks Pareto solution')hold off%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Do another example: a bimatrix gameclear all% Set the number of different possible values of the decision variablesm=5; % If change will need to modify specific J1 value chosen belown=3; % Set the payoff matrices J1(i,j) and J2(i,j):% For generating random bimatrix games:J1=round(10*rand(m,n)-5*ones(m,n)) % Make it random integers between -5 and +5J2=round(10*rand(m,n)-5*ones(m,n)) % Make it random integers between -5 and +5% These can be used to find other equilibria. For instance, if you use the following two% payoff matrices then you will get uniqueness in the response of P2.J1 =[4     1    -4;    -2     5     3;    -3     2    -1;     4     4     4;    -3    -5     2]J2 =[2    -1     0;    -2     4     0;    -3     0    -1;    -3     3     4;    -3     0    -5]% One set of payoff matrices that for i=4 by P1 gives two possible responses from the follower P2% that both achieve minimum loss for P2.J1 =[-1     5    -3;    -2     5     1;     4     3    -2;    -5    -1     5;     3     0     2]J2 =[-1     2    -3;     2    -3     1;    -2     3     1;    -1     1    -1;     4    -4     1]% Compute the family of Pareto-optimal strategies:p=0:0.01:1; % Used for defining the Pareto cost matricesfor k=1:length(p)	for i=1:m		for j=1:n			Jp(i,j)=p(k)*J1(i,j)+(1-p(k))*J2(i,j); % Form the Pareto cost matrix		end	end	[temp,indicesmin]=min(Jp); % Find the min elements of each column of Jp, and their indices	[paretooptimalval(k),paretooptimalstrat2(k)]=min(temp); % Gives min value and its column index	paretooptimalstrat1(k)=indicesmin(paretooptimalstrat2(k)); % Gives the row index	J1opt(k)=J1(paretooptimalstrat1(k),paretooptimalstrat2(k));  % Find the cost to J1 for the Pareto-point	J2opt(k)=J2(paretooptimalstrat1(k),paretooptimalstrat2(k));  % Find the cost to J2 for the Pareto-pointendfigure(2)clfsubplot(311)plot(p,paretooptimalval,'ko',p,J1opt,'k-',p,J2opt,'k--')ylabel('Costs')title('J_p (o), J_1 (-), and J_2 (--) for Pareto points')subplot(312)plot(p,paretooptimalstrat1,'kx')ylabel('i^*')title('Decision of player 1 (x)')subplot(313)plot(p,paretooptimalstrat2,'k*')xlabel('Pareto parameter, p')ylabel('j^*')title('Decision of player 2 (*)')%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Do another example: To show problems  in defining the Pareto costclear all% Define payoff (cost) functions for each playertheta1=-4:0.05:4; % Ok, while we think of it as an infinite game computationally	              % we of course only study a finite number of points.m=length(theta1);theta2=-5:0.05:5;n=length(theta2);% A set of cost functions, J1 for player 1 and J2 for player 2for ii=1:length(theta1)	for jj=1:length(theta2)		J1(ii,jj)=-2*(exp( (-(theta1(ii)-2)^2)/5 +(-4*(theta1(ii)*theta2(jj))/20) + ((-(theta2(jj)-3)^2)/2))); 		J2(ii,jj)=-1*(exp( (-(theta1(ii)-1)^2)/4 + (5*(theta1(ii)*theta2(jj))/10) + ((-(theta2(jj)+1)^2)/2)));	endend% Next, compute the reaction curves for each player and will plot on top of J1 and J2for j=1:length(theta2)	[temp,t1]=min(J1(:,j)); % Find the min point on J1 with theta2 fixed, for all theta2	R1(j)=theta1(t1); % Compute the theta1 value that is the best reaction to each theta2endfor i=1:length(theta1)	[temp,t2]=min(J2(i,:)); % Find the min point on J2 with theta1 fixed	R2(i)=theta2(t2); % Compute the theta2 value that is the best reaction to each theta1end% Compute the family of Pareto-optimal strategies:p=0:0.01:1; % Used for defining the Pareto cost matricesfor k=1:length(p)	for i=1:m		for j=1:n			Jp(i,j)=p(k)*J1(i,j)+(1-p(k))*J2(i,j); % Form the Pareto cost matrix		end	end	[temp,indicesmin]=min(Jp); % Find the min elements of each column of Jp, and their indices	[paretooptimalval(k),paretooptimalstrat2(k)]=min(temp); % Gives min value and its column index	paretooptimalstrat1(k)=indicesmin(paretooptimalstrat2(k)); % Gives the row index	J1opt(k)=J1(paretooptimalstrat1(k),paretooptimalstrat2(k));  % Find the cost to J1 for the Pareto-point	J2opt(k)=J2(paretooptimalstrat1(k),paretooptimalstrat2(k));  % Find the cost to J2 for the Pareto-point	% Next, find the theta1 and theta2 values for plotting below	theta1k(k)=theta1(paretooptimalstrat1(k));	theta2k(k)=theta2(paretooptimalstrat2(k));	endfigure(3)clfsurf(theta2,theta1,0.5*J1+0.5*J2)colormap(white)xlabel('\theta^2')ylabel('\theta^1')zlabel('J_p')title('J_p for p=0.5')figure(4)clfcontour(theta2,theta1,0.5*J1+0.5*J2,10)colormap(jet)xlabel('\theta^2')ylabel('\theta^1')zlabel('J_p')title('J_p contour for p=0.5')figure(5)clfcolormap(jet)contour(theta2,theta1,J1,14)hold oncontour(theta2,theta1,J2,14)hold onplot(theta2,R1,'k-')hold onplot(R2,theta1,'k--')hold onplot(theta2k,theta1k,'x')xlabel('\theta^2')ylabel('\theta^1')title('J_1, J_2, R_1 (-), R_2 (--), "x" marks Pareto solution')hold off%-------------------------------------% End of program%-------------------------------------

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产色综合久久不卡蜜臀| 日韩毛片视频在线看| av成人老司机| 久久精品国产网站| 成人美女在线视频| 日韩欧美激情四射| 国产欧美一区二区三区在线老狼| 欧美激情综合在线| 午夜国产精品一区| 91国产视频在线观看| 麻豆免费精品视频| 欧美日本国产一区| 97久久精品人人澡人人爽| 久久99久久久久| 91麻豆精品国产91久久久使用方法 | 久久久激情视频| 91精品视频网| 欧洲生活片亚洲生活在线观看| 国产高清不卡一区| 成人av免费在线观看| 激情小说亚洲一区| 国产欧美精品一区aⅴ影院| 成人av网站在线观看| 日韩美女视频一区二区 | 懂色一区二区三区免费观看| 亚洲va欧美va国产va天堂影院| 亚洲国产成人午夜在线一区 | 国产日韩欧美高清在线| 欧美激情一区二区三区| 激情偷乱视频一区二区三区| 欧美精品国产精品| 国产宾馆实践打屁股91| 日日夜夜精品视频天天综合网| 日韩免费观看2025年上映的电影| 国产一区二区精品在线观看| 麻豆一区二区三| 蜜桃久久久久久| 亚洲国产精品久久久久婷婷884| 偷拍一区二区三区四区| 国产精品一区二区在线观看不卡| 色婷婷一区二区三区四区| 91精品欧美综合在线观看最新| 久久久99久久| 蜜桃免费网站一区二区三区| 日本精品一区二区三区四区的功能| 欧美精品免费视频| 亚洲精品videosex极品| 精品无码三级在线观看视频| 在线观看www91| 国产精品理论片在线观看| 七七婷婷婷婷精品国产| 色婷婷综合久久久久中文 | 欧美性色黄大片| 国产欧美日本一区视频| 日日摸夜夜添夜夜添国产精品| 波多野结衣在线一区| 精品日韩在线观看| 天堂久久久久va久久久久| 成人手机在线视频| 26uuu精品一区二区| 日韩精品一级二级| 欧美日韩亚洲另类| 亚洲另类中文字| 99久久伊人精品| 中文字幕欧美激情| 国产精品99久久久久久似苏梦涵| 欧美一区二区在线看| 亚洲国产精品久久久久婷婷884 | 丝袜亚洲另类丝袜在线| 色欧美日韩亚洲| 亚洲欧美日韩国产手机在线| 成人午夜精品一区二区三区| 久久综合色8888| 国产精品一区三区| 国产精品污网站| 国产精品18久久久久久久网站| 精品三级av在线| 国产一二三精品| 欧美国产1区2区| 成人av动漫在线| 欧美国产激情一区二区三区蜜月| 国产91在线观看| 国产精品区一区二区三| 成人免费视频播放| 中文字幕亚洲在| 欧美色老头old∨ideo| 亚洲成人av资源| 日韩免费高清视频| 国产精品伊人色| 中文字幕一区二区三区不卡| 色综合久久久久久久久久久| 亚洲综合男人的天堂| 欧美日韩一级二级| 精品一区二区三区在线观看国产| 久久久99免费| 色婷婷久久久久swag精品 | 2021久久国产精品不只是精品| 久久99久久久久| 欧美国产日韩在线观看| 在线观看欧美日本| 日本成人在线一区| 久久人人超碰精品| 99国产精品久久久久| 亚洲一区在线观看免费| 欧美mv和日韩mv的网站| 成人av电影在线观看| 视频一区在线视频| 久久精品一区二区| 欧美色成人综合| 国产精品一级黄| 亚洲18色成人| 欧美极品aⅴ影院| 欧美一区三区二区| 成人av在线一区二区三区| 亚洲123区在线观看| 久久久久久久久久美女| 欧美色图在线观看| 国产丶欧美丶日本不卡视频| 亚洲一级不卡视频| 国产亚洲短视频| 欧美高清精品3d| 成人av电影在线网| 国产自产视频一区二区三区| 亚洲大片精品永久免费| 中文字幕中文在线不卡住| 日韩欧美另类在线| 欧美色图在线观看| 91视频在线观看免费| 国产福利不卡视频| 精品一区二区三区日韩| 亚洲成va人在线观看| 亚洲手机成人高清视频| 国产午夜精品理论片a级大结局 | 成人深夜视频在线观看| 美女一区二区视频| 亚洲成人免费视| 亚洲毛片av在线| 国产精品久久网站| 国产亚洲精品aa午夜观看| 精品国产a毛片| 日韩一级欧美一级| 欧美日韩高清影院| 日本韩国一区二区| 色婷婷综合久久久中文一区二区| 成人美女视频在线观看18| 国模无码大尺度一区二区三区| 亚洲国产cao| 五月天国产精品| 香蕉久久夜色精品国产使用方法 | 中文字幕一区二区三区四区 | 欧美亚洲国产怡红院影院| 成人免费高清在线| 成人毛片老司机大片| 懂色av中文一区二区三区 | 欧美日韩国产综合视频在线观看 | 成人h动漫精品一区二| 国产精品一区二区在线观看不卡 | 一区二区三区不卡视频| 亚洲精品亚洲人成人网在线播放| 成人免费在线播放视频| 一区二区三区中文字幕电影| 亚洲人快播电影网| 亚洲制服丝袜av| 午夜精品福利视频网站| 美女视频一区二区三区| 极品美女销魂一区二区三区| 国模冰冰炮一区二区| 福利一区二区在线| 色综合久久久久| 欧美色视频在线| 精品国产伦一区二区三区观看方式 | 在线观看区一区二| 欧美日韩一级二级三级| 日韩免费观看高清完整版在线观看| 2022国产精品视频| 最近日韩中文字幕| 亚洲gay无套男同| 国产一区二区福利视频| 99精品欧美一区二区三区综合在线| 91传媒视频在线播放| 欧美一区二区精美| 国产精品色哟哟网站| 亚洲综合在线观看视频| 久久成人av少妇免费| 97久久精品人人澡人人爽| 9191国产精品| 中文av字幕一区| 日韩和的一区二区| 成人免费视频免费观看| 在线播放一区二区三区| 国产免费成人在线视频| 亚洲成a人片在线观看中文| 国产精品456露脸| 欧美精三区欧美精三区| 日本一区二区三区高清不卡| 亚洲成a人v欧美综合天堂| 丰满白嫩尤物一区二区| 日韩欧美一级二级| 一区二区在线观看免费视频播放| 久久精品国产精品亚洲红杏|