-
Notifications
You must be signed in to change notification settings - Fork 148
/
mme_bus3p_opf_acp.m
37 lines (33 loc) · 1.27 KB
/
mme_bus3p_opf_acp.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
classdef mme_bus3p_opf_acp < mp.mme_bus3p
% mp.mme_bus3p_opf_acp - Math model element for 3-phase bus for AC polar voltage OPF.
%
% Math model element class for 3-phase bus elements for AC polar voltage OPF
% problems.
%
% Implements method for forming an interior initial point.
% MATPOWER
% Copyright (c) 2022-2024, Power Systems Engineering Research Center (PSERC)
% by Ray Zimmerman, PSERC Cornell
%
% This file is part of MATPOWER.
% Covered by the 3-clause BSD License (see LICENSE file for details).
% See https://matpower.org for more info.
% properties
% end %% properties
methods
function x0 = interior_x0(obj, mm, nm, dm, x0)
%
vv = mm.get_idx();
vm = 1; %% voltage magnitude set to 1 p.u.
%% voltage angles set to angle of 1st ref node
%% + phase offset, i.e. +/-120 deg
varef1 = mm.interior_va(nm, dm);
x0(vv.i1.Va3(1):vv.iN.Va3(1)) = varef1;
x0(vv.i1.Va3(2):vv.iN.Va3(2)) = varef1-2*pi/3;
x0(vv.i1.Va3(3):vv.iN.Va3(3)) = varef1+2*pi/3;
x0(vv.i1.Vm3(1):vv.iN.Vm3(1)) = vm;
x0(vv.i1.Vm3(2):vv.iN.Vm3(2)) = vm;
x0(vv.i1.Vm3(3):vv.iN.Vm3(3)) = vm;
end
end %% methods
end %% classdef