Global option handler for MPT.
mptopt('Parameter1',Value1,'Parameter2',Value2,...)
Parameter1 |
The name of the desired option to be changed provided as string. The list of available options can be
obtained by typing properties('mptopt') at the Matlab prompt. Class: char |
Value1 |
The value to be assigned to Parameter1. Class: double or char |
s = mptopt
s = Global settings for MPT: version: @version@ solvers_list: [struct] rel_tol: 1e-06 abs_tol: 1e-08 lex_tol: 1e-10 zero_tol: 1e-12 region_tol: 1e-07 report_period: 2 verbose: 0 infbound: 10000 colormap: matrix of size [10 x 3] lpsolver: LCP qpsolver: LCP milpsolver: GLPK miqpsolver: lcpsolver: LCP plpsolver: PLCP pqpsolver: PLCP plcpsolver: PLCP modules: [struct]
s.solvers_list.LP
ans = 'LCP' 'CDD' 'GLPK' 'LINPROG' 'QPOASES' 'CLP' 'SEDUMI'If CDD solver is present in the list, it means that it exist on the Matlab path. To change CDD solver as default for solving LP, it can be done twofold. Assignment with the help of the output variable s:
s.lpsolver = 'CDD';or calling mptopt via standard syntax
mptopt('lpsolver','CDD');
s = mptopt;
s.modules.geometry
ans = sets: [1x1 struct] unions: [1x1 struct]These options can be changed from any instance of the script and take effect globally. To reset to default options use the function
mpt_init
MPT searches for solvers on the path ... LINPROG ............................................ linprog.m QUADPROG .......................................... quadprog.m GLPK .................................................. glpkcc CDD ................................................... cddmex CLP ................................................... mexclp QPOASES .............................................. qpOASES LCP ...................................................... lcp SEDUMI .............................................. sedumi.m QPSPLINE .......................................... QPspline.m PLCP .............................................. mpt_plcp.m MPQP .............................................. mpt_mpqp.m MPLP .............................................. mpt_mplp.m MPT toolbox @version@ initialized... Copyright (C) 2003-2013 by M. Kvasnica, C.N. Jones, and M. Herceg For news, visit the MPT web page at http://control.ee.ethz.ch/~mpt/ LP solver: LCP QP solver: LCP MILP solver: GLPK parametric LP solver: PLCP parametric QP solver: PLCP These default options can be changed. See "help mptopt" for more details.
◀ | mpt | mpt_init | ▶ |
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch