-
Notifications
You must be signed in to change notification settings - Fork 148
/
math_model_pf_acci.m
41 lines (33 loc) · 1.2 KB
/
math_model_pf_acci.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
38
39
40
41
classdef math_model_pf_acci < mp.math_model_pf_ac & mp.mm_shared_pfcpf_acci
% mp.math_model_pf_acci - Power flow (PF) **math model** for AC-cartesian-current formulation.
%
% Implements formulation-specific node balance constraints and inherits
% from formulation-specific class for shared PF/CPF code.
% MATPOWER
% Copyright (c) 2021-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
methods
function tag = form_tag(obj)
%
tag = 'acci';
end
function name = form_name(obj)
%
name = 'AC-cartesian-current';
end
function obj = add_node_balance_constraints(obj, nm, dm, mpopt)
%
%% power balance constraints
ad = obj.aux_data;
npvq = ad.npv+ad.npq;
fcn = @(x)node_balance_equations(obj, x, nm);
obj.add_nln_constraint({'Irmis', 'Iimis', 'Vmis'}, [npvq;npvq;ad.npv], 1, fcn, []);
end
end %% methods
end %% classdef