sir
when using the scaleload function,when run the opf its showing the error
attached below.what is the problem,how can i rectify it.
 mpc=loadcase('case14o');
>> for t=1:2
mpc(t)=mpc;
mpc(t).bus = scale_load(0.5, mpc(t).bus);
results(t) = runopf(mpc(t));
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.09 seconds
Objective Function Value = 3306.85 $/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)    132.9               5.2
Loads             11     Load                   129.5              36.8
  Fixed           11       Fixed                129.5              36.8
  Dispatchable     0       Dispatchable          -0.0 of -0.0      -0.0
Shunts             1     Shunt (inj)             -0.0              21.3
Branches          20     Losses (I^2 * Z)         3.35             14.07
Transformers       3     Branch Charging (inj)     -               24.3
Inter-ties         0     Total Inter-tie Flow     0.0               0.0
Areas              1

                          Minimum                      Maximum
                 -------------------------  --------------------------------
Voltage Magnitude   1.018 p.u. @ bus 3          1.060 p.u. @ bus 9   
Voltage Angle      -9.03 deg   @ bus 14         0.00 deg   @ bus 1   
P Losses (I^2*R)             -                  0.99 MW    @ line 1-2
Q Losses (I^2*X)             -                  3.03 MVAr  @ line 1-2
Lambda P           29.65 $/MWh @ bus 1         32.32 $/MWh @ bus 14  
Lambda Q           -0.30 $/MWh @ bus 9          0.49 $/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.052    0.000*   112.11      2.44       -         -      29.648     -
    2  1.038   -2.321     20.79      5.54     10.85      6.35    30.393     -
    3  1.018   -6.100      0.00      7.91     47.15      9.50    31.515     -
    4  1.023   -4.914       -         -       23.90     -1.95    31.142  -0.025
    5  1.023   -4.187       -         -        3.80      0.80    30.934   0.065
    6  1.058   -7.189      0.00     -4.73      5.60      3.75    31.030  -0.001
    7  1.051   -6.293       -         -         -         -      31.085  -0.209
    8  1.041   -6.293      0.00     -6.00       -         -      31.085  -0.213
    9  1.060   -7.008       -         -       14.75      8.30    31.052  -0.300
   10  1.056   -7.185       -         -        4.50      2.90    31.124  -0.199
   11  1.055   -7.254       -         -        1.75      0.90    31.119  -0.080
   12  1.049   -7.743       -         -        3.05      0.80    31.333   0.106
   13  1.044   -7.862       -         -        6.75      2.90    31.529   0.202
   14  1.022   -9.025       -         -        7.45      2.50    32.319   0.485
                        --------  --------  --------  --------
               Total:    132.90      5.15    129.55     36.75

================================================================================
|     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     75.34     -1.19    -74.35     -1.55     0.994      3.03
   2      1      5     36.77      3.62    -36.09     -6.12     0.679      2.80
   3      2      3     35.95      0.81    -35.38     -3.05     0.568      2.39
   4      2      4     27.51     -1.03    -27.10     -1.34     0.408      1.24
   5      2      5     20.82      0.96    -20.59     -3.92     0.233      0.71
   6      3      4    -11.77      1.46     11.86     -2.56     0.092      0.24
   7      4      5    -28.64      9.00     28.76     -8.64     0.115      0.36
   8      4      7     12.64     -2.40    -12.64      2.72     0.000      0.32
   9      4      9      7.35     -0.75     -7.35      1.02    -0.000      0.27
  10      5      6     24.12     17.87    -24.12    -15.99     0.000      1.89
  11      6     11      1.02      0.82     -1.02     -0.81     0.001      0.00
  12      6     12      4.90      1.48     -4.87     -1.42     0.029      0.06
  13      6     13     12.60      5.21    -12.49     -5.00     0.110      0.22
  14      7      8     -0.00      6.06      0.00     -6.00     0.000      0.06
  15      7      9     12.64     -8.77    -12.64      9.01    -0.000      0.24
  16      9     10      5.24      3.02     -5.23     -2.99     0.010      0.03
  17      9     14      0.00      0.00      0.00      0.00     0.000      0.00
  18     10     11      0.73      0.09     -0.73     -0.09     0.000      0.00
  19     12     13      1.82      0.62     -1.81     -0.61     0.007      0.01
  20     13     14      7.55      2.71     -7.45     -2.50     0.101      0.21
                                                             --------  --------
                                                    Total:     3.349     14.07

================================================================================
|     Voltage Constraints                                                      |
================================================================================
Bus #  Vmin mu    Vmin    |V|   Vmax    Vmax mu
-----  --------   -----  -----  -----   --------
    9      -      0.940  1.060  1.060   178.709

================================================================================
|     Generation Constraints                                                   |
================================================================================
 Gen   Bus                  Active Power Limits
  #     #     Pmin mu     Pmin       Pg       Pmax    Pmax mu
----  -----   -------   --------  --------  --------  -------
   3     3      8.485      0.00      0.00    100.00      -   
   4     6      8.970      0.00      0.00    100.00      -   
   5     8      8.915      0.00      0.00    100.00      -   

 Gen   Bus                 Reactive Power Limits
  #     #     Qmin mu     Qmin       Qg       Qmax    Qmax mu
----  -----   -------   --------  --------  --------  -------
   5     8      0.213     -6.00     -6.00     24.00      -   
Subscripted assignment between dissimilar structures.
 

Reply via email to