an overview of optimization in water resources …florida international university optimization in...

33
Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview of optimization in water resources engineering and other applications

Upload: others

Post on 20-Jul-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Florida International UniversityOptimization in Water Resources Engineering

Spring 2020

Arturo S. Leon, Ph.D., P.E., D.WRE

An overview of optimization in water resources engineering and

other applications

Page 2: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Videos of optimization

Genetic Algorithm. Learning to walk - OpenAI Gym

https://www.youtube.com/watch?v=uwz8JzrEwWY

Genetic algorithms - evolution of a 2D car in Unity

https://www.youtube.com/watch?v=FKbarpAlBkw

Page 3: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Optimization in nature

Source: P. Perona, IHW –ETH

Page 4: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Optimization in nature

Source: P. Perona, IHW –ETH

Page 5: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Optimization in rivers

Source: http://www.flickr.com/photos/deadlyphoto/2457635320/

Braided river, Denali National Park, Alaska

Page 6: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Optimization in rivers

Source: http://www.scienceclarified.com/landforms/Ocean-Basins-to-Volcanoes/Stream-and-River.html

A meandering river (The meandering Tigre River, Argentina)

Page 7: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Optimization of Flow networks

Flow network optimization (Klarbring et al, 2003)Ground structure approachMinimize dissipation / pressure drop

Page 8: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

WHAT IS OPTIMIZATION?

● “Making things better” ● “Generating more profit”● “Determining the best”● “Do more with less”

Page 9: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

DESIGN ANALYSIS EVALUATION OK?YES

NOMODIFY THE DESIGN

HOW TO MODIFY THE DESIGN????

WITH OPTIMIZATION METHODS

WITH EXPERIENCE….TRIAL

and ERROR

NO

END

Why OPTIMIZATION?

Page 10: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Why OPTIMIZATION? (Cont.)Is there one aircraft which is the fastest, most efficient, quietest, mostinexpensive, most light weight ?

https://b-reddy.org/how-much-will-your-weight-matter-when-going-to-mars-spacex-style/

Page 11: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Why OPTIMIZATION? (Cont.)

Page 12: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

HISTORICAL PERSPECTIVE

Lagrange (1750): Constrained minimization

Cauchy (1847): Steepest descent Dantzig (1947): Simplex method (LP) Kuhn, Tucker (1951): Optimality conditions

Karmakar (1984): Interior point method (LP) Bendsoe, Kikuchi (1988): Topology optimization

Page 13: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

OPTIMIZATION

Objective Function

Design Variables

Inequality Constraints

BoundsEquality Constraints

Page 14: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

LOCAL AND GLOBAL OPTIMA (Maximization)

https://kevinbinz.com/2015/08/05/an-introduction-to-natural-selection/

Local optimum Global optimum

Page 15: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Optimization Problems

Local

Multi-Objective

Un-Constrained

Non-GradientGradient Based

Constrained

Single-Objective

Global

Page 16: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Constrained Optimization

https://designinformaticslab.github.io/productdesign_tutorial/2016/11/20/ansys.html

Page 17: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Example The Beaver Creek Pottery Company produces bowls and mugs. The two primary resources used are special pottery clay and skilled labour. The two products have the following resource requirements for production and profit per item produced (that is, the model parameters).

Resource available: 40 hours of labour per day and 120 pounds of clay per day. How many bowls and mugs should be produced to maximizing profits give these labour resources?

17

Resource Requirements

Product Labor (hr/unit)

Clay (lb/unit)

Profit ($/unit)

Bowl 1 4 40

Mug 2 3 50

LINEAR PROGRAMMINGMaximization Problem

Page 18: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Resource Requirements

Product Labor (hr/unit)

Clay (lb/unit)

Profit ($/unit)

Bowl 1 4 40

Mug 2 3 50

LP Model FormulationA Maximization Example

Product mix problem - Beaver Creek Pottery Company How many bowls and mugs should be produced to maximize

profits given labor and materials constraints? Product resource requirements and unit profit:

Page 19: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

19

Let xi be denoted as xi product to be produced, andi = 1, 2or Let x1 be numbers of product 1 to be produced

and x2 be numbers of product 2 to be produced

Maximize

subject to

Objective function

Constraints

Decision variables

A Maximization Example (Cont.)

Page 20: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

20

Step 1: define decision variablesLet x1=number of bowls to produce/day

x2= number of mugs to produce/day

Step 2: define the objective functionmaximize Z =

where Z= profit per day

Step 3: state all the resource constraintshours of labor (resource constraint 1)pounds of clay (resource constraint 2)

Step 4: define non-negativity constraints

Complete Linear Programming Model:

A Maximization Example (Cont.)

Page 21: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

21

A FEASIBLE SOLUTION

A feasible solution does not violate any of the constraints:

Example x1 = 5 bowlsx2 = 10 mugsZ =

Labor constraint check:

Clay constraint check:

Page 22: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

22

An INFEASIBLE SOLUTION

An infeasible solution violates at least one of the constraints:

Example x1 = 10 bowlsx2 = 20 mugsZ =

Labor constraint check:

Page 23: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Graphical Solution of MaximizationLabor Constraint Area

Maximize Z = $40x1 + $50x2subject to:

1x1 + 2x2 40 4x1 + 3x2 120

x1, x2 0

Labor Constraint Area

Page 24: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Clay Constraint Area

Maximize Z = $40x1 + $50x2subject to:

1x1 + 2x2 40 4x1 + 3x2 120

x1, x2 0

Clay Constraint Area

Page 25: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Maximize Z = $40x1 + $50x2subject to:

1x1 + 2x2 40 4x1 + 3x2 120

x1, x2 0

Graph of Both Model Constraints

Graph of Both Model Constraints

Page 26: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Feasible Solution Area

Maximize Z = $40x1 + $50x2subject to:

1x1 + 2x2 40 4x1 + 3x2 120

x1, x2 0

Feasible Solution Area

Page 27: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Objective Function Solution = $800

Maximize Z = $40x1 + $50x2subject to:

1x1 + 2x2 40 4x1 + 3x2 120

x1, x2 0

Objection Function Line for Z = $800

Page 28: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Alternative Objective Function Solution Lines

Maximize Z = $40x1 + $50x2subject to:

1x1 + 2x2 40 4x1 + 3x2 120

x1, x2 0

Alternative Objective Function Lines

Page 29: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Identification of Optimal Solution

Identification of Optimal Solution

Maximize Z = $40x1 + $50x2subject to:

1x1 + 2x2 40 4x1 + 3x2 120

x1, x2 0

Page 30: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Optimal Solution Coordinates

Maximize Z = $40x1 + $50x2subject to:

1x1 + 2x2 40 4x1 + 3x2 120

x1, x2 0

Optimal Solution Coordinates

Page 31: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Extreme (Corner) Point Solutions

Maximize Z = $40x1 + $50x2subject to:

1x1 + 2x2 40 4x1 + 3x2 120

x1, x2 0

Solutions at All Corner Points

Page 32: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

Solution with Excel (Show in class)

Page 33: An overview of optimization in water resources …Florida International University Optimization in Water Resources Engineering Spring 2020 Arturo S. Leon, Ph.D., P.E., D.WRE An overview

ROBUST DESIGN33

Robust design: a design whose performance is insensitive to variations.

Example: We want to pick x to maximize F

Simply doing a trade study to optimize the value of F would lead the designer to pick this pointF

x

This means that values of F as low

as this can be expected!

What if I pick this point instead?