Professional Documents
Culture Documents
I. IMPLEMENTATION
In this laboratory activity, the tool for making this program is
MATLAB. The process of implementing this code is that data types
codes used are alphanumeric (no special characters), integer and
floating point. The data file has lines of up to 128 characters. The
lines are grouped into sections with section headers. Data items are
entered in specific columns and then terminated with a numeric
flag -999. Bus number, load flow area number, loss zone number,
resistances, reactances are entered in specific columns. The other
column that is not discussed in lectures is considered as dummy
first. With the use of the functions of fopen(), textscan(), fclose()
on importing the input data, it can be formulated. It is expected that
there are changes to develop this program. One of it is on how to
have an input of four characters, 0001, that can be read and
understand that it is still 1.
As shown on the figures below, these are the parts of the code.
Lines 1-2 are commands. Lines 3-4 are variables to initialize a
matrix. Line 6 is for making a loop. If a person wants to continue, it
will start and make an output from the input. Any key was pressed
except from n. Lines 14-19 define the location of the data entries.
Line 27 makes a table in command window. Lines 29-31 make the
variables to initialize. Line 33-37 is for a case to show that the
transformer tap is 0 or 1. Line 40-44 is the formula for off-diagonal
elements. Line 45-58 is the formula of diagonal elements
formation. Line 59-70 is for the formation of the output.
TESTING
Input data:
Fig. 12 Columns 11 to 15
Fi
Fig. 13 Columns 16 to 20
g. 8 Bus data
Fig. 14 Columns 21 to 25
Fi
g. 9 Branch data
III. RESULTS AND DISCUSSION
Results
Fig. 15 Column 26
Discussion
1.
Fig. 10 Columns 1 to 5
2.
3.
Fig.11 Columns 6 to 10
York:
In partial fulfillment
Of the requirement in
EE 151.1
Group members
Alfeche, Nathaniel Dan M.
Barlisan, Fen Jean-nette V.
Submitted to:
Prof. Rogelio F. Bersano Jr.
22 September 2016