Docsity

OPTIMIZACIÓN DISCRETA, Diapositivas de Métodos Matemáticos para Análisis Numérico y Optimización

Vista previa parcial del texto

¡Descarga OPTIMIZACIÓN DISCRETA y más Diapositivas en PDF de Métodos Matemáticos para Análisis Numérico y Optimización solo en Docsity!

Diego Ortiz Villalba [email protected] Diciembre 2020

MÉTODOS DE OPTIMIZACIÓN APLICADA

OPTIMIZACIÓN DISCRETA

OUTLINE

  • Network Optimization Problems
  • Minimum Cost Flow Problem
  • Convert minimization problems with absolute value
  • Dealing with piecewise non-convex function

MODELOS DE OPTIMIZACIÓN DE RED

Definition 1

  • Una red (o grafo) G consta de un conjunto de nodos N y un conjunto de aristas

E, es decir, G = (N, E).

  • G es un grafo no dirigido cuando cada arista e∈E es un par desordenado de

nodos distintos i y j en N. Una arista entre los nodos i y j se puede denotar en

este caso como {i, j} o {j, i}.

  • G es un grafo dirigido cuando cada arista e∈E es un par ordenado de nodos

distintos i y j en N. Una arista se denotará en este caso como (i, j) e indica #ue

la dirección de la arista es desde el nodo i al nodo j.

NETWORK OPTIMIZATION MODELS

EXAMPLE: UNDIRECTED GRAPH

G = ( N , E ) where N = {1,2,3,4,5} and

E = {{1,2}, {1,3}, {2,3}, {2,4}, {3,4}, {3,5}, {4,5}}

NETWORK OPTIMIZATION MODELS

Definition 1. 13

  • A path between nodes i and j of a graph G is a sequence of nodes and edges starting from i and ending with j such that no nodes are repeated. It is important to note that all edges specified in a path must be in E. Definition 1. 14
  • We say that a graph G = ( N , A ) is connected if there is a path between every pair of distinct nodes i and j ∈ N.

MINIMUM COST FLOW PROBLEM

  • Determine a least cost shipment (flow) of a product (item) through a connected directed network G = ( N , E ) in order to satisfy demand at various nodes from various supply nodes.
  • There are there types of nodes: (1) supply node ( bi > 0) (2) demand node ( bi < 0) (3) transshipment nodes ( bi = 0)
  • For each ( i , j )∈ E , cij is the cost of shipping one unit of product from node i to node j.

MINIMUM COST FLOW PROBLEM

Minimum cost flow network

MINIMUM COST FLOW PROBLEM

The problem can be formulated as LP: minimize c T x subject to Ax = b x ≥ 0 12 12 13 13 1 24 24 2 32 32 3 36 36 4 43 43 5 46 46 6 52 52 54 54 1 4 10 1 0 3 11 , 1 , 10 1 15 1 1 3 x c x c b x c b x c b x x c c b b x c b x c b x c x c é ù é ù (^) é ù ê ú ê ú (^) ê ú ê ú ê ú (^) ê ú é ù ê ú ê ú (^) ê ú ê ú ê ú ê ú (^) ê ú ê ú ê ú ê ú (^) ê ú ê ú (^) - = ê^ ú^ = ê^ ú^ = ê ú = = ê ú ê ú ê ú (^) ê ú - ê ú ê ú ê ú (^) ê ú ê ú ê ú ê ú (^) ê ú ê ú ê ú ê ú (^) ê ú êë úû ê ú ê ú (^) ê ú ê ú ê ú (^) ê ú ë û ë û^ ë û 1 1 0 0 0 0 0 0 0 1 0 1 1 0 0 0 1 0 0 1 0 1 1 1 0 0 0 , 0 0 1 0 0 1 1 0 1 0 0 0 0 0 0 0 1 1 4 0 0 0 0 1 0 1 0 0 A é ù é ù ê ú ê ú


ê ú ê ú ê ú ê (^) - - ú ê ú =ê ú

ê ú ê ú ê ú ê ú ê ú ê ú ë -^ û ë -^ - û

CONVERT MINIMIZATION PROBLEMS WITH ABSOLUTE VALUE

where ci > 0 for all i = 1, … , n. Set , and submit into the problem, the above model then becomes 1 1 2 2 minimize subject to unrestricted 1, , n n i c x c x c x x i n

= ! ! , , , 0 i i i i i i i i x x x x x x x x

= + = - ³

CONVERT MINIMIZATION PROBLEMS WITH ABSOLUTE VALUE

1 (^1 1 )^2 (^2 2 )^ (^ ) 1 1 1 2 2 2 1 1 2 2 minimize subject to 0, 0, 0, 0, , 0, n n n n n n n c x x c x x c x x x x x x x x x x x x x x x x

= - = - = - ³ ³ ³ ³ ³ ! " ! 0 n x

  • ³

CONVERT MINIMIZATION PROBLEMS WITH ABSOLUTE VALUE

  • 𝑀𝑖𝑛𝑖𝑚𝑖𝑧𝑒 500 𝑥* + 200 𝑥- + 250 𝑥. + 125 𝑥
  • 𝑠𝑡: 50 𝑥* + 25 𝑥- + 20 𝑥. + 15 𝑥 0 ≥ - 0 ≤ 𝑥* ≤ - 0 ≤ 𝑥- ≤ - 0 ≤ 𝑥. ≤ - 0 ≤ 𝑥 0 ≤

CONVERT MINIMIZATION PROBLEMS WITH ABSOLUTE VALUE

Example Suppose that we require that the total of ads from the electronic media is within 5 of the number of ads of paper-based media. This can be modeled as follows: The constraint above is equivalent to the following constraints: If the original constraint is replaced by these two constraints, a linear program is obtained that is equivalent to the original non-linear program. 𝑥* + 𝑥- − 𝑥. − 𝑥 0 ≤ 5 It is a non-linear constraint 𝑥* + 𝑥- − 𝑥. − 𝑥 0 ≤ 5 −𝑥* − 𝑥- + 𝑥. + 𝑥 0 ≤ 5

CONVERT MINIMIZATION PROBLEMS WITH ABSOLUTE VALUE

𝑥* = 14. 28 𝑥- = 15 𝑥. = 9. 28 𝑥 0 = 15 Solution: 𝑂𝑏𝑗𝑒𝑐𝑡𝑖𝑣𝑒 𝐹𝑢𝑛𝑐𝑡𝑖𝑜𝑛 = 14229 𝑈𝑆𝐷

CONVERT MINIMIZATION PROBLEMS WITH ABSOLUTE VALUE

  • The optimization problems are equivalent in the sense that any feasible solution for the non- linear program is feasible for the linear program, and vice versa. That is, the feasible regions are exactly the same.
  • Unfortunately, we can’t use the transformation when the optimization problems involve absolute values.
  • Consider the case in which we want the number of radio and TV ads to differ by at least 2. This corresponds to the constraint “|x 1 – x 2 | ≥ 2 .” ?This is equivalent to “x 1 – x 2 ≥ 2 OR – x 1 + x 2 ≥ 2 ”. But it cannot be made linear.