让。我想绘制帕累托表面。以下Matlab代码可以工作并生成附图。虽然这不是很顺利。有什么建议我怎么能得到一个漂亮的飞机?
clear all; clc;
fitnessfcn = @(x)[sqrt(x(1)), sqrt(x(2)), sqrt(x(3))];
Aeq = [1,1,1];
beq = 1;
lb = [eps,eps,eps];
ub = [1,1,1];
[x,f] = gamultiobj(fitnessfcn,3,[],[],Aeq,beq,lb,ub);
F = scatteredInterpolant(f(:,1),f(:,2),f(:,3),'linear','none');
X = linspace(0,1,100);
[XX,YY] = meshgrid(X,X);
ZZ = F(XX,YY);
mesh(XX,YY,ZZ)
解决方案:考虑到这些评论,以下工作
F = fit( [f(:,1), f(:,2)], f(:,3), 'thinplateinterp');
plot(F, [f(:,1), f(:,2)], f(:,3))
zlim([0,1])