HAVE_FEATURE_MINOPF Detect availability/version info for MINOPF Feature detection function implementing 'minopf' tag for HAVE_FEATURE to detect availability/version of MINOPF, a MINOS-based optimal power flow (OPF) solver. See also HAVE_FEATURE, MINOPF.
0001 function [TorF, vstr, rdate] = have_feature_minopf() 0002 %HAVE_FEATURE_MINOPF Detect availability/version info for MINOPF 0003 % 0004 % Feature detection function implementing 'minopf' tag for HAVE_FEATURE 0005 % to detect availability/version of MINOPF, a MINOS-based optimal power 0006 % flow (OPF) solver. 0007 % 0008 % See also HAVE_FEATURE, MINOPF. 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('minopf', 'file') == 3; 0019 if TorF 0020 v = minopfver('all'); 0021 vstr = v.Version; 0022 rdate = v.Date; 0023 else 0024 vstr = ''; 0025 rdate = ''; 0026 end