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

have_feature_yalmip

PURPOSE ^

HAVE_FEATURE_YALMIP Detect availability/version info for YALMIP

SYNOPSIS ^

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

DESCRIPTION ^

HAVE_FEATURE_YALMIP  Detect availability/version info for YALMIP

   Feature detection function implementing 'yalmip' tag for HAVE_FEATURE
   to detect availability/version of YALMIP modeling platform
   (https://yalmip.github.io).

   See also HAVE_FEATURE, YALMIP.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [TorF, vstr, rdate] = have_feature_yalmip()
0002 %HAVE_FEATURE_YALMIP  Detect availability/version info for YALMIP
0003 %
0004 %   Feature detection function implementing 'yalmip' tag for HAVE_FEATURE
0005 %   to detect availability/version of YALMIP modeling platform
0006 %   (https://yalmip.github.io).
0007 %
0008 %   See also HAVE_FEATURE, YALMIP.
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('yalmip','file') == 2;
0019 vstr = '';
0020 rdate = '';
0021 if TorF
0022     vstr = yalmip('version');
0023     if length(vstr) == 8
0024         yr = str2num(vstr(1:4));
0025         mo = str2num(vstr(5:6));
0026         dy = str2num(vstr(7:8));
0027         rdate = datestr([yr mo dy 0 0 0], 'dd-mmm-yyyy');
0028     end
0029 end

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