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

have_feature_fmincon_ipm

PURPOSE ^

HAVE_FEATURE_FMINCON_IPM Detect availability/ver info for FMINCON w/Int Pt Mtd

SYNOPSIS ^

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

DESCRIPTION ^

HAVE_FEATURE_FMINCON_IPM  Detect availability/ver info for FMINCON w/Int Pt Mtd

   Feature detection function implementing 'fmincon_ipm' tag for HAVE_FEATURE
   to detect availability/version of FMINCON with Interior Point solver, from
   the MATLAB Optimization Toolbox 4.x and later.

   See also HAVE_FEATURE, NLPS_MASTER, FMINCON.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [TorF, vstr, rdate] = have_feature_fmincon_ipm()
0002 %HAVE_FEATURE_FMINCON_IPM  Detect availability/ver info for FMINCON w/Int Pt Mtd
0003 %
0004 %   Feature detection function implementing 'fmincon_ipm' tag for HAVE_FEATURE
0005 %   to detect availability/version of FMINCON with Interior Point solver, from
0006 %   the MATLAB Optimization Toolbox 4.x and later.
0007 %
0008 %   See also HAVE_FEATURE, NLPS_MASTER, FMINCON.
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 if have_feature('matlab')
0022     v = have_feature('fmincon', 'all');
0023     if v.av && v.vnum >= 4          %% Opt Tbx 4.0+ (R2008a+, MATLAB 7.6+)
0024         TorF = 1;
0025         vstr = v.vstr;
0026         rdate = v.date;
0027     end
0028 end

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