HAVE_FEATURE_SYNGRID Detect availability/version info for SynGrid Feature detection function implementing 'syngrid' tag for HAVE_FEATURE to detect availability/version of SynGrid, Synthetic Grid Creation for MATPOWER (https://github.com/MATPOWER/mx-syngrid). See also HAVE_FEATURE, SYNGRID.
0001 function [TorF, vstr, rdate] = have_feature_syngrid() 0002 %HAVE_FEATURE_SYNGRID Detect availability/version info for SynGrid 0003 % 0004 % Feature detection function implementing 'syngrid' tag for HAVE_FEATURE 0005 % to detect availability/version of SynGrid, Synthetic Grid Creation for 0006 % MATPOWER (https://github.com/MATPOWER/mx-syngrid). 0007 % 0008 % See also HAVE_FEATURE, SYNGRID. 0009 0010 % MATPOWER 0011 % Copyright (c) 2004-2020, Power Systems Engineering Research Center (PSERC) 0012 % by Ray Zimmerman, PSERC Cornell 0013 % 0014 % This file is part of MATPOWER. 0015 % Covered by the 3-clause BSD License (see LICENSE file for details). 0016 % See https://matpower.org for more info. 0017 0018 TorF = exist('syngrid', 'file') == 2; 0019 if TorF 0020 v = sgver('all'); 0021 vstr = v.Version; 0022 rdate = v.Date; 0023 else 0024 vstr = ''; 0025 rdate = ''; 0026 end