Optimización de procesos químicos. 2007-2008DIQUIMA-ETSII Lección 2: Formulación del problema de optimización Variables La función objetivo Restricciones.

Slides:



Advertisements
Presentaciones similares
Control en cascada.
Advertisements

Dióxido de Carbono Carbon Dioxide (CO 2 ) Oxígeno Oxygen (O 2 ) 2 La Fotosíntesis de las plantas producen Oxígeno Photosynthesis of plants produces Oxygen.
Expresión de un problema de programación lineal Aplicaciones de la programación lineal Soluciones de un problema lineal Resolución gráfica de un problema.
TEMA 1: INTRODUCCIÓN A LA OPTIMIZACIÓN
Lección 3: Conceptos básicos
Writing A Lab Report.
Telling Time (Cómo decir la hora). When we ask what time it is in Spanish, we say “¿Qué hora es?” Some people also say “¿Qué horas son?”
Preguntas Esenciales 1.What are essential questions? What are their purpose in learning? 2.Look over the essential questions and think about how they might.
Meteorology: the study of the entire atmosphere, including weather.
1 Solving Systems of Equations and Inequalities that Involve Conics PROBLEM 4 PROBLEM 1 Standard 4, 9, 16, 17 PROBLEM 3 PROBLEM 2 PROBLEM 5 END SHOW PROBLEM.
Health Products Beauty Products Diet/Weight loss Financial Freedom.
4.1 Continuidad en un punto 4.2 Tipos de discontinuidades 4.3 Continuidad en intervalos.
peterverdonedesigns. com/files/hydraulic%20system%20theory
Accuracy & Precision. Fundamental principle of measuring: No measurement is exact and the true value is never known Accuracy & Precision.
Aplicada Una persona que le gusta aprender; estudia mucho.
Fact Family4, 5, 20 (provided by the teacher) Problem4 X 5= 20 Perimeter = 18 cm Area4 x 5= 20 sq cm 5 cm 4 cm Example: Teachers: Assign students.
Notes #18 Numbers 31 and higher Standard 1.2
HYPERBOLAS Standard 4, 9, 16, 17 DEFINITION OF A HYPERBOLA
Datos, Modelos y Decisiones
Write the letter of the correct definition or sentence next to the word below. 1.________ Algebraic Expression 2.________ Equation 3.________ Exponent.
(c) P. Gomez-Gil, INAOEP DISEÑO DE SOFTWARE 2ª. parte NOTAS DEL CURSO Ingeniería de Software I DRA. MARIA DEL PILAR GÓMEZ GIL INAOEP Versión:
3rd Grade 3 rd Six Weeks Science Unit 4, Lesson 3 CScope Vocabulary Words
Leading in Learning – Spanish Collective Memory. Plenary 1 Did you know any of the words already? If so, which? Why are the colours significant do you.
1 SOLVING RATIONAL EQUATIONS SIMPLIFYING RATIONAL EXPRESSIONS Standards 4, 7, 15, 25 ADDING RATIONAL EXPRESSIONS PROBLEM 1 RATIONAL EXPRESSIONS PROBLEM.
12- 9 Solve Multi-Step Eqns Solve using the properties and inverse operations. Check your answers Ann earns 1.5 times her normal.
ALC #7 Do the math problems and write the answer in Spanish.
El reglamento de la casa
Digital Photography: Selfie Slides Liliana Martinez 10/27/14 4b.
¿Qué haces en la escuela? Question words, objects, yo-go’s.
Water Conservation: water conservation is very important to the world, not only because we waste it when we don’t need it, but because were wasting water.
Lunes 15 de septiembre Máx. : 23° Mín. : 19° Hazlo ahora 3 min.
Formal Commands! Telling people what to do…… You speak, or you are speaking……Hablas, estás hablando This is different from telling (commanding) someone.
Tecnología y Estructura de Costos. Technologies u A technology is a process by which inputs are converted to an output. u E.g. labor, a computer, a projector,
Digital Photography: Selfie Slides Your Name Date Class Period.
Time Telling time is rather easy. You only need to know the numbers up to 59 to be able to tell the time.
Spanish Sentence Structure How can we make better sentences?
+ Four Square Vocabulary. + What it is. Whole class, small group or individual activity that: Presents new vocabulary Reviews vocabulary Practices sentence.
Adverbs are words that describe how, when, and where actions take place. They can modify verbs, adjectives, and even other adverbs. In previous lessons,
VARIABLES BINARIAS Y ENTERAS
Yo Puedo… …negotiate and come to a conclusion …compare my spending habits to those of my classmates AND peers from Argentina …agree and disagree …talk.
Objectives To learn some different techniques to help you memorise your ‘Healthy Living’ Written Controlled Assessment. To practise these techniques and.
Associative, Commutative, and Distributive Properties of Addition and Multiplication August 18th Students only need to copy the writing in purple. Students.
JUEVES, EL 10 DE SEPTIEMBRE LT: I WILL RECOGNIZE SOME NEW VOCABULARY WORDS. Go over tests & retake procedures Interpretive Assessment: numbers & alphabet.
Essential ?: How do I use these irregular verbs? How are they different than the verbs I already know?
10.4 Adverbs ANTE TODO  Adverbs are words that describe how, when, and where actions take place.  They can modify verbs, adjectives, and even other adverbs.
ALC 76 Cambio de la rutina. Asignación y después ALC 76.
Two-dimensional Shapes Las formas bidimensionales
Preparacion Hoy es viernes el 4 de diciembre. Today is Friday, December 4. DO NOW: In preparation for some exercises in class do the following with the.
Matter and changes in state Classification of Matter Physical and Chemical Properties More questions
Operations Charts Keep these operations charts posted by the wall you usually work out math word problems. Print them in color and paste them on the same.
Los pronombres relativos que y quien El subjuntivo en cláusulas adjetivales: con antecedentes indefinidos o que no existen.
La teoría del valor de Piero Sraffa La teoría del valor de Piero Sraffa Alejandro Valle Baeza EP4,2014-II.
¿New media? Lev Manovich It is responsible for one of the works of reference for the interpretation of the new media. “The language of new media (2001)”
Unidad #2 All Around the world Los Artículos Definidos and Indefinidos.
LOS VERBOS REFLEXIVOS. WRITE: What is a reflexive verb? A reflexive verb describes when a person doing an action is also receiving the action.
Foreign Language Teaching Tips Rich Bradshaw. ¡Classroom Vocabulary Scavenger Hunt! Purpose Introduce new vocabulary words in TL Identify items using.
THE SUBJUNCTIVE MOOD Spanish 2 – 6.2. THE PRESENT SUBJUNCTIVE In English, we say “I hope that…” to express hopes & wishes. Verbs that follow such expressions.
Time Expression with Hacer Grammar Essential #106.
Sra. Schwarz Los verbos tener, hacer, y poner. Sra. Schwarz El verbo tenerEl verbo tener  The verb tener means “to have.”  Tener is a stem-changing.
Campanada guidelines in your composition notebook ¿Cómo es tu familia? (10 points) Ex. Hoy es Miercoles el 27 de enero First line will start with the date.
EQUILIBRIUM OF A PARTICLE IN 2-D Today’s Objectives: Students will be able to : a) Draw a free body diagram (FBD), and, b) Apply equations of equilibrium.
GRAPHIC MATERIALS 1. GRAPHIC MATERIALS. GRAPHIC MATERIALS 1. GRAPHIC MATERIALS.
Genentech A Discussion Winter 2018Joseph Milner, RSM54011.
Los números.
Quasimodo: Tienes que hacer parte D de la tarea..
UNIVERSIDAD NACIONAL DE CAJAMARCA HISTORIA DE LA INVESTIGACION DE OPERACIONES INTRODUCCION Ing. MANUEL ROBERTO AZAHUANCHE OLIVA.
How to write my report. Checklist – what I need to include Cover page Contents page – with sections Introduction - aims of project - background information.
a. Which job do you think pays more? I think an assistant chef earns more, as he spends all day working, while the dog walker earns according to the dogs.
Transcripción de la presentación:

Optimización de procesos químicos DIQUIMA-ETSII Lección 2: Formulación del problema de optimización Variables La función objetivo Restricciones de igualdad Restricciones de desigualdad Grados de libertad Formulación del problema

Optimización de procesos químicos DIQUIMA-ETSII FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN Función objetivo Esta es la formulación general del problema minmax max().. ()0 ()0 x fx st hx gx xxx = ≤ Restricciones igualadad Variables límite Restricciones desigualdad ≤ ≤

Optimización de procesos químicos DIQUIMA-ETSII Variables can be grouped into two categories “decision” or “optimization” variables These are the variables in the system that are changed independently to modify the behavior of the system. dependent variables whose behavior is determined by the values selected for the independent variables. DESIGN: OPERATIONS: MANAGEMENT: Although they can be grouped this way to help understanding, the solution method need not distinguish them. We need to solve a set of equations involving many variables. minmax max().. ()0 ()0 x fx st hx gx xxx = VARIABLES minmax xxx reactor volume, number of trays, heat exch. area, … temperature, flow, pressure, valve opening, … feed type, purchase price, sales price,.. ≤≤ ≤ ≤≤ FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII Some comments on variables Typically, we do not define the “decision” and “dependent” variables. Since we solve a set of simultaneous equations, all variables are evaluated together. Exercise: Identify variables in each category. VARIABLES minmax max().. ()0 ()0 x fx st hx gx xxx = ≤ ≤≤ FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII Some comments on variables We should always place bounds on variables. Exercise: Why place bounds? Exercise: Propose bounds for variables in the process. VARIABLES minmax max().. ()0 ()0 x fx st hx gx xxx = ≤ ≤≤ FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII FUNCIÓN OBJETIVO Este es el objetivo, ejemplos: - maximizar beneficio (minimizar coste) - minimizar uso de energía - minimizar los residuos contaminantes - minimizar el material para contruir un depósito Formularemos la mayoría de los problemas con una función objetivo escalar Debería representar el efecto total de las variables (x) en el objetivo. Por ejemplo, $/kg no es un buen objetivo a menos que kg esté fijado. Cuando se necesite hay que incluir el valor actualizado del dinero. How should I formulate these? minmax max().. ()0 ()0 x fx st hx gx xxx = ≤ ≤≤ FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII Algunos comentarios sobre la función objetivo Aunque es preferible un objetivo escalar. Muchas veces nos encontramos con múltiples objetivos. Tener en cuenta que Max (f) es igual que Min (-f) - Por tanto, no hay diferencia práctica ni fundamental entre problemas de maximizar y de minimizar. El mismo software y algoritmo resuelve ambos. Hay dificultades cuando los modelos nos son muy exactos. Algunos aspectos son muy difíciles de modelar (respuesta del mercado a una mejora en la calidad del producto). Deseamos una función objetivo “suave”. FUNCIÓN OBJETIVO minmax max().. ()0 ()0 x fx st hx gx xxx = ≤ ≤≤ FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII RESTRICCIONES DE IGUALDAD Esta expresión limita los valores posibles de x. Definen la Región factible (feasible region) Algunas restricciones de igualdad: - materia, energía, fuerza, … - equilibrio - decisiones de ingeniería ( F1 -.5 F2 = 0 ) - valores impuestos por el control set point temp = 231 BALANCES Por convenio se escriben estas ecuaciones con un cero en la derecha de la igualdad (zero rhs –right hand side-) Puede haber múltiples restricciones de igualdad, así que h(x) es un vector. For example? minmax max().. ()0 ()0 x fx st hx gx xxx = ≤ ≤≤ FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII 1. Define Objetivos 2. Prepara información 3. Formula el modelo 4. Determina la solución 5. Analiza Resultados 6. Valida el modelo ¿Qué decisión? ¿Qué variable? Localización Dibuja el proceso Recopila los datos Declara las suposiciones Define el sistema Normalmente la solución y la optimización se determinan simultáneamente RESTRICCIONES DE IGUALDAD minmax max().. ()0 ()0 x fx st hx gx xxx = ≤ ≤≤ Balance: Component Material Energy FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII Algunos comentario sobre las restricciones de igualdad Los balances se deben de cumplir estrictamente. Si no lo especificamos así, el optimizador encontrará como ¡crear masa y energía! Las restricciones pueden tener índices. Por ejemplo, el índice puede ser la localización de un plato. Estas dos formulaciones son equivalentes FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN RESTRICCIONES DE IGUALDAD

Optimización de procesos químicos DIQUIMA-ETSII Algunos comentarios sobre las restricciones de igualdad Los balances se pueden aplicar sobre diferentes entidades: - materia - tiempo - cajas en un almacén - gente trabajando en una unidad de una planta Los modelos pueden cambiar. Por ejemplo, un cambiador puede tener una o dos fases según el resultado de la optimización. Esto complica la resolución de la optimización. minmax max().. ()0 ()0 x fx st hx gx xxx = ≤ ≤≤ FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN RESTRICCIONES DE IGUALDAD

Optimización de procesos químicos DIQUIMA-ETSII RESTRICCIONES DE DESIGUALDAD.. ()0 st gx ≤ Son límites al sistema en una dirección: - máxima inversión disponible - máximo flujo admisible por la bomba - mínimo caudal líquido en un determinado plato - mínima generación de vapor en una caldera - máxima presión de un depósito Hay que tener cuidado en no definir un problema de forma incorrecta y que no tenga región factible. Multiplicando por (-1) podemos cambiar el signo de la desigualdad, así que ambas restricciones están contempladas. ¿Por ejemplo? minmax max().. ()0 ()0 x fx st hx gx xxx = ≤ ≤≤ FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII GRADOS DE LIBERTAD La siguiente relación determina el número de grados de libertad (DOF) DOF = (# variables) - (# ecuaciones) # variables = # ecuaciones= ¿Cómo deben ser los valores de los grados de libertad para Optimización? minmax max().. ()0 ()0 x fx st hx gx xxx = ≤ ≤≤ FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII Normalmente se piensa el problema de optimización como teniendo: #Opt Var = # var - #equality constr. En dos dimensiones el gráfico queda: Opt Var1 Opt Var2 feasible region GRADOS DE LIBERTAD (DOF) minmax max().. ()0 ()0 x fx st hx gx xxx = ≤ ≤≤ FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII Opt Var2 Opt Var1 Opt Var2 Caso A Caso B Podemos dibujar la función objetivo como contornos. FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN GRADOS DE LIBERTAD (DOF)

Optimización de procesos químicos DIQUIMA-ETSII This is a typical feasible region for a CSTR with reaction A  B with reactant and coolant adjusted. Explain the shape of the feasible region. From Marlin, Process Control, McGraw- Hill, New York, 1995 T A Reactant Solvent Coolant FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN GRADOS DE LIBERTAD (DOF)

Optimización de procesos químicos DIQUIMA-ETSII The feasible region depends on the degrees of freedom, i.e., the number of variables that are adjusted independently. We revisit the CSTR, but only the coolant flow can be adjusted. What is different? T A Reactant Solvent Coolant From Marlin, Process Control, McGraw- Hill, New York, 1995 FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN GRADOS DE LIBERTAD (DOF)

Optimización de procesos químicos DIQUIMA-ETSII FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN ¿Cómo seleccionamos el sistema para nuestra optimización? FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII How do we define a scalar that represents performance, including Economics Safety Product quality Product rates (contracts!) Flexibility …... FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII Cómo de exacto debe ser el modelo del sistema físico? Macroscopico 1,2 3, dimensiones espaciales Dinámico o estado estacionario Propiesdades físicas Ecs. Constitutivas (U(f), k 0 e- E/RT,.. FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII Cuáles son los límites a las posibles soluciones? Seguridad Calidad del producto Daños de equipos Operación de equipos Consideraciones legales/éticas FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII Factoid: Many process simulations and optimizations have a large number of variables and constraints. Why? Entire model is repeated for many locations, e.g., trays in a tower. Model repeated for many components in a stream. Model repeated for many times in a dynamic system FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII We use the term “tractable” to describe whether we can 1.Solve the mathematical optimization problem 2.Achieve desired accuracy in the “Real World” - This prevents us from using a useless, simple model 3.Calculate the solution in an acceptable time. The allowable time depends on the problem. FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII Very accurate over wide range of conditions Longer computing More complex Less accurate over a narrow range of conditions Shorter computing Less complex The engineer must select the appropriate balance for each problem. The problem must be tractable. Intractable problems have to be reformulated. FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII Decisions to be made model Solver method and software Solution Does the formulation and solution method support the solution? Not known with certainty Structure of equations Parameter values “The truth” Measurement error Disturbances Uncertainty: We must recognize uncertainty in our methods and estimate bounds of the effects of out solutions. FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII Optimization Formulation: Workshop #1 FORMULATING THE OPTIMIZATION PROBLEM We want to schedule the production in two plants, A and B, each of which can manufacture two products: 1 and 2. How should the scheduling take place to maximize profits while meeting the market requirements based on the following data: How many days per year should each plant operate processing each kind of material? Material processed (kg/day) Profit (€/kg) Plant1212 AM A1 M A2 S A1 S A2 BM B1 M B2 S B1 S B2 FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII Optimization Formulation: Workshop #2 FORMULATING THE OPTIMIZATION PROBLEM Suppose the flow rates entering and leaving a process are measures periodically. Determine the best value for stream A in kg/h for the process shown from the three hourly measurements indicated of B and C in the figure, assuming steady-state operation at a fixed operating point. Material reconciliation (a)11.1kg/h (b)10.8kg/h (c) 11.4kg/h (a)92.4kg/h (b)94.3kg/h (c) 93.8kg/h A C B plant FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII Optimization Formulation: Workshop #3 FORMULATING THE OPTIMIZATION PROBLEM Consider the process diagram of the figure where each product (E,F,G) requires different amounts of reactants according to the table shown in the next slide. The table below show the maxium amount of reactant available per day as well as the cost per kg. Material flows allocation A B C E F G Raw material Maximum available (kg/day) Cost (€/kg) A B C FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII Process Product Reactants requirements (kg/kg product) Processing cost (product) (€/kg) Selling price (product) (€/kg) 1E2/3A,1/3B F2/3A,1/3B G1/2A,1/6B,1/3C Formulate the optimization problem. The objective function is to maximize the total operating profit per day in units of €/day Optimization Formulation: Workshop #3 (cont’d) FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN

Optimización de procesos químicos DIQUIMA-ETSII Optimization Formulation: Workshop #4 Hallar la relación óptima (L/D) para la construcción de un depósito de modo que se minimicen los costes. Suposiciones: Los extremos son planos Las paredes tienen un espesor constante, x. La densidad es ρ. El espesor es independiente de la presión El coste de fabricación de los extremos y del cilindro es el mismo (€/kg fabricado) No se desperdicia nada de material durante la fabricación del depósito. FORMULACIÓN DEL PROBLEMA DE OPTIMIZACIÓN