资源简介
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开发-FlockingAlgorithm
- matlab开发-MuellerStokesJonesCalculus
- matlab开发-HX711的自定义数据库
- matlab开发-SMOTEBoost
- matlab开发-果蝇优化算法第二版
- matlab开发-多变量决策树
- matlab开发-水轮发电机模型
- matlab开发-交通警告标志识别标签代码
- matlab开发-RUSBoost
- matlab开发-基于遗传算法的机器人运动
- matlab开发-MPU6050加速度陀螺仪
- matlab开发-功率曲线FAsmallscalewindturbi
- matlab开发-NASAJPLDE405开发星历表
- matlab开发-SortinoRatio
- matlab开发-永磁TDC并联电机数学模型
- matlab开发-3相SPWM整流器
- matlab开发-Kilobotswarm控制Matlabarduino
- matlab开发-简单音频播放
- matlab开发-记录文件的绘图仪加速度、
- matlab开发-永磁同步电机PMSM动态数学模
- matlab开发-随机微分方程解算
- matlab开发-波长调制光谱的二次谐波模
- matlab开发-仿制药生物生理学基础药动
- matlab开发-使用svmrfe选择功能
- matlab开发-KDTreeNearestNeighborandRangeSear
- matlab开发-stlread
- matlab开发-三维图像堆栈查看器
- matlab开发-动态电压恢复器故障dvr
- matlab开发-数据处理的分组方法GMDH
评论
共有 条评论