Question: Task: Determine the optimum ( best ) pipe and tank combination ( Figure 1 ) to supply drinking water to a community. The optimum combination
Task:
Determine the optimum best pipe and tank combination Figure to supply drinking water
to a community. The optimum combination is the lowest combined pipe and storage cost that Step : Calculate new Velocity,
Step :
If Then ; Repeat Steps to
If Then Area of pipe, End
To calculate Tank volume :
Tank volume at Tank volume at Pipe supply during Volume
demanded during
ii Create the worksheet named Optimization and compute the following for each
pipe Diameter :
Pipe unit cost Randm Transfer from the Data worksheet
Pipe diameter, Transfer from the Data worksheet
Pipe supply, Transfer from the Balancing storage calculations
worksheet
Pipe headloss,
Pipe cost Rand Pipe length Pipe unit cost Rand
Balancing storage absolute value of the Highest cumulative surplus
absolute value of the Highest cumulative deficit
Extra storage Emergency storage Fire storage Bottom storage
Total storage Balancing storage Extra Storage
Storage cost Rand Total storage Storage unit cost
Total cost Rand Storage cost Pipe cost
iii. Highlight the row with the optimum pipe and storage combination. If the optimum
cannot be determined, the code must display the following message: "the
maximum headloss constraint was violated and no optimum pipe and tank
combination can be calculated".
Efficiency of VBA code
Structure and use of comments
VBA CODE SHOULD BE DESIGNED BY YOU AND ENTERED INTO A VBE MODULES
SHOULD YOU USE ACTIVEX 'FORMS' CONTROLS, THE CONTROL MUST FUNCTION
BASED ON THE VBA CODE YOU DEVELOPED AND INPUT INTO THE' FORMS' MODULE.
does not violate anv constraints.
Figure Irunk mans ppe to intermealate tank to consumers
a Project Part A:
Total marks
Submit the algorithm handsketched or computer generated for Project Part B on
one A or A page.
On the page, provide a legend where each variable in the algorithm is described.
b Project Part B:
Total marks
Submit one Excel MacroEnabled Workbook that contains the provided Data
worksheet with the given input data. Do not rearrange the data.
Place one Optimise button on the Data worksheet. This button is to call the VBA code
that will:
i Create the worksheet named Balancing storage calculations and compute Pipe
supply, for each Diameter and Tank volume at each hour. The
below stepsformulae are to be employed:
To calculate Pipe supply, :
Step : Assume Velocity, and Velocity,
Step : Calculate Reynolds Number, v
Step : Calculate pipe headloss coefficient Lambda, using the
SwameeJain formula
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
