HAVE_FEATURE_CLP Detect availability/version info for CLP Feature detection function implementing 'clp' tag for HAVE_FEATURE to detect availability/version of CLP (COIN-OR Linear Programming solver, (https://github.com/coin-or/Clp). See also HAVE_FEATURE, QPS_MASTER, CLP.
0001 function [TorF, vstr, rdate] = have_feature_clp() 0002 %HAVE_FEATURE_CLP Detect availability/version info for CLP 0003 % 0004 % Feature detection function implementing 'clp' tag for HAVE_FEATURE 0005 % to detect availability/version of CLP (COIN-OR Linear Programming solver, 0006 % (https://github.com/coin-or/Clp). 0007 % 0008 % See also HAVE_FEATURE, QPS_MASTER, CLP. 0009 0010 % MP-Opt-Model 0011 % Copyright (c) 2004-2020, Power Systems Engineering Research Center (PSERC) 0012 % by Ray Zimmerman, PSERC Cornell 0013 % 0014 % This file is part of MP-Opt-Model. 0015 % Covered by the 3-clause BSD License (see LICENSE file for details). 0016 % See https://github.com/MATPOWER/mp-opt-model for more info. 0017 0018 tmp = have_feature('opti_clp', 'all'); 0019 vstr = ''; 0020 rdate = ''; 0021 if tmp.av %% have opti_clp 0022 TorF = tmp.av; 0023 vstr = tmp.vstr; 0024 rdate = tmp.date; 0025 elseif exist('clp','file') == 2 && exist('mexclp','file') == 3 0026 TorF = 1; 0027 else 0028 TorF = 0; 0029 end