Академический Документы
Профессиональный Документы
Культура Документы
Optimization
NLP
Mixed Integer
(Continuous)
MINLP
Differentiable Nondifferentiable
MILP
Convex Nonconvex
IP
LP QP
ChE Problems
LP MILP QP NLP MINLP
Process Model Building X X
Process Design & Synthesis
Heat Exchangers X X X X
Mass Exchangers X X X X
Separations X X X
Reactors X X X
Flowsheeting X X
Process Operations
Scheduling X X X
Supply Chain X X X
Real-Time Optimization X X X
Process Control
Model Predictive Control X X
Nonlinear MPC X X
Hybrid MPC X
Table 1.1 in [2]
Características deseables
Existen características deseables o no en la resolución de un problema
de optimización
- Continuidad
- Linealidad
- Condiciones necesarias y suficientes
Continuidad
Si bien no es necesaria para poder resolver el problema facilita el uso de
herramientas
𝑓 𝑥𝑜 𝑒𝑥𝑖𝑠𝑡𝑒
lim 𝑓 𝑥 𝑒𝑥𝑖𝑠𝑡𝑒
Definición 𝑥→𝑥𝑜
lim 𝑓 𝑥 = 𝑓(𝑥𝑜 )
𝑥→𝑥𝑜
Continuamente derivable
′ 𝒙
𝒅𝒇 𝒙
𝒇 = 𝒆𝒙𝒊𝒔𝒕𝒆
𝒅𝒙
Ejemplo
a) 1/x
b) Ln(x) ¿Dificultades?
c) 1/x^2-9
Discontinuidad - Continuidad
Formulación de un problema no lineal
𝑀𝑖𝑛𝑖𝑚𝑖𝑧𝑎𝑟 𝑓(𝒙)
Definición൞ 𝑠𝑢𝑗𝑒𝑡𝑜 𝑎 𝑎𝑖 ≤ 𝑔 𝒙 ≤ 𝑏𝑖
𝑙𝑗 ≤ 𝑥𝑗 ≤ 𝑢𝑗
𝑎) 𝑓 𝑥 = 3𝑥 2 𝑏) 𝑓 𝑥 = 2𝑥
𝑓′ 𝑥 = 6𝑥 𝑓′ 𝑥 = 2
𝑓′′ 𝑥 = 6 𝑓′′ 𝑥 = 0
𝑐) 𝑓 𝑥 = −5𝑥 2 𝑑) 𝑓 𝑥 = 2𝑥 2 − 𝑥 3
𝑓 ′ 𝑥 = −10𝑥 𝑓 ′ 𝑥 = 4𝑥 − 3 𝑥 2
𝑓 ′′ 𝑥 = −10 𝑓 ′′ 𝑥 = 4 − 6𝑥
b) 𝑓 𝒙 = 𝑥12 + 𝑥1 𝑥2 + 2𝑥2 + 4
c) 𝑓 𝒙 = 2𝑥1 + 3𝑥2 + 6
𝝏𝟐 𝒇 𝝏𝟐 𝒇
𝝏𝒙𝟐𝟏 𝝏𝒙𝟏 𝝏𝒙𝟐
𝑯=
𝝏𝟐 𝒇 𝝏𝟐 𝒇
𝝏𝒙𝟏 𝝏𝒙𝟐 𝝏𝒙𝟐𝟐
Convexidad – Modelos multivariable - Ej
𝑓 𝒙 = 2𝑥12 − 3𝑥1 𝑥2 + 2𝑥22
𝜕𝑓
= 4𝑥1 − 3𝑥2
𝜕𝑥1
𝜕𝑓
= −3𝑥1 + 4𝑥2
𝜕𝑥2
𝜕2 𝑓 𝜕2 𝑓 𝜕2 𝑓
= −3 =4 =4
𝜕𝑥1 𝜕𝑥2 𝜕𝑥12 𝜕𝑥22
Convexidad – Modelos multivariable - Ej
𝑓 𝒙 = 2𝑥12 − 3𝑥1 𝑥2 + 2𝑥22
4 −3
𝐻=
𝜆1 = 7; 𝜆2 = 1 −3 4
𝜆𝑖 > 0 4−𝜆 −3
𝐻 − 𝜆𝐼 = =0
−3 4−𝜆
𝑓 es convexa 2
4−𝜆 −9=0
7 − 8𝜆 + 𝜆2 = 0
Convexidad – Región formada por dos
funciones cóncavas
Demostrar que
−𝑥12 + 𝑥2 ≥ 1 𝑥1 − 𝑥2 ≥ −2
Forman una región convexa
Convexidad – Región formada por dos
funciones cóncavas
Demostrar que
−𝑥12 + 𝑥2 ≥ 1 𝑥1 − 𝑥2 ≥ −2
Forman una región convexa
Se expresan como g i x ≥ 0
𝑔1 = −𝑥12 + 𝑥2 − 1 ≥ 0
𝑔2 = 𝑥1 − 𝑥2 + 2 ≥ 0
−2 0 0 0
𝑯(𝑔1 (𝑥)) = 𝑯(𝑔2 (𝑥)) =
0 0 0 0
Convexidad – Región formada por dos
funciones cóncavas
Demostrar que
−𝑥12 + 𝑥2 ≥ 1 𝑥1 − 𝑥2 ≥ −2
Forman una región convexa
−2 0 0 0
𝑯(𝑔1 (𝑥)) = 𝑯(𝑔2 (𝑥)) =
0 0 0 0
Definida negativamente Semidefinida negativament
2. 𝛁𝑓 𝒙∗ = 𝟎, punto estacionario en 𝐱 ∗
Ej: 𝑓(𝑥)𝑥 4/3
𝑯(0) no está definida
3. 𝑯(𝒙∗ ) está definida positivamente
para que exista un mínimo en 𝐱 ∗
Optimización en MATLAB
• Algunas funciones de MATLAB
utilizadas para optimización :
linprog: LP, formato matricial.
fminsearch, fminunc: Optimización
no restringida.
fmincon: LP, NLP con restricciones.
Optimización en MATLAB – fmincon
x = fmincon(objective,x0,Aineq,bineq,Aeq,beq,lb,ub,nonlcon,options)
𝑘1
𝑦𝑝𝑟𝑒𝑑𝑖𝑐𝑡𝑒𝑑 = 𝑒 −𝑘2𝑡 − 𝑒 −𝑘1𝑡
𝑘1 − 𝑘2
Variables:
𝑘1 , 𝑘2 , 𝑦𝑝𝑟𝑒𝑑𝑖𝑐𝑡𝑒𝑑 , : undefined in the problem, [-]
Constraints:
𝑦𝑝𝑟𝑒𝑑𝑖𝑐𝑡𝑒𝑑 ;
𝑘1
Section A 𝑦𝑝𝑟𝑒𝑑𝑖𝑐𝑡𝑒𝑑 = 𝑒 −𝑘2 𝑡 − 𝑒 −𝑘1 𝑡
𝑘1 −𝑘2
𝑘1 𝑥1
Section B 𝑦𝑝𝑟𝑒𝑑𝑖𝑐𝑡𝑒𝑑 =
1+𝑘2 𝑥1 −𝑘3 𝑥2
Objective function
Φ: minimizing the sum of the squares of the deviations
𝑛
2
minΦ = 𝑦𝑜𝑏𝑠𝑒𝑟𝑣𝑒𝑑 − 𝑦𝑝𝑟𝑒𝑑𝑖𝑐𝑡𝑒𝑑 𝑖
𝑖=1
Optimización en MATLAB – fmincon
Estime los valores de los parámetros k1,
k2 y k3 minimizando la suma de la
desviación de los cuadrados