Assignment - 3 Psoc-Solution
Assignment - 3 Psoc-Solution
What are the limitations of the Economic Dispatch (ED)? How does the Optimal Power Flow (OPF)
cater to the Economic Dispatch's limitations? [5 Points]
What are the approaches to considering the transmission losses in the optimal power flow?
Differentiate them from each other. [5 Points]
Loss-Formula Method
A mathematical expression for the losses in the network solely as a function of the power output of
each of the units.
Difference
The loss-Formula method considers losses as the function of the output power of the generators,
whereas the optimal power flow method imposes constraints on the transmission lines by
incorporating the power flow equations and provides a solution to the optimization problem.
Q3
Lagrangian Method
# %% Question 3
a = np.matrix([[0.008,0,0,0,0,0,-1,0,0,0,0,0],
[0,0.005,0,0,0,0,0,0,-1,0,0,0],
[0,0,0,0,0,0,1750,-1000,-500,-250,0,1000],
[0,0,0,0,0,0,-1000,1500,0,-500,0,-1000],
[0,0,0,0,0,0,-500,0,1500,-1000,1,0],
[0,0,0,0,0,0,-250,-500,-1000,1750,0,0],
[-1,0,1750,-1000,-500,-250,0,0,0,0,0,0],
[0,0,-1000,1500,0,-500,0,0,0,0,0,0],
[0,-1,-500,0,1500,-1000,0,0,0,0,0,0],
[0,0,-250,-500,-1000,1750,0,0,0,0,0,0],
[0,0,0,0,1,0,0,0,0,0,0,0],
[0,0,1000,-1000,0,0,0,0,0,0,0,0]])
at = np.matmul(a.T,a)
invrse_a = np.linalg.inv(at)*a.T
#invrse_a = np.linalg.inv(a)
print(invrse_a)
# %%
b = np.matrix([[-7.2],
[-6],
[0],
[0],
[0],
[0],
[-50],
[-200],
[0],
[-200],
[0],
[160]])
# %%
x = np.matmul(invrse_a, b)
print(x)
answer
[[ 1.59999999e+02]
[ 2.90000000e+02]
[-1.40000000e-01]
[-3.00000000e-01]
[ 1.25814914e-10]
[-2.20000000e-01]
[ 8.48000002e+00]
[ 5.13249987e+00]
[ 7.44999998e+00]
[ 6.93499995e+00]
[-6.78144025e-11]
[-4.24875020e+00]]
Q4-part a
Q4-part b