One can change the parameters in the default solvers by adding entries with the following key values.
'show_progress'
True
or False
; turns the output to the screen on or off
(default: True
).
'maxiters'
'abstol'
1e-7
).
'reltol'
1e-7
).
'feastol'
1e-7
).
'refinement'
True
or False
. If True
,
one step of iterative refinement is applied after solving KKT equations
in conelp(), lp(), and sdp()
(default: True
).
>>> from cvxopt import solvers >>> solvers.options['show_progress'] = False
'optimal'
, if
'primal infeasible'
if
'dual infeasible'
if
nlcp() returns with status 'optimal'
if
F()
, and
The control parameters listed in the GLPK documentation are set to their default values and can also be customized by making an entry in solvers.options. The keys in the dictionary are strings with the name of the GLPK parameter. The command
>>> from cvxopt import solvers >>> solvers.options['LPX_K_MSGLEV'] = 0
'glpk'
option.
The MOSEK control parameters
are set to their default values.
The corresponding keys in solvers.options
are strings with the
name of the MOSEK parameter. For example the command
>>> from cvxopt import solvers >>> solvers.options['MSK_IPAR_LOG'] = 0
'mosek'
option.
The following control parameters affect the DSDP algorithm:
'DSDP_Monitor'
'DSDP_MaxIts'
'DSDP_GapTolerance'
1e-5
).