Home > matpower7.0 > lib > mosek_symbcon.m

mosek_symbcon

PURPOSE ^

MOSEK_SYMBCON Returns struct containing MOSEK's symbolic constants

SYNOPSIS ^

function sc = mosek_symbcon

DESCRIPTION ^

MOSEK_SYMBCON  Returns struct containing MOSEK's symbolic constants
   SC = MOSEK_SYMBCON

   Returns a stuct containing all of MOSEk's symbolic constants, such
   as those used to select the optimizer algorithm. Since the values
   of these constants are not necessarily the same from one version of
   MOSEK to the next, it is safer to use the symbolic constant rather
   than the value in your MATPOWER code. For example, the following code

       mpopt = mpoption('opf.dc.solver', 'MOSEK', 'mosek_lp_alg', 4);

   would select primal simplex solver in MOSEK v6.x, but dual-simplex in
   MOSEK v7.x. The recommended way to select a dual-simplex solver that
   should work regardless of MOSEK version is to use the following:

       sc = mosek_symbcon;
       mpopt = mpoption('opf.dc.solver', 'MOSEK', ...
                           'mosek_lp_alg', sc.MSK_OPTIMIZER_DUAL_SIMPLEX);

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function sc = mosek_symbcon
0002 %MOSEK_SYMBCON  Returns struct containing MOSEK's symbolic constants
0003 %   SC = MOSEK_SYMBCON
0004 %
0005 %   Returns a stuct containing all of MOSEk's symbolic constants, such
0006 %   as those used to select the optimizer algorithm. Since the values
0007 %   of these constants are not necessarily the same from one version of
0008 %   MOSEK to the next, it is safer to use the symbolic constant rather
0009 %   than the value in your MATPOWER code. For example, the following code
0010 %
0011 %       mpopt = mpoption('opf.dc.solver', 'MOSEK', 'mosek_lp_alg', 4);
0012 %
0013 %   would select primal simplex solver in MOSEK v6.x, but dual-simplex in
0014 %   MOSEK v7.x. The recommended way to select a dual-simplex solver that
0015 %   should work regardless of MOSEK version is to use the following:
0016 %
0017 %       sc = mosek_symbcon;
0018 %       mpopt = mpoption('opf.dc.solver', 'MOSEK', ...
0019 %                           'mosek_lp_alg', sc.MSK_OPTIMIZER_DUAL_SIMPLEX);
0020 
0021 %   MATPOWER
0022 %   Copyright (c) 2015-2016, Power Systems Engineering Research Center (PSERC)
0023 %   by Ray Zimmerman, PSERC Cornell
0024 %
0025 %   This file is part of MATPOWER.
0026 %   Covered by the 3-clause BSD License (see LICENSE file for details).
0027 %   See https://matpower.org for more info.
0028 
0029 [r, res] = mosekopt('symbcon echo(0)');
0030 sc = res.symbcon;

Generated on Mon 24-Jun-2019 15:58:45 by m2html © 2005