summaryrefslogtreecommitdiff
path: root/416/CH10/EX10.3/exp10_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /416/CH10/EX10.3/exp10_3.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '416/CH10/EX10.3/exp10_3.sce')
-rwxr-xr-x416/CH10/EX10.3/exp10_3.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/416/CH10/EX10.3/exp10_3.sce b/416/CH10/EX10.3/exp10_3.sce
new file mode 100755
index 000000000..bac1dc081
--- /dev/null
+++ b/416/CH10/EX10.3/exp10_3.sce
@@ -0,0 +1,23 @@
+clear
+clc
+disp("example 10.3")
+function [ic]=unit1(p1)
+ ic=0.2*p1+30
+endfunction
+function [ic]=unit2(p2)
+ ic=0.15*p2+40
+endfunction
+tol=400
+pd=50
+u1c=5
+u2c=1/0.15//from example10_1
+p1pd=u1c/(u1c+u2c)
+p2pd=u2c/(u1c+u2c)
+pi=p1pd*pd
+pt=p2pd*pd
+printf("p1=%1.5fMW\n p2=%1.5fMW",pi,pt)
+p11=pi+tol/2
+p22=pt+tol/2
+up1=unit1(p11)
+up2=unit2(p22)
+ printf("\nthe total load on 2 units would be %3.2fMW and %3.2fMW respectevily. it is easy to check that incremental cost will be same for two units at these loading.\n incremental cost of unit1 is %3.2fRs.MW,\n incremantal cost of unit 2 is %3.2fRs./MW",p11,p22,up1,up2)