HAVE_FEATURE_SDP_PF Detect availability/version info for SDP_PF Feature detection function implementing 'sdp_pf' tag for HAVE_FEATURE to detect availability/version of SDP_PF, a MATPOWER extension for applications of semi-definite programming relaxations of power flow equations (https://github.com/MATPOWER/mx-sdp_pf/). See also HAVE_FEATURE.
0001 function [TorF, vstr, rdate] = have_feature_sdp_pf() 0002 %HAVE_FEATURE_SDP_PF Detect availability/version info for SDP_PF 0003 % 0004 % Feature detection function implementing 'sdp_pf' tag for HAVE_FEATURE 0005 % to detect availability/version of SDP_PF, a MATPOWER extension for 0006 % applications of semi-definite programming relaxations of power flow 0007 % equations (https://github.com/MATPOWER/mx-sdp_pf/). 0008 % 0009 % See also HAVE_FEATURE. 0010 0011 % MATPOWER 0012 % Copyright (c) 2004-2020, Power Systems Engineering Research Center (PSERC) 0013 % by Ray Zimmerman, PSERC Cornell 0014 % 0015 % This file is part of MATPOWER. 0016 % Covered by the 3-clause BSD License (see LICENSE file for details). 0017 % See https://matpower.org for more info. 0018 0019 TorF = have_feature('yalmip') && exist('mpoption_info_sdp_pf', 'file') == 2; 0020 if TorF 0021 v = sdp_pf_ver('all'); 0022 vstr = v.Version; 0023 rdate = v.Date; 0024 else 0025 vstr = ''; 0026 rdate = ''; 0027 end