HAVE_FEATURE_INTLINPROG Detect availability/version info for INTLINPROG Feature detection function implementing 'intlinprog' tag for HAVE_FEATURE to detect availability/version of INTLINPROG, MILP solver from MATLAB Optimization Toolbox 7.0 (R2014a) and later. See also HAVE_FEATURE, MIQPS_MASTER, INTLINPROG.
0001 function [TorF, vstr, rdate] = have_feature_intlinprog() 0002 %HAVE_FEATURE_INTLINPROG Detect availability/version info for INTLINPROG 0003 % 0004 % Feature detection function implementing 'intlinprog' tag for HAVE_FEATURE 0005 % to detect availability/version of INTLINPROG, MILP solver from MATLAB 0006 % Optimization Toolbox 7.0 (R2014a) and later. 0007 % 0008 % See also HAVE_FEATURE, MIQPS_MASTER, INTLINPROG. 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 TorF = 0; 0019 vstr = ''; 0020 rdate = ''; 0021 v = have_feature('optim', 'all'); 0022 if v.av && have_feature('matlab') %% ignore Octave version 0023 TorF = exist('intlinprog', 'file') == 2; 0024 if TorF 0025 vstr = v.vstr; 0026 rdate = v.date; 0027 end 0028 end