This program saves bus data and line data in the MATLAB workspace
1. branch admittance
2. formation of the off diagonal elements
3. formation of the diagonal elements
4. Ybus --> workspace
>> lfnewton
Power flow solution by Newton-Raphson method
--> Designed for two or more parallel lines
1. Parameters
+ Power accuracy: accuracy = 0.001 p.u.
+ Max iterations: maxiter = 30
2. Iterative process
+ Iteration 1: maxerror = 0.6678
+ Iteration 2: maxerror = 0.0189
+ Iteration 3: maxerror = 0.0000
>> lineflow