-
Notifications
You must be signed in to change notification settings - Fork 148
/
mme_bus_opf_ac.m
30 lines (27 loc) · 978 Bytes
/
mme_bus_opf_ac.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
classdef (Abstract) mme_bus_opf_ac < mp.mme_bus
% mp.mme_bus_opf_ac - Math model element abstract base class for bus for AC OPF.
%
% Abstract math model element class for bus elements for AC OPF problems.
%
% Implements method for forming an interior initial point for voltage
% magnitudes.
% 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 vm = interior_vm(obj, mm, nm, dm)
%
%% return vm equal to avg of clipped limits
dme = obj.data_model_element(dm);
vm_ub = min(dme.vm_ub, 1.5);
vm_lb = max(dme.vm_lb, 0.5);
vm = (vm_ub + vm_lb) / 2;
end
end %% methods
end %% classdef