nag_opt_nlp2_sparse_option_integer_set (e04vm) may be used to supply individual integer optional parameters to
nag_opt_nlp2_sparse_solve (e04vh). The initialization function
nag_opt_nlp2_sparse_init (e04vg) must have been called before calling
nag_opt_nlp2_sparse_option_integer_set (e04vm).
nag_opt_nlp2_sparse_option_integer_set (e04vm) may be used to supply values for integer optional parameters to
nag_opt_nlp2_sparse_solve (e04vh). It is only necessary to call
nag_opt_nlp2_sparse_option_integer_set (e04vm) for those arguments whose values are to be different from their default values. One call to
nag_opt_nlp2_sparse_option_integer_set (e04vm) sets one argument value.
Each integer optional parameter is defined by a single character string in
string and the corresponding value in
ivalue. For example, the following allows the iteration limit to be defined:
itnlim = 1000;
if (m > 500)
itnlim = 500;
end
[cw, iw, rw, ifail] = e04vm('Major Iterations', itnlim, cw, iw, rw);
Optional parameter settings are preserved following a call to
nag_opt_nlp2_sparse_solve (e04vh) and so the keyword
Defaults is provided to allow you to reset all the optional parameters to their default values before a subsequent call to
nag_opt_nlp2_sparse_solve (e04vh).
A complete list of optional parameters, their abbreviations, synonyms and default values is given in
Optional Parameters in
nag_opt_nlp2_sparse_solve (e04vh).
None.
None.
Not applicable.
function e04vm_example
fprintf('e04vm example results\n\n');
string = 'Major iterations limit';
itmax = int64(50);
[cw, iw, rw, ifail] = e04vg;
[cw, iw, rw, ifail] = e04vm( ...
string, itmax, cw, iw, rw);
[ivalue, cw, iw, rw, ifail] = e04vr( ...
string, cw, iw, rw);
fprintf('%s has been set to %5d\n', string, ivalue);