Home > matpower7.1 > mp-opt-model > lib > have_feature_sdpt3.m

have_feature_sdpt3

PURPOSE ^

HAVE_FEATURE_SDPT3 Detect availability/version info for SDPT3

SYNOPSIS ^

function [TorF, vstr, rdate] = have_feature_sdpt3()

DESCRIPTION ^

HAVE_FEATURE_SDPT3  Detect availability/version info for SDPT3

   Feature detection function implementing 'sdpt3' tag for HAVE_FEATURE
   to detect availability/version of SDPT3 SDP solver
   (https://github.com/sqlp/sdpt3)

   See also HAVE_FEATURE, SDPT3.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [TorF, vstr, rdate] = have_feature_sdpt3()
0002 %HAVE_FEATURE_SDPT3  Detect availability/version info for SDPT3
0003 %
0004 %   Feature detection function implementing 'sdpt3' tag for HAVE_FEATURE
0005 %   to detect availability/version of SDPT3 SDP solver
0006 %   (https://github.com/sqlp/sdpt3)
0007 %
0008 %   See also HAVE_FEATURE, SDPT3.
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 = exist('sdpt3','file') == 2;
0019 vstr = '';
0020 rdate = '';
0021 if TorF && have_feature('evalc')
0022     str = evalc('help sdpt3');
0023     pat = 'version\s+([^\s]+).*Last Modified: ([^\n]+)\n';
0024     [s,e,tE,m,t] = regexp(str, pat);
0025     if ~isempty(t)
0026         vstr = t{1}{1};
0027         rdate = datestr(t{1}{2}, 'dd-mmm-yyyy');
0028     end
0029 end

Generated on Fri 09-Oct-2020 11:21:31 by m2html © 2005