MATLAB Work - Electrical
MATLAB Work - Electrical
The report itself, should have some general description about the
assignment - for example - what difference did you find in NR and FD
(more iterations but faster, smaller matrix to be inverted etc). Does not
need to be very long. In addition to that please include brief descriptions
of MATLAB functions you have used in the code (the functions you wrote
in MATLAB, not the inbuilt ones). Please do not paste the code itself in the
report, as it has already been submitted in MATLAB files. Include results
like voltage magnitudes, voltage angles, number of iterations, which bus
hits the Q limit (whether upper or lower) number of non-zero elements in
sparse matrix, etc. Include a brief account of any coding problems you
encountered - like code diverging due to wrong loop indices (i, j, k etc)..
It is important that you include a description of the code and write which
part of the code does what.
Assignments
Requirements are:
Assignment #2 for IEEE 14 BUS, Power Flow Solution using the Newton-
Raphson algorithm with Q limitation, Implement Q-Limits, Transformer Taps.
a). For the PV buses, check whether the Qi is within the Q limits of the
generator. If not, set Qi equal to the violated limit, change the PV bus to a
PQ bus and continue iterating the solution.
b). Add the transformers with off-nominal turns ratios (not 1:1) to your YBus
matrix.
Requirements are:
Hint:
Assignment #3 for IEEE 14 BUS, write new MATLAB code to handle
sparse matrices (Sparse Power Flow):
Hint:
Continuation power flow method is used as theoretical base for carrying out
voltage stability performance analysis. It is used to obtain P-V Curve of
power system. In P-V Curve Continuation power flow starting with initial
operating point and increasing load to the maximum loading point. The
common principle behind the continuation power flow is simple and easy. It
employs a predictor-corrector scheme to find a solution path. It adopts
locally parameterized continuation technique. It includes state variable load
parameter, and step length for load parameter. The continuation power flow
involves a reformulation of the AC power-flow equations to include a power
scaling factor λ.
Assignment #5 : for IEEE 14 BUS, Write a Matlab program (code) to
solve the State Estimator.
1. Use the solved power flow of the IEEE 14-bus system to calculate the
following measurements:
a. Voltage magnitude at each bus
b. P and Q injections at each bus
c. P and Q flow at both ends of each branch
2. Add some noise to each measurement using a random number
generator
3. Write the state estimator solution program
4. Using the above measurements, solve the state estimator
5. Write the program to detect bad data
6. Replace one of the measurements with a bad data (add noise that is
more than 3 times sigma)
7. Check if your bad data detector successfully detects and identifies the
bad data
8. Display all the result and show the voltages and angles of each buses,
P and Q
1. For the IEEE 14-bus system assume that the cost functions of the
generators at buses 1 and 2 are given by