summaryrefslogtreecommitdiff
path: root/416/CH17/EX17.3
diff options
context:
space:
mode:
Diffstat (limited to '416/CH17/EX17.3')
-rwxr-xr-x416/CH17/EX17.3/exp17_3.jpgbin0 -> 20677 bytes
-rwxr-xr-x416/CH17/EX17.3/exp17_3PP.sce31
-rwxr-xr-x416/CH17/EX17.3/exp17_3PP.txt15
3 files changed, 46 insertions, 0 deletions
diff --git a/416/CH17/EX17.3/exp17_3.jpg b/416/CH17/EX17.3/exp17_3.jpg
new file mode 100755
index 000000000..32e9b017a
--- /dev/null
+++ b/416/CH17/EX17.3/exp17_3.jpg
Binary files differ
diff --git a/416/CH17/EX17.3/exp17_3PP.sce b/416/CH17/EX17.3/exp17_3PP.sce
new file mode 100755
index 000000000..ab917f249
--- /dev/null
+++ b/416/CH17/EX17.3/exp17_3PP.sce
@@ -0,0 +1,31 @@
+clc
+clear
+disp("example 17 3")
+//given
+n=4 //number of generating station
+f=0.05 //F.O.R
+a=1-f
+p=50 //generation station power
+mp=150 //maximum alowable power
+lf=50 //load factor in persentage
+function [y]=comb(m,r)
+y=factorial(m)/(factorial(m-r)*factorial(r))
+endfunction
+for i=0:n
+ pg(i+1)=comb(n,i)*((f)^i)*((a)^(n-i))
+ co(i+1)=p*i;ca(i+1)=p*(n-i)
+ printf("\nnumber of units out %d ,capacity out %dMW ,capacity available %dMW ,probability %4f ",i,co(i+1),ca(i+1),pg(i+1))
+end
+ld=mp:-lf:0
+[m n]=size(ld)
+plot(ld)
+tg(n-1)=round(10000/(n-1))/100
+tg(n)=tg(n-1)*2
+tg(n+1)=100
+tg(2)=0;tg(1)=0 //maximum load limit
+for i=0:n
+ el(i+1)=pg(i+1)*tg(i+1)
+ printf("\nnumber of units out %d ,capacity out %dMW ,capacity available %dMW ,probability %4f ,tg in persentage %.2f ,expected load %.6fMW",i,co(i+1),ca(i+1),pg(i+1),tg(i+1),el(i+1))
+end
+lt=sum(el)
+printf("\n\nexpected loss of load is %.6fMW percent of time. assuming 365 days in a year, then expected loss of load is %.3fMW days per year",lt,lt*365/100) \ No newline at end of file
diff --git a/416/CH17/EX17.3/exp17_3PP.txt b/416/CH17/EX17.3/exp17_3PP.txt
new file mode 100755
index 000000000..9708c03c9
--- /dev/null
+++ b/416/CH17/EX17.3/exp17_3PP.txt
@@ -0,0 +1,15 @@
+
+ example 17 3
+
+number of units out 0 ,capacity out 0MW ,capacity available 200MW ,probability 0.814506
+number of units out 1 ,capacity out 50MW ,capacity available 150MW ,probability 0.171475
+number of units out 2 ,capacity out 100MW ,capacity available 100MW ,probability 0.013538
+number of units out 3 ,capacity out 150MW ,capacity available 50MW ,probability 0.000475
+number of units out 4 ,capacity out 200MW ,capacity available 0MW ,probability 0.000006
+number of units out 0 ,capacity out 0MW ,capacity available 200MW ,probability 0.814506 ,tg in persentage 0.00 ,expected load 0.000000MW
+number of units out 1 ,capacity out 50MW ,capacity available 150MW ,probability 0.171475 ,tg in persentage 0.00 ,expected load 0.000000MW
+number of units out 2 ,capacity out 100MW ,capacity available 100MW ,probability 0.013538 ,tg in persentage 33.33 ,expected load 0.451205MW
+number of units out 3 ,capacity out 150MW ,capacity available 50MW ,probability 0.000475 ,tg in persentage 66.66 ,expected load 0.031664MW
+number of units out 4 ,capacity out 200MW ,capacity available 0MW ,probability 0.000006 ,tg in persentage 100.00 ,expected load 0.000625MW
+
+expected loss of load is 0.483493MW percent of time. assuming 365 days in a year, then expected loss of load is 1.765MW days per year \ No newline at end of file