nonlinear optimization the art of modeling
play

Nonlinear Optimization: The art of modeling INSEAD, Spring 2006 - PowerPoint PPT Presentation

Nonlinear Optimization: The art of modeling INSEAD, Spring 2006 Jean-Philippe Vert Ecole des Mines de Paris Jean-Philippe.Vert@mines.org 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) p.1/34 Nonlinear optimization c The


  1. Nonlinear Optimization: The art of modeling INSEAD, Spring 2006 Jean-Philippe Vert Ecole des Mines de Paris Jean-Philippe.Vert@mines.org � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.1/34 Nonlinear optimization c

  2. The art of modeling Objective: to distill the real-world as accurately and succinctly as possible into a quantitative model Dont want models to be too generalized : might not draw much real world value from your results. Ex: Analyzing traffic flows assuming every person has the same characteristics. Dont want models to be too specific : might lose the ability to solve problems or gain insights. Ex: Trying to analyze traffic flows by modeling every single individual using different assumptions. � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.2/34 Nonlinear optimization c

  3. The four-step rule for modeling Sort out data and parameters from the verbal description Define the set of decision variables Formulate the objective function of data and decision variables Set up equality and/or inequality constraints � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.3/34 Nonlinear optimization c

  4. Problem reformulation Only few problems can be solved efficiently (LP , QP , ...) Your problem can often be reformulated in an (almost) equivalent problem that can be solved, up to: adding/removing variables adding/removing constraints modifying the objective function Problem reformulation is key for practical optimization! � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.4/34 Nonlinear optimization c

  5. Model 1: a cheap and healthy diet A healthy diet contains m different nutrients in quantities at least equal to b 1 , . . . , b m . We can compose such a diet with n different food. The j ’s food has a cost c j , and contains an amount a ij of nutrients i ( i = 1 , . . . , m ). How to determine the cheapest healthy diet that satisfies the nutritional requirements? � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.5/34 Nonlinear optimization c

  6. A cheap and healthy diet (cont.) Decision variables : the quantities of the n different food (nonnegative scalars) Objective function : the cost of the diet, to be minimized. Constraints : be healthy, i.e., lower bound on the quantities of each food. � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.6/34 Nonlinear optimization c

  7. A cheap and healthy diet (cont.) Let x 1 , . . . , x n the quantities of the n different food. The problem can be formulated as the LP : n � minimize x j c j j =1 n � subject to x j a ij ≥ b i , i = 1 , . . . , m , j =1 x j ≥ 0 , j = 1 , . . . , n . This is easily solved (see “Linear Programming” course) � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.7/34 Nonlinear optimization c

  8. Model 2: Air traffic control Air plane j, j = 1 , . . . , n arrives at the airport within the time interval [ a j , b j ] in the order of 1 , 2 , . . . , n . The airport wants to find the arrival time for each air plane such that the narrow- est metering time (inter-arrival time between two consecu- tive airplanes) is the greatest. � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.8/34 Nonlinear optimization c

  9. Air traffic control (cont.) Decision variables : the arrival times of the planes. Objective function : the narrowest metering time, to be maximized. Constraints : arrive in the good order, and in the good time slots. � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.9/34 Nonlinear optimization c

  10. Air traffic control (cont.) Let t j be the arrival time of plane j . Then optimization problem translates as: maximize j =1 ,...,n − 1 ( t j +1 − t j ) min subject to a j ≤ t j ≤ b j , j = 1 , . . . , n , t j ≤ t j +1 , j = 1 , . . . , n − 1 . In order to solve it we need to reformulate it in a simpler way. � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.10/34 Nonlinear optimization c

  11. Air traffic control (cont.) Reformulation with a slack variable : maximize ∆ subject to a j ≤ t j ≤ b j , j = 1 , . . . , n , t j ≤ t j +1 , j = 1 , . . . , n − 1 , ∆ ≤ j =1 ,...,n − 1 ( t j +1 − t j ) . min Equivalent to the LP (and therefore easily solved): maximize ∆ subject to a j ≤ t j ≤ b j , j = 1 , . . . , n , t j ≤ t j +1 , j = 1 , . . . , n − 1 , ∆ ≤ t j +1 − t j , j = 1 , . . . , n − 1 . � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.11/34 Nonlinear optimization c

  12. Model 3: Fisher’s exchange market Buyers have money ( w i ) to buy goods and maximize their individual utility functions ; Producers sell their goods for money. The equilibrium price is an assignment of prices to goods so as when every buyer buys an maximal bundle of goods then the market clears, meaning that all the money is spent and all goods are sold. � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.12/34 Nonlinear optimization c

  13. Fisher’s exchange market � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.13/34 Nonlinear optimization c

  14. Buyer’s strategies Let x i,j the amount of good j ∈ G bought by buyer i ∈ B . Let U i ( x ) = U i ( x i, 1 , . . . , x i,G ) be the utility function of buyer i ∈ B . Buyer i ∈ B ’s optimization problem for given prices p j , j ∈ G is the following LP : maximize U i ( x ) � subject to p j x ij ≤ w i , j ∈ G x ij ≥ 0 , ∀ j ∈ G . Depending on U this is a LP (linear), QP (quadratic), LCCP (convex)... � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.14/34 Nonlinear optimization c

  15. Equilibrium price Without losing generality, assume that the amount of each good is 1 . The equilibrium price vector p ∗ is the one that ensures: � x ∗ ( p ∗ ) ij = 1 i ∈ B for all goods j ∈ G , where x ∗ ( p ) are the optimal bundle solu- tions. � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.15/34 Nonlinear optimization c

  16. Example of Fisher’s market Buyer 1 , 2 ’s optimization problems for given prices p x , p y assuming linear utility functions: maximize 2 x 1 + y 1 subject to p x x 1 + p y y 1 ≤ 5 , x 1 , y 1 ≥ 0 ; maximize 3 x 2 + y 2 subject to p x x 2 + p y y 2 ≤ 8 , x 2 , y 2 ≥ 0 . � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.16/34 Nonlinear optimization c

  17. Model 4: Chebyshev center How to find the largest Euclidean ball that lies in a polyhedron described by a set of linear inequalities: x ∈ R n | a ⊤ � � P = i x ≤ b i , i = 1 , . . . , m . The center of the optimal ball is called the Chebyshev center of the polyhedron ; it is the point deepest inside the polyhedron, i.e., farthest from the boundary. � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.17/34 Nonlinear optimization c

  18. Chebyshev center (cont.) The variables are the center x c ∈ R n and the radius r ≥ 0 of the ball: B = ( x c + u | � u � 2 ≤ r ) . The problem is then maximize r subject to B ⊆ P . We now need to translate the constraint into equations. � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.18/34 Nonlinear optimization c

  19. Chebyshev center (cont.) For a single half-space defined by the equation a ⊤ i x ≤ b i , B is on the correct halfspace iff it holds that: ⇒ a ⊤ � u � 2 ≤ r = i ( x c + u ) ≤ b i . But the maximum value that a ⊤ i u takes when � u � 2 ≤ r is r � a i � 2 . Therefore the constraint for a single half-space can be rewritten as: a ⊤ i x c + r � a i � 2 ≤ b i . � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.19/34 Nonlinear optimization c

  20. Chebyshev center (cont.) The Chebyshev center is therefore found by solving the following LP : maximize r a ⊤ subject to i x c + r � a i � 2 ≤ b i , i = 1 , . . . , m . � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.20/34 Nonlinear optimization c

  21. Model 5: Distance between polyhedra How to find the distance between two polyhedra P 1 and P 2 defined by two sets of linear inequalities: P 1 = ( x ∈ R n | A 1 x ≤ b 1 ) , P 2 = ( x ∈ R n | A 2 x ≤ b 2 ) . x1 x2 � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.21/34 Nonlinear optimization c

  22. Distance between polyhedra (cont.) The distance between two sets can be written as a minimum: d ( P 1 , P 2 ) = x 1 ∈P 1 ,x 2 ∈P 2 � x 1 − x 2 � 2 . min The squared distance is therefore the solution of the following QP : � x 1 − x 2 � 2 minimize 2 subject to A 1 x 1 ≤ b 1 , A 2 x 2 ≤ b 2 . � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.22/34 Nonlinear optimization c

  23. Model 6: Portfolio optimization We consider a classical portfolio problem with n assets or stocks held over a period of time. The vector of relative price changes over an investment period p ∈ R n is assumed to be random variable with known mean ¯ p and covariance Σ . We want to define an investment strategies, which minimizes the risk (variance) of the return, while ensuring an expected return above a threshold r min . This investment strategy has been proposed first by Markowitz . � 2003-2006 Jean-Philippe Vert, (Jean-Philippe.Vert@mines.org) – p.23/34 Nonlinear optimization c

Recommend


More recommend