⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 displayit.m

📁 BGA Binary Genetic Algorithm Matlab Code
💻 M
字号:

% -------------------- Display Function ----------------------

function[out1]=Displayit(OptSol,Max_reach,Avg,till)

itrt=1:till;
plot(itrt,Max_reach,itrt,Avg);
title('Plot 1 - Binary Gen Algorithm');
xlabel('Generation Times');
ylabel('Function of Fitness'); 

x=OptSol(1)
y=OptSol(2)
f=(1+cos(2*pi*x*y))*(exp(-((x^2)+(y^2))/2))

out1=1;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -