(iii) optimization and simulation introduction and basic components d. nagesh kumar, iisc water...

31
(iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Upload: leslie-stafford

Post on 18-Jan-2018

243 views

Category:

Documents


0 download

DESCRIPTION

Modelling Techniques D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3 Modelling or system analysis techniques - Developed during the Second World War to deploy limited resources in an optimum manner These techniques were aided for military operations - known as operation research techniques Popular operations research techniques include Optimization methods Simulation Game theory Queuing theory etc Among, these, the popular ones in water resources field are optimization and simulation. 3

TRANSCRIPT

Page 1: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

(iii) Optimization and Simulation

Introduction and Basic Components

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Page 2: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Objectives

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Understand the concept of optimization and simulation

Classification of optimization and simulation problems

Economic criteria in water resources

Learn about the challenges in water resources

2

Page 3: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Modelling Techniques

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Modelling or system analysis techniques - Developed during the Second World War to deploy limited resources in an optimum manner

These techniques were aided for military operations - known as operation research techniques

Popular operations research techniques include Optimization methods

Simulation

Game theory

Queuing theory etc

Among, these, the popular ones in water resources field are optimization and simulation.

3

Page 4: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Optimization

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Science of choosing the best amongst a number of possible alternatives Identify the best through evaluation from a number of possible solutions Driving force in the optimization is the objective function (or functions) Optimal solution is the one which gives the best (either maximum or

minimum) solution under all assumptions and constraints An optimization model can be stated as:

Objective function: Maximize (or Minimize) f(X)

Subject to the constraints

gj(X) ≥ 0, j = 1,2,..,m hj(X) = 0, j = m+1, m+2,.., p

X is the vector of decision variables; g(X) are the inequality constraints; h(X) are the equality constraints.

4

Page 5: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Classification of Optimization Techniques

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Optimization problems can be classified based on the Type of constraints

Nature of design variables

Physical structure of the problem

Nature of the equations involved

Permissible value of the design variables

Deterministic/ Stochastic nature of the variables

Separability of the functions and number of objective functions

5

Page 6: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Classification based on existence of constraints

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Constrained optimization problems: Subject to one or more

constraints

Unconstrained optimization problems: No constraints exist

6

Page 7: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Classification based on physical structure of the problem

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Optimization problems are classified as optimal control and non-optimal control problems.

(i)Optimal control problems

Problem involving a number of stages

Each stage evolves from the preceding stage in a prescribed manner.

Defined by two types of variables: the control or design and state variables.

Control variables define the system and controls how one stage evolves into the next

State variables describe the behavior or status of the system at any stage

Problem is to find a set of control variables such that the total objective function (also known as the performance index, PI) over all stages is minimized, subject to a set of constraints on the control and state variables.

7

Page 8: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Classification based on the physical structure of the problem…

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

An OC problem can be stated as follows:

Find X which minimizes

Subject to the constraints

where xi is the ith control variable, yi is the ith state variable, and fi is the

contribution of the ith stage to the total objective function. gj, hk, and qi are

the functions of xj, yj ; xk, yk and xi, yi , respectively, and l is the total number

of states.

(ii) Problems which are not optimal control problems are called non-optimal control problems.

8

Page 9: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Classification based on the nature of the equations involved

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Optimization problems can be classified as

(i)Linear programming: Objective function and all the constraints are ‘linear’

functions of the design variables

(ii)Nonlinear programming : Any of the functions among the objectives and

constraint functions is nonlinear

(iii)Geometric programming : Objective function and constraints are

expressed as polynomials

(iv)Quadratic programming: Best behaved nonlinear programming problem

with a quadratic objective function and linear constraints and is concave (for

maximization problems)

* For details refer lecture notes9

Page 10: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Classification based on the permissible values of the decision variables

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Objective functions can be classified as integer and real-valued

programming

(i)Integer programming problem: Some or all of the design variables of an

optimization problem are restricted to take only integer (or discrete) values

(ii)Real-valued programming problem: Minimize (or maximize) a real

function by systematically choosing the values of real variables from within an

allowed set. When the allowed set contains only real values, it is called a real-

valued programming problem 

10

Page 11: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Classification based on deterministic/ Stochastic nature of the variables

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Optimization problems can be classified as deterministic or stochastic

programming problems

(i) Deterministic programming problem: In a deterministic system, for the

same input, the system will produce the same output always. In this type of

problems all the design variables are deterministic.

(ii) Stochastic programming problem: In this type of problem, some or all

the design variables are expressed probabilistically (non-deterministic or

stochastic).

11

Page 12: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Classification based on separability of the functions

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Optimization problems can be classified as separable and non-separable

programming problems

(i) Separable programming problems: In this type of problem, the objective

function and the constraints are separable.

Function is said to be separable if it can be expressed as the sum of n

single-variable functions,

,

i.e.

(ii) Non-separable programming problems: Objective function is not

separables

12

nni xfxfxf ,..., 221

n

iii xfXf

1

)(

Page 13: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Classification based on the number of objective functions

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Objective functions can be classified as single-objective and multi-objective

programming problems.

(i) Single-objective programming: There is only a single objective function.

(ii) Multi-objective programming: A multiobjective programming problem

can be stated as follows:

Find X which maximizes/ minimizes

Subject to gj(X) ≤ 0 , j = 1, 2, . . . , m

where f1, f2, . . . fk denote the objective functions to be maximized/

minimized simultaneously

13

XfXfXf k,..., 21

Page 14: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Simulation

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Simulation process duplicates the system’s behaviour by designing a model of the system and conducting experiments for a better understanding of the system functioning in various probable scenarios

Simulation reproduces the response of the system to any imposed future conditions

Main advantage of simulation is its ability to accurately describe the reality

Operating policies can be tested through simulation before implementing in actual situations

Water resources systems are too complex to be expressed in any analytical expression.

Simulation model duplicates the system’s operation with a defined operational policy, parameters, time series of flows, demands etc

Design parameters and the operation policy are evaluated through the objective function or some reliability measures.

14

Page 15: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Steps in Simulation

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

1. Problem definition: Define the goals of the study

2. System definition: Identify the water resources system components and its

hydrological aspects. Identify the performance measures to be analysed.

3. Model design: Understand the behavior of actual system. Decide the model

structure by determining the variables describing the system, its interaction

and various parameters of structures. Decide the inputs (time series of flows,

demands of the system, operation policies etc) and outputs (hydrological

variables and design variables).

4. Data Collection: Determine the type of data to be collected. New/ Old data is

collected/ gathered.

5. Validation: Test the model and apply the model to the problem

15

Page 16: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Classification of Simulation models

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Simulation models can be

i. Physical (e.g. a scale model of a spillway)

ii. Analog (system of electrical components such as resistors or capacitors arranged

to act as an analog to the hydrological components) or

iii. Mathematical (action of a system expressed as equations or logical statements.

Simulation models can be

i. Static (fixed parameters and operational policy) or

ii. Dynamic (takes into account the change in the parameters of the system and the

operational policy with time) in nature.

16

Page 17: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Classification of Simulation models…

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Simulation models can be deterministic or stochastic

Simulation models can be statistical or process oriented, or a mixture of both.

Pure statistical models are based solely on data (field measurements). Regressions

and artificial neural networks are examples

Pure process oriented models are based on knowledge of the fundamental processes

that are taking place. In this, calibration using field data is required to estimate the

parameter values in the process relationships.

Hybrid models incorporate some process relationships into regression models or

neural networks.

17

Page 18: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Comparison between Optimization and Simulation

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Optimization models eliminate the worst solutions.

Simulation tools evaluate the performance for various configurations of the system; but they are not effective for choosing the best configuration.

Simulation simply addresses ‘what-if’ scenarios – what may happen if a particular scenario is assumed or if a particular decision is made. Users have to specify the value of design or decision variables for conducting simulation.

Simulation is not feasible when there are too many alternatives for decision variables, which demand an enormous computational effort.

Optimization will determine the best decision; but the solution is often based on many limiting assumptions.

Full advantage of systems techniques: Optimization should be used to define a relatively small number of good alternatives that can later be tested, evaluated and improved by means of simulation.

18

Page 19: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Economics in Water Resources

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Economics in engineering deals with applying economic criteria to select the

best solution from a group of feasible alternatives

Evolving the best economic policy for planning and management of an

engineering project

Ranking and selection of alternatives are done based on the principles of

engineering economics

Magnitude of consequences expected from employing each alternative are

assessed and converted into commensurable units for comparison.

19

Page 20: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Concepts used in economic analysis

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Cash flow diagram: Assess the consequences of each alternative and assign a monetary value for each

consequence Graphic representation of each monetary value with time is called a cash flow

diagram. Benefits are represented as upward arrows and costs as downward arrows. Drawn to convert the time stream of monetary value into an equivalent single

number. All cash flows are combined into an equivalent single lump sum at the end of a

period.

At the beginning, a large expenditure is made.

Benefits are received thereafter every year.

20

Benefits

Costs500

50 50 50 50 50 50 50

40

Cash flow diagram

Page 21: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Concepts used in economic analysis…

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Discount factors:

Amounts at different times have different values.

All monetary values are converted into equivalent amounts at some definite time using discount factors, for comparison.

Many discount factors are used:

Compound amount factor – An amount P invested at the beginning of first year grows to Q at the end of n years, Q = P(1+i)n

Present worth factor – Inverse of the above, gives the present value of a future amount, P = Q/(1+i)n

Sinking fund factor – Amount X that will be received at the end of each year to get Q at the end of n years, X = Q i / [(1+i)n -1]

21

Page 22: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Concepts used in economic analysis…

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Discount factors:

Capital recovery factor – Amount X that should be invested at the end of each year, if amount P is invested at the beginning of first year, X = P i (1+i)n / [(1+i)n -1]

Series compound factor – Amount Q that will be received at the end of nth year, if an amount X is invested at the end of each year, Q = X [(1+i)n -1] / i

Series present worth factor – Present value of P if an amount X is invested at the end of each year, P = X [(1+i)n -1] / i (1+i)n

Other terms

Sunk cost: Money spent already which has no economic relevance in deciding future alternatives

Salvage value: Value of the unused life of an element at the end of the period of analysis. Salvage value, S = I (1 – U/L), where I = initial value, U = unused life and L = total life.

22

Page 23: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Discounting Techniques

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Discounting techniques are used to find the feasible one among various

alternatives.

Commonly used discounting techniques are:

1. Benefit-cost ratio method

2. Present worth method

3. Rate of return method

4. Annual cost method

The first two methods are explained

23

Page 24: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Benefit – Cost ratio method

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

BC ratio: Ratio of the present worth of benefits and the present worth of cost

where

Bt and Ct are the monetary values of benefits and costs incurred at time t

respectively

i is the discount rate

n is the life of the project in time steps (years or months or weeks).

24

n

tt

t

n

tt

t

iC

iB

CBR

0

0

1

1

Page 25: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Benefit – Cost ratio method…

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Steps for choosing the best alternative are:

1. Calculate the BC ratio for each alternative

2. Retain all alternatives with BC>1 and reject the rest. If sets of mutually exclusive alternatives are involved then go to steps 3, 4 and 5.

3. Rank the set of mutually exclusive alternatives in the order of increasing cost. Calculate the BC ratio using incremental cost and incremental benefit of the next alternative above the least costly alternative.

4. Choose the more costly alternative of the incremental BC >1. Otherwise choose the less costly alternative.

5. Repeat the analysis for all alternatives in the order of rank.

25

Page 26: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

BC ratio: Example

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Two alternative plans are feasible. The estimated cost of 1st plan is 70 lakhs and the corresponding benefit is 80 lakhs. The cost for the 2nd plan is 85 lakhs and benefit is 100 lakhs. Which plan should be selected?

Solution

BC ratio for 1st plan = 80/70 = 1.14; BC ratio for 2nd plan = 100/85 = 1.176

Since BC ratios are >1, according to steps 3 and 4, rank the plans based on cost.

Plan 1 is ranked 1 and plan 2 is ranked 2.

Now, incremental cost (2nd plan over 1st plan) = 85 – 70 = 15; Incremental benefit (2nd plan over 1st plan) = 100 – 80 =20

Incremental BC ratio = 20/15 = 1.33; Since Incremental BC ratio > 1, the more costly alternative should be selected.

Therefore, plan 2 is chosen.

26

Page 27: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Present worth method

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Net worth (benefit – cost ) for each year is computed and discounted to the present with using the present worth factor – Net Present Value (NPV).

where Bt and Ct are the monetary values of benefits and costs incurred at time t respectively, i is the discount rate and n is the life of the project.

The steps for selecting the best alternative are:

1. Determine the NPV of each alternative.

2. Retain those alternatives with NPV > 0 and reject the rest. If there is any mutually exclusive alternative, then proceed to steps 3 and 4. Otherwise, stop.

3. Choose the one with greatest NPV from the set of mutually exclusive alternatives.

4. If in a set of mutually exclusive alternatives, some have benefits that cannot be quantified but are approximately equal, then choose the one with least cost.

27

nnn

iCB

iCB

iCBNPV

1

.....11 1

11000

Page 28: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Challenges in Water Sector

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

The major challenges in water sector as per World Water Forum and are listed below:

Meeting basic needs

Protecting ecosystems

Securing the food supply

Sharing water resources

Dealing with hazards

Valuing water

Governing water wisely

28

Page 29: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

Challenges in Water Sector…

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Main actions to be taken to solve problems in water sector are:

Integrated management of river basins

Participation of community in the management

Improved agricultural practices

Extensive and reliable database of information dissemination

Proper valuation of water

29

Page 30: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

BIBLIOGRAPHY/ FURTHER READING:

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Global Water Partnership (GWP), Integrated Water Resources Management, Background Papers No. 4, Technical Advisory Committee (TAC), 2000.

Jain, S.K. and V.P. Singh, Water Resources Systems Planning and Management, Vol. 51, Elsevier Science, 2003.

Haimes, Hierarchical Analyses of Water Resources Systems: Modeling and Optimization of Largescale systems, McGraw-Hill, New York, 1977.

Loucks D.P. and van Beek E., ‘Water Resources Systems Planning and Management’, UNESCO Publishing, The Netherlands, 2005.

Loucks, D.P., J.R. Stedinger, and D.A. Haith, Water Resources Systems Planning and Analysis, Prentice-Hall, N.J., 1981.

Mays, L.W. and K. Tung, Hydrosystems Engineering and Management, McGraw-Hill Inc., New York, 1992.

30

Page 31: (iii) Optimization and Simulation Introduction and Basic Components D. Nagesh Kumar, IISc Water Resources Systems Planning and Management: M1L3

D. Nagesh Kumar, IIScWater Resources Systems Planning and Management: M1L3

Thank You