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

%active power injection
     %  Bus           p       Rii
  pi_m=[12         -0.075   0.01^2;% 
        31	   5.702-0.09   0.01^2; 
        30			2.483   0.01^2;
        32			6.489   0.01^2;
        33			6.302   0.01^2;
        34			5.046   0.01^2;
        35			6.497   0.01^2;
        36			5.589   0.01^2;
        37			5.397   0.01^2;
        38			8.292   0.01^2;];

%Reactive power injection
     %  Bus               q      Rii
  qi_m=[12             -0.880   0.01^2;% 
        31			3.645-0.046  0.01^2;
        30				0.808   0.01^2;
        32				0.020   0.01^2;
        33				0.767   0.01^2;
        34				1.522   0.01^2;
        35				1.642   0.01^2;
        36				0.793   0.01^2;
        37			   -0.312   0.01^2;
        38			    0.060   0.01^2;];

%active power flow
         % From to           pf       Rii
      pf_m=[2	39			1.177   64e-6;
            1	25			2.349   64e-6;
            3	4			0.766   64e-6;  
            3	18		   -0.351   64e-6;  
            4	5		   -1.625   64e-6;
            4	14		   -2.612   64e-6;
            5	8			3.192   64e-6;
            6	7			4.257   64e-6;
            6	11			3.487   64e-6;
            7	8			1.919   64e-6;
            8	9			-0.119   64e-6;
            9	39			-0.119   64e-6;
            10	11			3.501   64e-6;
            10	13			2.985   64e-6;
            14	15			0.292   64e-6;
            15	16			-2.91   64e-6;
            16	19			-4.517   64e-6;
            16	21		   -3.295   64e-6;
            19  20          1.755   64e-6; 
            17	18			1.933   64e-6;
            17	27			0.094   64e-6;
            21	22			-6.043   64e-6;
            22	23			0.427   64e-6;
            23	24			3.541   64e-6;
            25	26			0.765   64e-6;
            26	27			2.726   64e-6;
            26	28		   -1.430   64e-6;
            28	29			-3.491   64e-6;];          

%reactive power flow
        % From  to               qf       Rii
     qf_m=[2	39				0.483   64e-6;
           1	25				1.057  64e-6; 
            3	4				-0.267  64e-6;
            3	18				0.217  64e-6;
            4	5			   -1.015  64e-6;
            4	14				0.378  64e-6;
            5	8				1.228   64e-6;
            6	7				1.225   64e-6;
            6	11				1.642  64e-6;
            7	8				0.386   64e-6;
            8	9				0.35   64e-6;
            9	39			    0.35   64e-6;
            10	11				-1.133   64e-6;
            10	13				0.31   64e-6;
            14	15				0.475  64e-6;
            15	16				-0.661   64e-6;
            16	19				-0.09   64e-6;
            16	21				0.529  64e-6;
            17	18				-0.152   64e-6;
            17	27				-0.134  64e-6;
            19  20              0.018   64e-6;
            21	22			   -0.481   64e-6;
            22	23				0.5743   64e-6;
            23	24				-0.270   64e-6;
            25	26				-0.279  64e-6;
            26	27				0.452   64e-6;
            26	28				0.648  64e-6;
            28	29				0.372  64e-6;];
        
