In this section we list some algorithm control parameters that can be modified without editing the source code. These control parameters are accessible via the dictionary solvers.options. By default the dictionary is empty and the default values of the parameters are used.
One can change the parameters in the default solvers by adding entries with the following key values.
For example the command
>>> from cvxopt import solvers
>>> solvers.options[’show_progress’] = False |
turns off the screen output during calls to the solvers.
The tolerances abstol, reltol and feastol have the following meaning. conelp() terminates with status ’optimal’ if
and
It returns with status ’primal infeasible’ if
It returns with status ’dual infeasible’ if
The functions lp(), socp() and sdp() call conelp() and hence use the same stopping criteria.
The function coneqp() terminates with status ’optimal’ if
and
where
The function qp() calls coneqp() and hence uses the same stopping criteria.
The control parameters listed in the GLPK documentation are set to their default values and can be customized by making an entry in solvers.options. The keys in the dictionary are strings with the name of the GLPK parameter. For example, the command
>>> from cvxopt import solvers
>>> solvers.options[’LPX_K_MSGLEV’] = 0 |
turns off the screen output subsequent calls lp() with the ’glpk’ option.
The MOSEK interior-point algorithm parameters are set to their default values. They can be modified by adding an entry solvers.options[’MOSEK’]. This entry is a dictionary with MOSEK parameter/value pairs, with the parameter names imported from pymosek. For details see Section 14.1.3 of the MOSEK Python API Manual.
For example the commands
>>> from cvxopt import solvers
>>> import pymosek >>> solvers.options[’MOSEK’] = {pymosek.iparam.log: 0} |
turn off the screen output during calls of lp() or socp() with the ’mosek’ option.
The following control parameters in solvers.options affect the execution of the DSDP algorithm: