求拟合二元二次方程,谢谢
X Y Z
4 3 78.63
3 3 80.25
5 3 77.13
4.5 1 72.5
3.5 5 79
3.5 1 75.88
4.5 5 75.63
目标方程 Z=b0+b1*X+b2*Y+b3*X*X+b4*Y*Y+b5*X*Y 返回小木虫查看更多
今日热帖
求b1到b5 5个值,以及Z最大时,X与Y的值
自己动手用1stOpt试试,很简单的问题。
b0=79.4281247670317,
b1=-2.65249990078089
b2=5.1100000279851
b3=0.0599999895687664
b4=-0.723125001112401
b5=0.00249999467175726
目标函数值(最大): 81.0646634608812
x: 3
y: 3.53846162384738
General model:
f(x,y) = b0+b1.*x+b2.*y+b3.*x.*x+b4.*x.*x+b5.*x.*y
Coefficients (with 95% confidence bounds):
b0 = 98.47 (78.55, 118.4)
b1 = -10 (fixed at bound)
b2 = 0.7813 (-0.9095, 2.472)
b3 = 0.9918 (-3.33e+15, 3.33e+15)
b4 = -0.006291 (-3.33e+15, 3.33e+15)
b5 = 3.404e-12 (fixed at bound)
Goodness of fit:
SSE: 13.55
R-square: 0.6665
Adjusted R-square: 0.3329
RMSE: 2.125
11.jpg
General model:
f(x,y) = b0+b1.*x+b2.*y+b3.*x.*x+b4.*x.*x+b5.*x.*y
Coefficients (with 95% confidence bounds):
b0 = 103.4 (-1095, 1302)
b1 = -13.08 (-668.1, 641.9)
b2 = 1.56 (-64.99, 68.11)
b3 = 3.283e+06 (-3.113e+08, 3.178e+08)
b4 = -3.283e+06 (-3.178e+08, 3.113e+08)
b5 = -0.1945 (-16.77, 16.38)
Goodness of fit:
SSE: 12.84
R-square: 0.6839
Adjusted R-square: -0.8964
RMSE: 3.583
,
b0=96.0225,b1=-4.77,b2=19.723125,b3=0.06,b4=-7.706875,b5=0.91
l
QQ图片20170622132359.png