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

have_feature_fsolve

PURPOSE ^

HAVE_FEATURE_FSOLVE Detect availability/version info for FSOLVE

SYNOPSIS ^

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

DESCRIPTION ^

HAVE_FEATURE_FSOLVE  Detect availability/version info for FSOLVE

   Feature detection function implementing 'fsolve' tag for HAVE_FEATURE
   to detect availability/version of FSOLVE, from the MATLAB Optimization
   Toolbox or GNU Octave.

   See also HAVE_FEATURE, NLEQS_MASTER, FSOLVE.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [TorF, vstr, rdate] = have_feature_fsolve()
0002 %HAVE_FEATURE_FSOLVE  Detect availability/version info for FSOLVE
0003 %
0004 %   Feature detection function implementing 'fsolve' tag for HAVE_FEATURE
0005 %   to detect availability/version of FSOLVE, from the MATLAB Optimization
0006 %   Toolbox or GNU Octave.
0007 %
0008 %   See also HAVE_FEATURE, NLEQS_MASTER, FSOLVE.
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('fsolve', 'file') == 2;
0019 if TorF
0020     if have_feature('matlab')
0021         v = have_feature('optim', 'all');
0022         vstr = v.vstr;
0023         rdate = v.date;
0024     else
0025         v = have_feature('octave', 'all');
0026         vstr = v.vstr;
0027         rdate = v.date;
0028     end
0029 else
0030     vstr = '';
0031     rdate = '';
0032 end

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