0% found this document useful (0 votes)
13 views3 pages

OPT4CL

Uploaded by

Taha ZOULAGH
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

OPT4CL

Uploaded by

Taha ZOULAGH
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Lab1 Part 2: Opt4Ctrl-Lab

Taha Zoulagh & Dima Houjayri

Learning Objectives
• Understand how to formulate a control problem using linear program-
ming.

• Use numerical tools (MATLAB) to solve optimization problems.

• Apply linear programming to minimize costs or maximize performance


under specific constraints.

Problem Context
A pumping station needs to distribute water to three reservoirs (R1 , R2 , R3 ).
Each reservoir has a daily water demand that must be satisfied. The objective
is to minimize the energy costs associated with pumping while respecting the
pump capacity constraints and the water demands of the reservoirs.

Parameters
• The station is equipped with three pumps (P1 , P2 , P3 ) that supply water
to reservoirs R1 , R2 , R3 , respectively.

• Each pump has a specific energy cost per cubic meter pumped:

– c1 = 5 €/m3 for P1 ,
– c2 = 6 €/m3 for P2 ,
– c3 = 4 €/m3 for P3 .

• The daily demands of the reservoirs are:

– D1 = 50 m3 ,

1
– D2 = 70 m3 ,
– D3 = 60 m3 .

• The pumps have maximum capacities:

– P1 ≤ 60 m3 ,
– P2 ≤ 80 m3 ,
– P3 ≤ 90 m3 .

Objective
Minimize the total energy cost while satisfying the reservoir demands and
respecting the pump capacities.

Tasks to Perform
1. Mathematical Formulation:

• Define the decision variables (x1 , x2 , x3 ) representing the volumes


of water pumped by P1 , P2 , P3 , respectively.
• Write the objective function to minimize.
• Write the equality constraints (to satisfy reservoir demands) and
inequality constraints (for pump limits).

2. Solution Using MATLAB:

• Formulate the problem in matrix form for use with the linprog
function.
• Solve the problem using linprog.

3. Validation of Results:

• Verify that the pumped volumes meet the capacity and demand
constraints.
• Calculate the optimized total cost.

4. Sensitivity Analysis (Bonus):

• Analyze the impact of increasing the demand of R2 to 90 m3 .


• Propose an alternative solution if one of the pumps fails.

2
Data and Formulation
Objective Function
Minimize the total cost:

Z = 5x1 + 6x2 + 4x3

Constraints
• Demand satisfaction:
x1 + x2 + x3 = 180

• Pump limits:
x1 ≤ 60, x2 ≤ 80, x3 ≤ 90

• Non-negativity:
x1 , x2 , x3 ≥ 0

Questions
1. What are the optimal pumped volumes for each pump?

2. What is the optimized total cost?

3. What happens if the demand for R2 increases? Recalculate.

4. If P1 fails (i.e., x1 = 0), what is the new solution?

You might also like