From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2441/CH1/EX1.6/Ex1_6.sce | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 2441/CH1/EX1.6/Ex1_6.sce (limited to '2441/CH1/EX1.6') diff --git a/2441/CH1/EX1.6/Ex1_6.sce b/2441/CH1/EX1.6/Ex1_6.sce new file mode 100755 index 000000000..2672452e1 --- /dev/null +++ b/2441/CH1/EX1.6/Ex1_6.sce @@ -0,0 +1,47 @@ +//exa 1.6 +clc;clear;close; +format('v',6); +//12 to 5 am & 10 to 12 am +L1=20;//MW +E1=L1*24;//MWh +//5 to 9 am +L2=40;//MW +E2=E1+(L2-L1)*17;//MWh +//9 to 6 pm +L3=80;//MW +E3=E2+(L3-L2)*13;//MWh +//6 to 10 pm +L4=100;//MW +E4=E3+(L4-L3)*4;//MWh +//Plotting Energy load curve +L=[0,L1,L2,L3,L4];//MW +E=[0,E1,E2,E3,E4];//Mwh +subplot(2,1,1) +plot(E,L) +xlabel('Energy(MWh)'); +ylabel('Load(MW)'); +title('Energy Load Curve'); +//Energy Supplied +//Upto 5am +t1=5;//hours +E1=L1*t1;//MWh +//Upto 9am +t2=4;//hours +E2=E1+L2*t2;//MWh +//Upto 6pm +t3=9;//hours +E3=E2+L3*t3;//MWh +//Upto 10pm +t4=4;//hours +E4=E3+L4*t4;//MWh +//Upto 12pm +t4=2;//hours +E4=E3+L4*t4;//MWh +//Plotting Mass curve +T=[0,1,2,3,4];//MW +E=[0,E1,E2,E3,E4];//Mwh +subplot(2,1,2) +plot(T,E) +ylabel('Energy(MWh)'); +xlabel('0-1: 12-5am 1-2: 5-9am 2-3: 9-6pm 3-4: 6-10pm above4: 10-12pm'); +title('Mass Curve'); -- cgit