nag_opt_nlp2_option_integer_set (e04wg) may be used to supply individual integer optional parameters to
nag_opt_nlp2_solve (e04wd). The initialization function
nag_opt_nlp2_init (e04wc) must have been called before calling
nag_opt_nlp2_option_integer_set (e04wg).
nag_opt_nlp2_option_integer_set (e04wg) may be used to supply values for integer optional parameters to
nag_opt_nlp2_solve (e04wd). It is only necessary to call
nag_opt_nlp2_option_integer_set (e04wg) for those arguments whose values are to be different from their default values. One call to
nag_opt_nlp2_option_integer_set (e04wg) 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
[iw, rw, ifail] = e04wg('Iterations', itnlim, iw, rw);
Optional parameter settings are preserved following a call to
nag_opt_nlp2_solve (e04wd) 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_solve (e04wd).
A complete list of optional parameters, their abbreviations, synonyms and default values is given in
Optional Parameters in
nag_opt_nlp2_solve (e04wd).
None.
None.
Not applicable.
nag_opt_nlp2_option_string (e04wf) may also be used to supply integer optional parameters to
nag_opt_nlp2_solve (e04wd).
function e04wg_example
fprintf('e04wg example results\n\n');
string = 'Major iterations limit';
itmax = int64(50);
[iw, rw, ifail] = e04wc;
[iw, rw, ifail] = e04wg( ...
string, itmax, iw, rw);
[ivalue, iw, rw, ifail] = e04wk( ...
string, iw, rw);
fprintf('%s has been set to %5d\n', string, ivalue);