sir
as i sent previous mail.i tried the as below for a 0.5*41,where i take 41
as the peakload,by considering period of 8hrs,and the load change at 3rd
bus,i got it but some error came and i want to include for 0.8 and
1*peakload for 4hrs and 10 hrs respectively.
mpc = loadcase('case14o');
>> define_constants;
>> for factor=0.5
mpc.bus(3,PD) = factor*41.0;
mpc.bus(3,QD) = factor*41.0;
for t=1:8
mpc(t)=mpc;
results(t) = runopf(mpc(t));
end
end
MATPOWER Version 5.1, 20-Mar-2015 -- AC Optimal Power Flow
MATLAB Interior Point Solver -- MIPS, Version 1.2, 20-Mar-2015
(using built-in linear solver)
Converged!
Converged in 0.08 seconds
Objective Function Value = 5205.49 $/hr
================================================================================
| System Summary
|
================================================================================
How many? How much? P (MW) Q (MVAr)
--------------------- ------------------- -------------
-----------------
Buses 14 Total Gen Capacity 772.4 -52.0 to 148.0
Generators 5 On-line Capacity 772.4 -52.0 to 148.0
Committed Gens 5 Generation (actual) 192.3 60.5
Loads 11 Load 185.3 75.0
Fixed 11 Fixed 185.3 75.0
Dispatchable 0 Dispatchable -0.0 of -0.0 -0.0
Shunts 1 Shunt (inj) -0.0 21.0
Branches 20 Losses (I^2 * Z) 7.02 31.08
Transformers 3 Branch Charging (inj) - 24.5
Inter-ties 0 Total Inter-tie Flow 0.0 0.0
Areas 1
Minimum Maximum
------------------------- --------------------------------
Voltage Magnitude 0.986 p.u. @ bus 14 1.060 p.u. @ bus 1
Voltage Angle -16.33 deg @ bus 14 0.00 deg @ bus 1
P Losses (I^2*R) - 1.90 MW @ line 1-2
Q Losses (I^2*X) - 6.60 MVAr @ line 1-5
Lambda P 33.95 $/MWh @ bus 1 39.88 $/MWh @ bus 14
Lambda Q -0.04 $/MWh @ bus 1 1.36 $/MWh @ bus 14
================================================================================
| Bus Data
|
================================================================================
Bus Voltage Generation Load
Lambda($/MVA-hr)
# Mag(pu) Ang(deg) P (MW) Q (MVAr) P (MW) Q (MVAr) P
Q
----- ------- -------- -------- -------- -------- -------- -------
-------
1 1.060 0.000* 162.05 0.00 - - 33.946
-0.039
2 1.044 -3.249 30.27 19.08 21.70 12.70 35.134
-
3 1.030 -6.530 0.00 21.17 20.50 20.50 36.163
-
4 1.019 -7.400 - - 47.80 -3.90 36.687
0.084
5 1.019 -6.509 - - 7.60 1.60 36.351
0.174
6 1.060 -12.528 0.00 15.08 11.20 7.50 36.540
-
7 1.051 -10.215 - - - - 36.600
0.064
8 1.060 -10.215 0.00 5.20 - - 36.600
-
9 1.052 -11.682 - - 29.50 16.60 36.555
0.098
10 1.046 -12.120 - - 9.00 5.80 36.742
0.211
11 1.050 -12.448 - - 3.50 1.80 36.744
0.169
12 1.041 -13.646 - - 6.10 1.60 37.278
0.286
13 1.030 -13.885 - - 13.50 5.80 37.779
0.551
14 0.986 -16.328 - - 14.90 5.00 39.885
1.359
-------- -------- -------- --------
Total: 192.32 60.54 185.30 75.00
================================================================================
| Branch Data
|
================================================================================
Brnch From To From Bus Injection To Bus Injection Loss (I^2 *
Z)
# Bus Bus P (MW) Q (MVAr) P (MW) Q (MVAr) P (MW) Q
(MVAr)
----- ----- ----- -------- -------- -------- -------- --------
--------
1 1 2 105.04 -5.89 -103.14 5.86 1.905
5.81
2 1 5 57.01 5.89 -55.41 -4.61 1.599
6.60
3 2 3 31.29 -1.59 -30.87 -1.34 0.422
1.78
4 2 4 44.27 -0.06 -43.23 -0.38 1.047
3.18
5 2 5 36.14 2.17 -35.45 -3.74 0.691
2.11
6 3 4 10.37 2.01 -10.30 -3.17 0.072
0.18
7 4 5 -34.86 10.93 35.04 -10.39 0.172
0.54
8 4 7 25.73 -4.01 -25.73 5.31 0.000
1.31
9 4 9 14.85 0.53 -14.85 0.58 0.000
1.11
10 5 6 48.23 17.14 -48.23 -11.62 0.000
5.52
11 6 11 1.48 4.74 -1.46 -4.69 0.021
0.04
12 6 12 9.95 3.19 -9.83 -2.94 0.119
0.25
13 6 13 25.60 11.28 -25.13 -10.37 0.461
0.91
14 7 8 -0.00 -5.16 0.00 5.20 -0.000
0.04
15 7 9 25.73 -0.15 -25.73 0.81 -0.000
0.66
16 9 10 11.09 3.03 -11.05 -2.93 0.038
0.10
17 9 14 0.00 0.00 0.00 0.00 0.000
0.00
18 10 11 2.05 -2.87 -2.04 2.89 0.009
0.02
19 12 13 3.73 1.34 -3.70 -1.32 0.032
0.03
20 13 14 15.33 5.88 -14.90 -5.00 0.434
0.88
--------
--------
Total: 7.022
31.08
================================================================================
| Voltage Constraints
|
================================================================================
Bus # Vmin mu Vmin |V| Vmax Vmax mu
----- -------- ----- ----- ----- --------
1 - 0.940 1.060 1.060 321.034
6 - 0.940 1.060 1.060 133.465
8 - 0.940 1.060 1.060 38.400
================================================================================
| Generation Constraints
|
================================================================================
Gen Bus Active Power Limits
# # Pmin mu Pmin Pg Pmax Pmax mu
---- ----- ------- -------- -------- -------- -------
3 3 3.837 0.00 0.00 100.00 -
4 6 3.460 0.00 0.00 100.00 -
5 8 3.400 0.00 0.00 100.00 -
Gen Bus Reactive Power Limits
# # Qmin mu Qmin Qg Qmax Qmax mu
---- ----- ------- -------- -------- -------- -------
1 1 0.039 0.00 0.00 10.00 -
MATPOWER Version 5.1, 20-Mar-2015 -- AC Optimal Power Flow
MATLAB Interior Point Solver -- MIPS, Version 1.2, 20-Mar-2015
(using built-in linear solver)
Converged!
Converged in 0.07 seconds
Objective Function Value = 5205.49 $/hr
================================================================================
| System Summary
|
================================================================================
How many? How much? P (MW) Q (MVAr)
--------------------- ------------------- -------------
-----------------
Buses 14 Total Gen Capacity 772.4 -52.0 to 148.0
Generators 5 On-line Capacity 772.4 -52.0 to 148.0
Committed Gens 5 Generation (actual) 192.3 60.5
Loads 11 Load 185.3 75.0
Fixed 11 Fixed 185.3 75.0
Dispatchable 0 Dispatchable -0.0 of -0.0 -0.0
Shunts 1 Shunt (inj) -0.0 21.0
Branches 20 Losses (I^2 * Z) 7.02 31.08
Transformers 3 Branch Charging (inj) - 24.5
Inter-ties 0 Total Inter-tie Flow 0.0 0.0
Areas 1
Minimum Maximum
------------------------- --------------------------------
Voltage Magnitude 0.986 p.u. @ bus 14 1.060 p.u. @ bus 1
Voltage Angle -16.33 deg @ bus 14 0.00 deg @ bus 1
P Losses (I^2*R) - 1.90 MW @ line 1-2
Q Losses (I^2*X) - 6.60 MVAr @ line 1-5
Lambda P 33.95 $/MWh @ bus 1 39.88 $/MWh @ bus 14
Lambda Q -0.04 $/MWh @ bus 1 1.36 $/MWh @ bus 14
================================================================================
| Bus Data
|
================================================================================
Bus Voltage Generation Load
Lambda($/MVA-hr)
# Mag(pu) Ang(deg) P (MW) Q (MVAr) P (MW) Q (MVAr) P
Q
----- ------- -------- -------- -------- -------- -------- -------
-------
1 1.060 0.000* 162.05 0.00 - - 33.946
-0.039
2 1.044 -3.249 30.27 19.08 21.70 12.70 35.134
-
3 1.030 -6.530 0.00 21.17 20.50 20.50 36.163
-
4 1.019 -7.400 - - 47.80 -3.90 36.687
0.084
5 1.019 -6.509 - - 7.60 1.60 36.351
0.174
6 1.060 -12.528 0.00 15.08 11.20 7.50 36.540
-
7 1.051 -10.215 - - - - 36.600
0.064
8 1.060 -10.215 0.00 5.20 - - 36.600
-
9 1.052 -11.682 - - 29.50 16.60 36.555
0.098
10 1.046 -12.120 - - 9.00 5.80 36.742
0.211
11 1.050 -12.448 - - 3.50 1.80 36.744
0.169
12 1.041 -13.646 - - 6.10 1.60 37.278
0.286
13 1.030 -13.885 - - 13.50 5.80 37.779
0.551
14 0.986 -16.328 - - 14.90 5.00 39.885
1.359
-------- -------- -------- --------
Total: 192.32 60.54 185.30 75.00
================================================================================
| Branch Data
|
================================================================================
Brnch From To From Bus Injection To Bus Injection Loss (I^2 *
Z)
# Bus Bus P (MW) Q (MVAr) P (MW) Q (MVAr) P (MW) Q
(MVAr)
----- ----- ----- -------- -------- -------- -------- --------
--------
1 1 2 105.04 -5.89 -103.14 5.86 1.905
5.81
2 1 5 57.01 5.89 -55.41 -4.61 1.599
6.60
3 2 3 31.29 -1.59 -30.87 -1.34 0.422
1.78
4 2 4 44.27 -0.06 -43.23 -0.38 1.047
3.18
5 2 5 36.14 2.17 -35.45 -3.74 0.691
2.11
6 3 4 10.37 2.01 -10.30 -3.17 0.072
0.18
7 4 5 -34.86 10.93 35.04 -10.39 0.172
0.54
8 4 7 25.73 -4.01 -25.73 5.31 0.000
1.31
9 4 9 14.85 0.53 -14.85 0.58 0.000
1.11
10 5 6 48.23 17.14 -48.23 -11.62 0.000
5.52
11 6 11 1.48 4.74 -1.46 -4.69 0.021
0.04
12 6 12 9.95 3.19 -9.83 -2.94 0.119
0.25
13 6 13 25.60 11.28 -25.13 -10.37 0.461
0.91
14 7 8 -0.00 -5.16 0.00 5.20 -0.000
0.04
15 7 9 25.73 -0.15 -25.73 0.81 -0.000
0.66
16 9 10 11.09 3.03 -11.05 -2.93 0.038
0.10
17 9 14 0.00 0.00 0.00 0.00 0.000
0.00
18 10 11 2.05 -2.87 -2.04 2.89 0.009
0.02
19 12 13 3.73 1.34 -3.70 -1.32 0.032
0.03
20 13 14 15.33 5.88 -14.90 -5.00 0.434
0.88
--------
--------
Total: 7.022
31.08
================================================================================
| Voltage Constraints
|
================================================================================
Bus # Vmin mu Vmin |V| Vmax Vmax mu
----- -------- ----- ----- ----- --------
1 - 0.940 1.060 1.060 321.034
6 - 0.940 1.060 1.060 133.465
8 - 0.940 1.060 1.060 38.400
================================================================================
| Generation Constraints
|
================================================================================
Gen Bus Active Power Limits
# # Pmin mu Pmin Pg Pmax Pmax mu
---- ----- ------- -------- -------- -------- -------
3 3 3.837 0.00 0.00 100.00 -
4 6 3.460 0.00 0.00 100.00 -
5 8 3.400 0.00 0.00 100.00 -
Gen Bus Reactive Power Limits
# # Qmin mu Qmin Qg Qmax Qmax mu
---- ----- ------- -------- -------- -------- -------
1 1 0.039 0.00 0.00 10.00 -
In an assignment A(:) = B, the number of elements in A and B must be the
same.
>> my main objective is i require a load curve with different loads during
different periods and for different periods the price should be different.