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

have_feature_knitro

PURPOSE ^

HAVE_FEATURE_KNITRO Detect availability/version info for Artelys Knitro

SYNOPSIS ^

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

DESCRIPTION ^

HAVE_FEATURE_KNITRO  Detect availability/version info for Artelys Knitro

   Feature detection function implementing 'knitro' tag for HAVE_FEATURE
   to detect availability/version of Artelys Knitro, a nonlinear
   programming solver (https://www.artelys.com/solvers/knitro/).

   See also HAVE_FEATURE, NLPS_MASTER, KNITROMATLAB.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [TorF, vstr, rdate] = have_feature_knitro()
0002 %HAVE_FEATURE_KNITRO  Detect availability/version info for Artelys Knitro
0003 %
0004 %   Feature detection function implementing 'knitro' tag for HAVE_FEATURE
0005 %   to detect availability/version of Artelys Knitro, a nonlinear
0006 %   programming solver (https://www.artelys.com/solvers/knitro/).
0007 %
0008 %   See also HAVE_FEATURE, NLPS_MASTER, KNITROMATLAB.
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 tmp = have_feature('knitromatlab', 'all');
0019 if tmp.av
0020     TorF = tmp.av;
0021     vstr = tmp.vstr;
0022     rdate = tmp.date;
0023 else
0024     tmp = have_feature('ktrlink', 'all');
0025     if tmp.av
0026         TorF = tmp.av;
0027         vstr = tmp.vstr;
0028         rdate = tmp.date;
0029     else
0030         TorF = 0;
0031         vstr = '';
0032         rdate = '';
0033     end
0034 end

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