« Previous « Start » Next »
3 Setting OQNLP Options
All OQNLP, MSNLP and LSGRG2 control parameters are possible to set
from Matlab.
3.1 Setting options using the OQNLP.options structure
The parameters can be set as subfields in the
Prob.OQNLP.options structure for TOMLAB /OQNLP and TOMLAB /MSNLP. If
using the LSGRG2 solver,
Prob.LSGRG2.options applies. The
following example shows how to set a limit for the maximum number of
iterations.
Prob = conAssign(...) % Setup problem, see help conAssign for more information
Prob.OQNLP.options.ITERATION_LIMIT = 2000; % Setting maximum number of iterations
The maximum number of iterations can also be done through the TOMLAB
parameter
MaxIter:
Prob.optParam.MaxIter = 200;
In the cases where a solver specific parameter has a corresponding
TOMLAB general parameter, the latter is used only if the user has not
given the solver specific parameter.
A complete description of the available parameters can be found in
Section
4.4.
« Previous « Start » Next »