Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Optimizacion de Procesos
Optimizacion de Procesos
AUTORES:
ALBUQUERQUE FERNÁNDEZ, Luis José
DOCENTE:
Dr. EVANGELISTA BENITES, Guillermo
TRUJILLO – PERÚ
2015
DESARROLLO
f ' ( x) 2 x 8
f " ( x ) 2
; resolviendo la derivada con valor inicial 0, obtenemos x=4
c)
Usando la ecuación del ejercicio del 13.7
x0 = 0 f(x0) = –12
x1 = 2 f(x1) = 0
x2 = 6 f(x2) = 0
13.12. Determine el mínimo de la función del problema 13.11 con los métodos siguientes:
P á g i n a 2 | 11
a) Método de Newton (x0=-1, e=1%).
b) Método de Newton, pero con el uso de una aproximación en diferencias finitas
para las estimaciones de las derivadas
Donde
δ=fracci ó n de perturbaci ó n ( ¿ 0.01 ) , x 0=−1
DESARROLLO
f ' ( x) 6 10 x 9 x 2 16 x 3
(Primera Derivada)
f " ( x ) 10 18 x 48 x 2
(Segunda Derivada)
f ' ( x)
xi 1 xi
f '' ( x )
; Valor inicial es x0=-1
6 10 x i 9 x i2 16 x i3 11
xi 1 xi 1 0.725
10 18 xi 48 x i2 40
P á g i n a 3 | 11
i x f(x) f'(x) f"(x)
0 -1 3 -11 40
b) Método de Newton, pero con el uso de una aproximación en diferencias finitas para
las estimaciones de las derivadas
3.1120 2.8920
f ' ( x) 11.001
0.01
f ' ( x)
xi 1 x i '' δ =fracci ó n de perturbaci ó n ( ¿ 0.01 ) , x 0=−1
f ( x)
; Valores
P á g i n a 4 | 11
6 10 xi 9 xi2 16 xi3 11 .001
xi 1 xi 1 0.725
10 18 xi 48 xi2 40 .001
DESARROLLO
Utilizando el Matlab
Sub GoldMax()
Dim ier As Integer
Dim xlow As Double, xhigh As Double
Dim xopt As Double, fopt As Double
xlow = 0
xhigh = 4
Call GoldMx(xlow, xhigh, xopt, fopt, ier)
If ier = 0 Then
MsgBox "xopt = " & xopt
MsgBox "f(xopt) = " & fopt
Else
MsgBox "Does not appear to be maximum in [xl, xu]"
End If
End Sub
P á g i n a 6 | 11
End If
iter = iter + 1
If f1 > f2 Then
xopt = x1
fopt = f1
Else
xopt = x2
fopt = f2
End If
If xopt <> 0 Then ea = (1 - R) * Abs((xU - xL) / xopt) * 100
If ea <= es Or iter >= maxit Then Exit Do
Loop
Else
ier = 1
End If
End Sub
Function f(x)
f = 2 * Sin(x) - x ^ 2 / 10
End Function
13.14. Desarrolle un programa con el que se describe en el problema 13.13., pero haga que
ejecute una minimización o una maximización en función de la preferencia del
usuario.
DESARROLLO
Utilizando el Matlab
Sub GoldMinMax()
Dim ind As Integer 'Minimization (ind = -1); Maximization (ind =
1)
Dim xlow As Double, xhigh As Double
Dim xopt As Double, fopt As Double
xlow = 0.1
xhigh = 5
P á g i n a 7 | 11
Call GoldMnMx(xlow, xhigh, -1, xopt, fopt)
MsgBox "xopt = " & xopt
MsgBox "f(xopt) = " & fopt
End Sub
Function f(ind, x)
f = 2 * x + 3 / x
f = ind * f
End Function
P á g i n a 8 | 11
13.17. En ciertos puntos atrás de un aeroplano se hacen mediciones de la presión. Los
datos tienen el mejor ajuste con la curva y=6*cosx-1.5*senx, desde x=0 hasta 6 s.
Utilice cuatro iteraciones del método de la búsqueda de la sección dorada para
encontrar la presión mínima. Elija xl=2 y xu=4
DESARROLLO
5 1
d ( xu xl )
2
P á g i n a 9 | 11
5 1
d (4 2) 1.2361
2
x1 xl d
x1 2 1.2361 3.2361
x 2 xu d
x 2 4 1.2361 2.7639
y=6*cosx-1.5*senx
3.236
2 2 -3.8608 2.4721 -5.6358 2.7639 -6.1303 1 -5.8317 0.7639 2.7639
2.472 3.236
3 1 -5.6358 2.7639 -6.1303 2.9443 -6.1776 1 -5.8317 0.4721 2.9443
2.763 3.236
4 9 -6.1303 2.9443 -6.1776 3.0557 -6.1065 1 -5.8317 0.2918 2.9443
13.18.
DESARROLLO
P á g i n a 10 | 11
5 1
d ( xu xl )
2
5 1
d (60 0) 37.0820
2
x1 xl d
x1 0 37.0820 37.0820
x 2 xu d
x 2 60 37.0820 22 .9180
3 22.9180 18.336 31.6718 19.692 37.0820 19.074 45.8359 15.719 14.1641 31.6718
4 22.9180 18.336 28.3282 19.518 31.6718 19.692 37.0820 19.074 8.7539 31.6718
5 28.3282 19.518 31.6718 19.692 33.7384 19.587 37.0820 19.074 5.4102 31.6718
6 28.3282 19.518 30.3947 19.675 31.6718 19.692 33.7384 19.587 3.3437 31.6718
7 30.3947 19.675 31.6718 19.692 32.4612 19.671 33.7384 19.587 2.0665 31.6718
8 30.3947 19.675 31.1840 19.693 31.6718 19.692 32.4612 19.671 1.2772 31.1840
9 30.3947 19.675 30.8825 19.689 31.1840 19.693 31.6718 19.692 0.7893 31.1840
10 30.8825 19.689 31.1840 19.693 31.3703 19.693 31.6718 19.692 0.4878 31.3703
P á g i n a 11 | 11