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

📄 unc_nn_griewangkplot.asv

📁 it contains many classic Test Problems for Unconstrained Optimization such as camel6,treccani,goldst
💻 ASV
字号:

%the dimension is two ,n=2;

clear
clc
lb=-600;
ub=600;
teix=2;
[X,Y] = meshgrid(lb:teix:ub);
Z=(X.*X+Y.*Y)/4000-cos(X).*cos(Y/sqrt(2))+1;


% % % mesh
% mesh(X,Y,Z)
% axis([lb ub lb ub -10 200]);
% title('unc#nn#Griewangk');
% xlabel('x');
% ylabel('y');
% zlabel('z')


% % contour
v=[ 0 0.1 0.5 1 7  10  50 100 150 ];
[c,h]=contour(X,Y,Z,v);
clabel(c,h);
title('unc#nn#Griewangk');
xlabel('x');
ylabel('y');


⌨️ 快捷键说明

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