%Voltage
  % Bus     V     del   Rii
v_m=[1    1.06     0   0.04^2;];

%active power injection
  %  Bus      p           Rii
pi_m=[2     0.1830      0.01^2;
      3    -0.9420      0.01^2; 
      7     0.00        0.01^2;
      8     0.00        0.01^2; 
      10   -0.0900      0.01^2;
      11   -0.0350      0.01^2;
      12   -0.0610      0.01^2; 
      14   -0.1490      0.01^2;];

%Reactive power injection
%  Bus      q      Rii
qi_m=[2     0.3221      0.01^2;
      3     0.0714      0.01^2; 
      7     0.00        0.01^2;
      8     0.1896      0.01^2; 
      10   -0.0580      0.01^2;
      11   -0.0180      0.01^2;
      12   -0.0160      0.01^2; 
      14   -0.0500      0.01^2;];

%active power flow
         % From     to    pf       Rii
     pf_m=[ 1       2   1.5708    64e-6;
            2       3   0.7328    64e-6;
            4       2  -0.5427    64e-6;
            4       7   0.2707    64e-6;
            4       9   0.2793    64e-6;
            5       2  -0.4081    64e-6;
            5       4   0.6101    64e-6;
            5       6   0.4589    64e-6;
            6      13   0.1834    64e-6;
            7       9   0.2793    64e-6;
            11      6  -0.0816    64e-6;
            12      13  0.0164    64e-6;];

%reactive power flow
         % From     to    qf       Rii
     qf_m=[ 1       2  -0.2732    64e-6;
            2       3   0.0594    64e-6;
            4       2   0.0213    64e-6;
            4       7  -0.1540    64e-6;
            4       9  -0.0539    64e-6;
            5       2  -0.0193    64e-6;
            5       4  -0.1006    64e-6;
            5       6  -0.2084    64e-6;
            6      13   0.0998    64e-6;
            7       9   0.0539    64e-6;
            11      6  -0.0396    64e-6;
            12      13  0.008    64e-6;];