summaryrefslogtreecommitdiff
path: root/416/CH10/EX10.9/exp10_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '416/CH10/EX10.9/exp10_9.sce')
-rwxr-xr-x416/CH10/EX10.9/exp10_9.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/416/CH10/EX10.9/exp10_9.sce b/416/CH10/EX10.9/exp10_9.sce
new file mode 100755
index 000000000..98bb4a08e
--- /dev/null
+++ b/416/CH10/EX10.9/exp10_9.sce
@@ -0,0 +1,21 @@
+clear
+clc
+disp("example 10.9")
+r1=22;r2=30;q1=0.2;q2=0.15
+b22=0;b12=0;p1=100;pl=15//transmission losses are 0
+b11=pl/(p1)^2
+function [p1,p2]=power(x) //mathematical computation
+ p1=(x-r1)/(q1+2*b11*x)
+ p2=(x-r2)/q2
+endfunction
+[a,b]=power(60)
+pt=a+b-(b11*a^2)
+
+
+
+
+z=integrate('q1*u+r1','u',a,161.80)
+y=integrate('q2*v+r2','v',b,162.5)
+m=z+y
+printf("net change in cost =Rs.%dper hour",m)
+printf("\nthus scheduling the generation by taking transmission losses into account would mean a saving of Rs.%dper hour in fuel cost",m) \ No newline at end of file