ch4 4试验设计与数据分析-最速上升法
ch4 4试验设计与数据分析-最速上升法
最速下降(上升)法
[email protected] (mailto:[email protected])
2022.04.16
适用场景:
最速下降(上升)法(steepest descent(ascent) algorithm)
用于探索响应面设计的中心点。
避免响应面设计无最优解。
例题,一位化学工程师要确定使过程产率最高的操作条件.影响产率的两个可控变量是反应时间和反应温度工程
师当前使用的操作条件是反应时间为35分钟,温度为155下,产率约为40%,因为此区域不大可能包含最优于是
她拟合一阶模型并应用最速上升法。
l i b r a r y (rsm)
cube.design <- rsm::cube(2, n0=5,
coding =list(x1~(time-35)/5, x2~(temperature-155)/5),
randomize = F)
cube.design$res <- c(39.3,40.9,40,41.5,40.3,40.5,40.7,40.2,40.6)
cube.design
##
## Call:
## rsm(formula = res ~ FO(x1, x2) + TWI(x1, x2), data = cube.design)
##
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 40.444444 0.062311 649.0693 1.648e-13 ***
## x1 0.775000 0.093467 8.2917 0.0004166 ***
## x2 0.325000 0.093467 3.4772 0.0177127 *
## x1:x2 -0.025000 0.093467 -0.2675 0.7997870
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Multiple R-squared: 0.9418, Adjusted R-squared: 0.9069
## F-statistic: 26.97 on 3 and 5 DF, p-value: 0.00163
##
## Analysis of Variance Table
##
## Response: res
## Df Sum Sq Mean Sq F value Pr(>F)
## FO(x1, x2) 2 2.82500 1.41250 40.4213 0.0008188
## TWI(x1, x2) 1 0.00250 0.00250 0.0715 0.7997870
## Residuals 5 0.17472 0.03494
## Lack of fit 1 0.00272 0.00272 0.0633 0.8137408
## Pure error 4 0.17200 0.04300
##
## Stationary point of response surface:
## x1 x2
## 13 31
##
## Stationary point in original units:
## time temperature
## 100 310
##
## Eigenanalysis:
## eigen() decomposition
## $values
## [1] 0.0125 -0.0125
##
## $vectors
## [,1] [,2]
## x1 -0.7071068 -0.7071068
## x2 0.7071068 -0.7071068
最速上升(下降)的方向
回归方程的斜率
k = 0.325/0.775 = 0.4193548
x1增加1个单位,x2增加0.4193548
单位圆方向
x1 = 0.9221944 , x2 = 0.3867267, 0.3867267/0.9221944 = 0.4193548
time = 4.610972, temperature = 1.933633
FO.steepest
练习
一位工程师开发双项存货系统的计算机模拟模型,决策变量是订货量(Order Quantity)和再订购点(Reorder
point)。需要最小化的响应是总存货成本(Total Cost)。识别出试验设计,并求最速上升路径。
cube.design <- rsm::cube(2,
n0=3,
reps = 2,
coding =list(x1~(Order-275)/25, x2~(Reorder-60)/20),
randomize = F)
res <- c(625,670,663,648,654,634,692,686,680,674,681)
cube.design$res <- res
cube.design