Chapter-III Water Resources Systems: Analysis
Chapter-III Water Resources Systems: Analysis
6
Optimizations
• Objective functions
• Cost minimization
• Benefit Maximization
• Technical objectives
– Increase power, Minimize loss, maximize release etc…
• Constraints
• Physical
• Economical
• Sociological
• Technical
Conventional Optimization Model
– Linear programming
– Integer programming
– Goal programming Computing
– Non-linear programming
– Dynamic programming
7
Example 1.
LINEAR PROGRAMMING
n
Max (or Min) x0 c j x j …..Eq (1)
j 1
n
a x
j 1
ij j bi for i 1, 2, ..., m …..Eq (2)
factory
2x1 Waste
(Waste unit
Generated) treatment
2x1-x2 plant
X2 0.2(2x1-x2)
Unit of waste
Discharged
without treatment
Water course
• Constraint can be mathematically expressed as:
2x1-x2>10 ------------------waste treatment capacity
X2+0.2(2x1-x2) <4 ----------standard set by authority
2x1-x2>0
X1>0 Non- negativity
X2>0 constraint
Therefore :
Max x0 5 x1 x2
Subjected to
2 x1 x2 10
.4 x1 .8 x2 4
2 x1 x2 0
x1 0 and x2 0
• The feasible space can be defined by all the constraints in the model,
including the non-negativity of decision variables.
• Each solid line in the figure is defined by the corresponding constraint
taken as an equation and the two principal axes represent the non-
negativity of x1 and x2.
• The arrow by each line indicates the half-plane in which all points satisfy
the associated constraint.
• The feasible space is therefore the intersection of all feasible half-planes
and every point in the feasible space satisfies all constraints
simultaneously, which is the feasible solution to the optimization model.
• Since the value of the maximum net benefit is not yet known, a trial-and-
error procedure must be used.
• Drawn a line for corresponding objective function equation passes through
the origin i.e . 5x1 – x2 = 0 move it backward or forward parallel to the
original line to see how the objective function value varies taking arbitrary
point.
• Move the objective faction line to increasing direction within visible
policy area and find optimum point
2 x1 x2 10
.4 x1 .8 x2 4
X2 X2>0 2 x1 x2 0
0
x1 0 and x2 0
=
=0
1
2x
2
5x1 -x
0+
2
1 -x
>1
X2 < 0.5x1
2x
2
X
4 (2,4)
X2 <
0
5-0
2 =1
3 .5 x1
1 -x
2x
2
(6,2)
0.4 X1>0
x1 +
0.8
x2 =
1 4
(0,0) (5,0)
1 2 3 4 5 6 7 8 9 10 11
x1
Simplex Method
• Simplex: a linear-programming algorithm that can solve
problems having more than two decision variables.
• The simplex technique involves generating a series of
solutions in tabular form, called tableaus.
• By inspecting the bottom row of each tableau, one can
immediately tell if it represents the optimal solution.
• Each tableau corresponds to a corner point of the
feasible solution space.
• The first tableau corresponds to the origin.
• Subsequent tableaus are developed by shifting to an
adjacent corner point in the direction that yields the
highest (smallest) rate of profit (cost).
• This process continues as long as a positive (negative)
rate of profit (cost) exists.
Steps in Simplex method
Simplex Algorithm
The key solution concepts
• Solution Concept 1: the simplex method
focuses on CPF solutions.
• Solution concept 2: the simplex method is an
iterative algorithm (a systematic solution
procedure that keeps repeating a fixed series
of steps, called, an iteration, until a desired
result has been obtained) with the following
structure:
Simplex algorithm
if no if yes stop
• Steps:
1. Initialization:
a. transform all the constraints to equality by
introducing slack, surplus, and artificial
variables as follows:
Constraint type Variable to be added
≥ + slack (s)
= + Artificial (A)
Simplex method in tabular form
A company produces two product I and II. The raw material requirements, space needed for
storage, production rates, and selling prices for these products are given below:
Product
I II
Storage space 4 5
requirement(ft2/unit)
Raw material (lb/unit) 5 3
Production rate (unit/hr) 60 30
Selling prices ($/unit) 13 11
The total amount of raw material available per day for both products is 15751b. The total
storage space for all products is 1500 ft2, and a maximum of 7 hours per day can be used
for production. The company wants to determine how many units of each product to
produce per day to maximize its total income.
Solution
----Eq (5)
…..Eq (6)
Substituting this equation into Eq. (5) yields the following new
formulation of the model.
X1
…..Eq (7)
It is now obvious from these equations that the new feasible solution is:
It is also obvious from Eq.(A2) that it is also not the optimum solution. The
coefficient of x1 in the objective function represented by A2 is negative (
-16/5), which means that the value of Z can be further increased by giving
x2 some positive value.
Following the same analysis procedure used in step 1, it is clear that:
In Eq. (B2), if S2 = X1 = 0, then x2 = (5/13)(240) = 92.3.
From Eq. (C2), x2 can take on the value (5/3 )(315) = 525 if x 1 = S2 = 0
…..Eq (9)
From these equations, the new feasible solution is readily found to be: x1 = 270,
x2 = 75, S1 = 45, S2 = 0, S3 = 0, Z = 4335.
Because the coefficients in the objective function represented by Eq. (A3)
are all positive, this new solution is also the optimum solution.
Simplex method in tabular form
• Step 3: Solve for the new BF solution by using elementary
row operations (multiply or divide a row by a nonzero
constant; add or subtract a multiple of one row to another
row) to construct a new simplex tableau, and then return to
the optimality test. The specific elementary row operations
are:
1. Divide the pivot row by the “pivot number” (the number in
the intersection of the pivot row and pivot column)
2. For each other row that has a negative coefficient in the
pivot column, add to this row the product of the absolute
value of this coefficient and the new pivot row.
3. For each other row that has a positive coefficient in the
pivot column, subtract from this row the product of the
absolute value of this coefficient and the new pivot row.
Initial tableau
Entering
2. Initial tableau variable
• 4 5 1 0 0 1500
-
• 4 (1 3/5 0 1/5 0 315)
0 13/5 1 -4/5 0 240
For S3
1 2 0 0 1 420
-
(1
1 3/5 0 1/5 0 315)
0 7/5 0 -1/5 1 105
for Z
-13 -11 0 0 0 0
- Substitute this
-13(1 3/5 0 1/5 0 315)
0 -16/5 0 13/5 0 4095) values in the table
Iteration
This solution is not optimal, since there is a negative numbers in the last row
Basic X1 X2 S1 S2 S3 RHS
variable
S1 0 0 1 -3/7 39/35 45
X1 1 0 0 2/7 -3/7 270
X2 0 1 0 -1/7 5/7 75
Z 0 0 0 15/7 16/7 4335
This solution is optimal; since there is no negative solution in the last row: basic
variables are X1 = 270, X2 = 75 and S1 = 45; the nonbasic variables are S2 = S3 = 0 and Z =
4335