diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3733/CH34/EX34.10 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3733/CH34/EX34.10')
-rw-r--r-- | 3733/CH34/EX34.10/Ex34_10.sce | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/3733/CH34/EX34.10/Ex34_10.sce b/3733/CH34/EX34.10/Ex34_10.sce new file mode 100644 index 000000000..ce35826c6 --- /dev/null +++ b/3733/CH34/EX34.10/Ex34_10.sce @@ -0,0 +1,28 @@ +// Example 34_10
+clc;funcprot(0);
+//Given data
+// dF_a/dP_a=0.065*P_a+25;
+// dF_b/dP_b=0.08*P_b+20;
+L=160;// Total load in MW
+
+// Calculation
+//(a)
+function[X]=power(y)
+ X(1)=(y(1)+y(2))-L;
+ X(2)=((0.065*y(1))+25)-((0.08*y(2))+20);
+endfunction
+y=[10 100];
+z=fsolve(y,power);
+P_a=z(1);// MW
+P_b=z(2);// MW
+//(b)
+L=160/2;//If the load is equally shared by both the units
+p_a1=P_a;
+p_a2=L;// Limits of integration
+Ic_A=integrate('((0.065*p_a)+25)','p_a',p_a1,p_a2);// Increase in cost for unit A in Rs/hr.
+p_b1=P_b;
+p_b2=L;// Limits of integration
+Ic_B=integrate('((0.08*p_b)+20)','p_b',p_b1,p_b2);// Increase in cost for unit B in Rs/hr.
+dC=Ic_A+Ic_B;
+printf('\n(a)P_a=%0.1f MW \n P_b=%0.1f MW \n(b)The loss in fuel cost per hour=Rs.%0.0f/hr',P_a,P_b,dC);
+// The answer provided in the textbook is wrong
|