-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsdp_pf_ver.m
31 lines (29 loc) · 1.05 KB
/
sdp_pf_ver.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
function rv = sdp_pf_ver(varargin)
%SPD_PF_VER Prints or returns SDP_PF version info for current installation.
% V = SDP_PF_VER returns the current SDP_PF version number.
% V = SDP_PF_VER('all') returns a struct with the fields Name, Version,
% Release and Date (all strings). Calling SDP_PF_VER without assigning the
% return value prints the version and release date of the current
% installation of SDP_PF.
%
% See also MPVER.
% MATPOWER
% Copyright (c) 2014-2020, Power Systems Engineering Research Center (PSERC)
% by Ray Zimmerman, PSERC Cornell
%
% This file is part of MATPOWER/mx-sdp_pf.
% Covered by the 3-clause BSD License (see LICENSE file for details).
% See https://github.com/MATPOWER/mx-sdp_pf/ for more info.
v = struct( 'Name', 'SDP_PF', ...
'Version', '1.0.2', ...
'Release', '', ...
'Date', '08-Oct-2020' );
if nargout > 0
if nargin > 0
rv = v;
else
rv = v.Version;
end
else
fprintf('%-22s Version %-9s %11s\n', v.Name, v.Version, v.Date);
end