summaryrefslogtreecommitdiff
path: root/Engineering_Economics/Chapter10.ipynb
blob: bc34bb8475c4ae0dd318213bb34bac285ebe413c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
{
 "metadata": {
  "name": "",
  "signature": "sha256:28b0077be1a0d41b0cc471c0e34331f1edde6c138991b53632e2c3b3cb0de57c"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Evaluation of Public Alternatives"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.1 Page 138"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#initiation of variable\n",
      "Ii=4000000.0;#in Rs.\n",
      "AM=150000.0;#in Rs.\n",
      "AFS=600000.0;#in Rs.\n",
      "Einc=50000.0;#in Rs.\n",
      "i=12.0;#in % per annum\n",
      "n=15.0;#in years\n",
      "\n",
      "#calculation\n",
      "Cp=AM*(((1+i/100)**n)-1)/((i/100)*(1+i/100)**n);#in Rs\n",
      "TPW=Ii+Cp;#in RS\n",
      "\n",
      "#result\n",
      "print \"Total present worth of costs in RS. : \",round(TPW,3);\n",
      "\n",
      "#Total present worth of fuel savings:\n",
      "AI=600000.0;#in Rs.\n",
      "G=50000.0;#in Rs.\n",
      "i=12.0;#in % per annum\n",
      "n=15.0;#in years\n",
      "\n",
      "#calculation\n",
      "A=AI+G*(((1+i/100)**n)-i*n/100-1)/(((i/100)*(1+i/100)**n)-i/100);#in RS\n",
      "Bp=A*(((1+i/100)**n)-1)/((i/100)*(1+i/100)**n);#in Rs.\n",
      "BCratio=Bp/(Ii+Cp);#unitless\n",
      "\n",
      "#result\n",
      "print \"Present worth of fuel savings in Rs. : \",round(Bp,3);\n",
      "print \"BCratio : \",round(BCratio,3);\n",
      "print\"Since BC ratio is more than 1, the construction of the bridge across the river is justified.\";\n",
      "print\"answers are slightly different from the book due to approximation\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Total present worth of costs in RS. :  5021629.673\n",
        "Present worth of fuel savings in Rs. :  5782527.265\n",
        "BCratio :  1.152\n",
        "Since BC ratio is more than 1, the construction of the bridge across the river is justified.\n",
        "answers are slightly different from the book due to approximation\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.2 Page 139"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#initiation of variable\n",
      "Ic=80000000.0;#in Rs.\n",
      "Aps=6000000.0;#in Rs.\n",
      "Afs=3000000.0;#in Rs.\n",
      "Aib=5000000.0;#in Rs.\n",
      "Arb=2000000.0;#in Rs.\n",
      "Amc=3000000.0;#in Rs.\n",
      "i=12.0;#in % per annum\n",
      "n=50.0;#in years\n",
      "\n",
      "#calculation\n",
      "TAB=Afs+Aib+Arb;#in Rs.\n",
      "PW_B=TAB*(((1+i/100)**n)-1)/((i/100)*(1+i/100)**n);#in Rs\n",
      "\n",
      "#result\n",
      "print \"Total present worth of benefits in RS. : \",round(PW_B,3);\n",
      "\n",
      "#Present worth of costs:\n",
      "PW_C=Ic+Amc*(((1+i/100)**n)-1)/((i/100)*(1+i/100)**n)-Aps*(((1+i/100)**n)-1)/((i/100)*(1+i/100)**n);#in RS\n",
      "BCratio=PW_B/PW_C;#unitless\n",
      "\n",
      "#result\n",
      "print \"Present worth of costs in Rs. : \",round(PW_C,3);\n",
      "print \"BCratio : \",round(BCratio,3);\n",
      "print \"Since BC ratio is more than 1, the state govt. can implement the hydroelectric project.\";"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Total present worth of benefits in RS. :  83044984.884\n",
        "Present worth of costs in Rs. :  55086504.535\n",
        "BCratio :  1.508\n",
        "Since BC ratio is more than 1, the state govt. can implement the hydroelectric project.\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 10.3 Page 140"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#initiation of variable\n",
      "#alternative 1\n",
      "P=3000000.0;#in Rs.\n",
      "B=900000.0;#in Rs.\n",
      "i=10.0;#in % per annum\n",
      "n=5.0;#in years\n",
      "\n",
      "#calculation\n",
      "AE1=P*((i/100)*(1+i/100)**n)/(((1+i/100)**n)-1);#in Rs\n",
      "BCratio=B/AE1;#unitless\n",
      "\n",
      "#result\n",
      "print \"Annual equivalent of initial cost in Rs. : \",round(AE1,3);\n",
      "print \"BCratio : \",round(BCratio,3);\n",
      "\n",
      "#Alternative A2 : \n",
      "P=6000000.0;#in Rs.\n",
      "B=1500000.0;#in Rs.\n",
      "i=10.0;#in % per annum\n",
      "n=7.0;#in years\n",
      "\n",
      "#calculation\n",
      "AE2=P*((i/100)*(1+i/100)**n)/(((1+i/100)**n)-1);#in Rs\n",
      "BCratio=B/AE2;#unitless\n",
      "\n",
      "#result\n",
      "print \"Annual equivalent of initial cost in Rs. : \",round(AE2,3);\n",
      "print \"BCratio : \",round(BCratio,3);\n",
      "print \"The benefit cost ratio of alternative 2 is more than that of alternative A1. Hence, alternative A2 is to be selected. The comparisoon is made on a 35 years period which is the minimum common multiple of the lives of alternative 1 and 2\";"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Annual equivalent of initial cost in Rs. :  791392.442\n",
        "BCratio :  1.137\n",
        "Annual equivalent of initial cost in Rs. :  1232432.998\n",
        "BCratio :  1.217\n",
        "The benefit cost ratio of alternative 2 is more than that of alternative A1. Hence, alternative A2 is to be selected. The comparisoon is made on a 35 years period which is the minimum common multiple of the lives of alternative 1 and 2\n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.4 Page 141"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#initiation of variable\n",
      "#cost of the state\n",
      "n=20.0;#in years\n",
      "P=2500000000.0;#in Rs.\n",
      "Agt=10000000.0;#in Rs.\n",
      "Ai=1000000.0;#in Rs.\n",
      "Com=48000.0;#in Rs./year/employee\n",
      "C1=Com*300;#in Rs.\n",
      "i=10.0;#in % per annum\n",
      "\n",
      "#calculation\n",
      "C2=P*((i/100)*(1+i/100)**n)/(((1+i/100)**n)-1);#in Rs\n",
      "CA=C2+C1;#in Rs\n",
      "\n",
      "#result\n",
      "print \"Annual equivalent initial cost in Rs. : \",round(C2,3);\n",
      "print \"Total Annual equivalent cost of the project in Rs. : \",round(CA,3);\n",
      "\n",
      "#Benefit to the state : \n",
      "W=30000000.0;#in Rs.\n",
      "A1=W*((i/100)*(1+i/100)**n)/(((1+i/100)**n)-1);#in Rs.\n",
      "Agpy=10000000.0;#in ton/year\n",
      "A2=Agpy*(30-10);#in Rs.\n",
      "AvgAI=1000000.0;#in tons Km.\n",
      "G=20000000.0;#in Rs.\n",
      "\n",
      "#calculation\n",
      "A3=A2+G*(((1+i/100)**n)-i*n/100-1)/(((i/100)*(1+i/100)**n)-i/100) ;#in Rs.\n",
      "BA=A1+A3;#in Rs\n",
      "BCratio=BA/CA;#unitless\n",
      "print \"Annual equivalent average of transport cost saving in Rs. : \",round(A3,3);\n",
      "print \"Total annual equivalent benefits to the state : \",round(BA,3);\n",
      "print \"BCratio : \",round(BCratio,3);\n",
      "print \"The benefit cost ratio is more than 1,the project is justified.\";\n",
      "print \"the slight error in the answer of the book is due to approximation error\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Annual equivalent initial cost in Rs. :  293649061.931\n",
        "Total Annual equivalent cost of the project in Rs. :  308049061.931\n",
        "Annual equivalent average of transport cost saving in Rs. :  330161500.91\n",
        "Total annual equivalent benefits to the state :  333685289.653\n",
        "BCratio :  1.083\n",
        "The benefit cost ratio is more than 1,the project is justified.\n",
        "the slight error in the answer of the book is due to approximation error\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.5 Page 143"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#initiation of variable\n",
      "#project A\n",
      "i=9.0;#% per annum\n",
      "n=50.0;#in years\n",
      "P_A=150000000.0;#in RS.\n",
      "Fcs_A=2500000;#in Rs.\n",
      "Ib_A=3500000;#in Rs.\n",
      "Rb_A=1000000;#in RS.\n",
      "OMC_A=2000000.0;#in Rs.\n",
      "Psy_A=10000000.0;#in Rs.\n",
      "\n",
      "#calculation\n",
      "AE_A=P_A*((i/100)*(1+i/100)**n)/(((1+i/100)**n)-1);\n",
      "Cpy_A=AE_A+OMC_A-Psy_A;#in Rs.\n",
      "Bpy_A=Fcs_A+Ib_A+Rb_A;#in Rs.\n",
      "BCratio_A=Bpy_A/Cpy_A;#unitless\n",
      "\n",
      "#result\n",
      "print \"Costs/year : \",round(Cpy_A,3);\n",
      "print \"Benefits/year : \",round(Bpy_A,3);\n",
      "print \"BC Ratio of project A : \",round(BCratio_A,3)\n",
      "\n",
      "\n",
      "#Project B : \n",
      "P_B=250000000.0;#in Rs.\n",
      "\n",
      "OMC_B=2500000.0;#in Rs.\n",
      "Psy_B=12000000.0;#in Rs.\n",
      "Fcs_B=3500000.0;#in Rs.\n",
      "Ib_B=4500000.0;#in Rs.\n",
      "Rb_B=2000000.0;#in RS.\n",
      "AE_B=P_B*((i/100)*(1+i/100)**n)/(((1+i/100)**n)-1);\n",
      "Cpy_B=AE_B+OMC_B-Psy_B;#in Rs.\n",
      "Bpy_B=Fcs_B+Ib_B+Rb_B;#in Rs.\n",
      "BCratio_B=Bpy_B/Cpy_B;#unitless\n",
      "\n",
      "#result\n",
      "print \"Costs/year : \",round(Cpy_B,3);\n",
      "print \"Benefits/year : \",round(Bpy_B,3);\n",
      "print \"BC Ratio of project B : \",round(BCratio_B,3)\n",
      "\n",
      "#Project C : \n",
      "P_C=400000000.0;#in Rs.\n",
      "OMC_C=3500000.0;#in Rs.\n",
      "Psy_C=18000000.0;#in Rs.\n",
      "Fcs_C=5000000.0;#in Rs.\n",
      "Ib_C=6000000.0;#in Rs.\n",
      "Rb_C=3500000.0;#in RS.\n",
      "AE_C=P_C*((i/100)*(1+i/100)**n)/(((1+i/100)**n)-1);\n",
      "Bpy_C=Fcs_C+Ib_C+Rb_C;#in Rs.\n",
      "Cpy_C=AE_C+OMC_C-Psy_C;#in Rs.\n",
      "BCratio_C=Bpy_C/Cpy_C;#unitless\n",
      "\n",
      "#result\n",
      "print \"Costs/year : \",round(Cpy_C,3);\n",
      "print \"Benefits/year : \",round(Bpy_C,3);\n",
      "print \"BC Ratio of project C : \",round(BCratio_C,3)\n",
      "print\"From the computations it is clear that only alternative A is eligible because other two alternatives have BC ratio less than one.\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Costs/year :  5684030.212\n",
        "Benefits/year :  7000000.0\n",
        "BC Ratio of project A :  1.232\n",
        "Costs/year :  13306717.021\n",
        "Benefits/year :  10000000.0\n",
        "BC Ratio of project B :  0.752\n",
        "Costs/year :  21990747.233\n",
        "Benefits/year :  14500000.0\n",
        "BC Ratio of project C :  0.659\n",
        "From the computations it is clear that only alternative A is eligible because other two alternatives have BC ratio less than one.\n"
       ]
      }
     ],
     "prompt_number": 8
    }
   ],
   "metadata": {}
  }
 ]
}