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

have_feature_linprog_ds

PURPOSE ^

HAVE_FEATURE_LINPROG_DS Detect availblty/ver info for LINPROG w/dual simplex

SYNOPSIS ^

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

DESCRIPTION ^

HAVE_FEATURE_LINPROG_DS  Detect availblty/ver info for LINPROG w/dual simplex

   Feature detection function implementing 'linprog_ds' tag for HAVE_FEATURE
   to detect availability/version of LINPROG with support for the dual
   simplex method, from the MATLAB Optimization Toolbox 7.1 (R2014b) and
   later.

   See also HAVE_FEATURE, HAVE_FEATURE_LINPROG, QPS_MASTER, LINPROG.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [TorF, vstr, rdate] = have_feature_linprog_ds()
0002 %HAVE_FEATURE_LINPROG_DS  Detect availblty/ver info for LINPROG w/dual simplex
0003 %
0004 %   Feature detection function implementing 'linprog_ds' tag for HAVE_FEATURE
0005 %   to detect availability/version of LINPROG with support for the dual
0006 %   simplex method, from the MATLAB Optimization Toolbox 7.1 (R2014b) and
0007 %   later.
0008 %
0009 %   See also HAVE_FEATURE, HAVE_FEATURE_LINPROG, QPS_MASTER, LINPROG.
0010 
0011 %   MP-Opt-Model
0012 %   Copyright (c) 2004-2020, Power Systems Engineering Research Center (PSERC)
0013 %   by Ray Zimmerman, PSERC Cornell
0014 %
0015 %   This file is part of MP-Opt-Model.
0016 %   Covered by the 3-clause BSD License (see LICENSE file for details).
0017 %   See https://github.com/MATPOWER/mp-opt-model for more info.
0018 
0019 TorF = 0;
0020 vstr = '';
0021 rdate = '';
0022 if have_feature('matlab')
0023     v = have_feature('linprog', 'all');
0024     if v.av && v.vnum >= 7.001      %% Opt Tbx 7.1+ (R2014b+, MATLAB 8.4+)
0025         TorF = 1;
0026         vstr = v.vstr;
0027         rdate = v.date;
0028     end
0029 end

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