资源简介
matlab开发-多目标优化差分进化算法。为多目标优化运行基本差分进化(DE)算法。
代码片段和文件信息
%% CostFunction.m
% J [OUT] : The objective Vector. J is a matrix with as many rows as
% trial vectors in X and as many columns as objectives.
% X [IN] : Decision Variable Vector. X is a matrix with as many rows as
% trial vector and as many columns as decision variables.
% Dat [IN] : Parameters defined in NNCparam.m
%
%%
%% Beta version
% Copyright 2006 - 2012 - CPOH
% Predictive Control and Heuristic Optimization Research Group
% http://cpoh.upv.es
% ai2 Institute
% http://www.ai2.upv.es
% Universitat Polit鑓nica de Val鑞cia - Spain.
% http://www.upv.es
%%
%% Author
% Gilberto Reynoso Meza
% gilreyme@upv.es
% http://cpoh.upv.es/en/gilberto-reynoso-meza.html
% http://www.mathworks.es/matlabcentral/fileexchange/authors/289050
%%
%% For new releases and bug fixing of this Tool Set please visit:
% http://cpoh.upv.es/en/research/software.html
% Matlab Central File Exchange
%%
%% Main call
function J=CostFunction(XDat)
if strcmp(Dat.CostProblem‘DTLZ2‘)
J=DTLZ2(XDat);
elseif strcmp(Dat.CostProblem‘YourProblem‘)
% Here comes the call for a cost function of your own multi objective
% problem.
end
%% DTLZ2 Benchmark function. Defined in:
% K. Deb L. Tiele M. Laummans and E. Zitzler. Scalable test problems
% for evolutionary multi-objective optimization. Institut fur Technische
% Informatik und Kommunikationsnetze ETH Zurich Tech. Rep. TIK-Technical
% Report No. 112 Feb. 2001.
function J=DTLZ2(XDat)
Xpop=size(X1);
Nvar=Dat.NVAR;
M=Dat.NOBJ;
K=Nvar+1-M;
J=ones(XpopM);
for xpop=1:Xpop
Gxm=(X(xpopM:Nvar)-0.5*ones(1K))*(X(xpopM:Nvar)-0.5*ones(1K))‘;
Cos=cos(X(xpop1:M-1)*pi/2);
J(xpop1)=prod(Cos)*(1+Gxm);
for nobj=1:M-1
J(xpopnobj+1)=(J(xpop1)/prod(Cos(1M-nobj:M-1)))...
*sin(X(xpopM-nobj)*pi/2);
end
end
%% Write your own cost function here....
%% Release and bug report:
%
% November 2012: Initial release
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2015 2012-11-08 15:54 CostFunction.m
文件 7004 2012-11-08 15:55 MODE.m
文件 3380 2012-11-08 15:55 MODEparam.m
文件 2033 2012-11-08 15:54 ReadMe.txt
文件 1559 2014-02-12 14:11 license.txt
相关资源
- matlab开发-随机微分方程解算
- matlab开发-波长调制光谱的二次谐波模
- matlab开发-仿制药生物生理学基础药动
- matlab开发-使用svmrfe选择功能
- matlab开发-KDTreeNearestNeighborandRangeSear
- matlab开发-stlread
- matlab开发-三维图像堆栈查看器
- matlab开发-动态电压恢复器故障dvr
- matlab开发-数据处理的分组方法GMDH
- matlab开发-DVR
- matlab开发-ParetoSet
- matlab开发-ShamirsSecretSharing
- matlab开发-othellom
- matlab开发-EMGONOFF
- matlab开发-级联H桥多电平转换三相
- matlab开发-带图形用户界面的步进电机
- matlab开发-MFTireGUI
- matlab开发-自适应霍夫曼编码技术字符
- matlab开发-ConnectFour
- matlab开发-floodfillscanline
- matlab开发-Paretosurfacenavigator
- matlab开发-分步序达尔文粒子群优化
- matlab开发-改进的解决方案经济调度方
- matlab开发-为Resnet50网络设计工具箱模
- matlab开发-sigmoid
- matlab开发-同步发电机的详细模型,包
- matlab开发-多层反向传播神经网络
- matlab开发-Parrotminirones的模拟支持包
- matlab开发-nnsysid
- matlab开发-使用gnewton-raphson方法查找任
评论
共有 条评论