nag_opt_nlp2_option_double_set (e04wh) may be used to supply individual double 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_double_set (e04wh).
nag_opt_nlp2_option_double_set (e04wh) may be used to supply values for double optional parameters to
nag_opt_nlp2_solve (e04wd). It is only necessary to call
nag_opt_nlp2_option_double_set (e04wh) for those arguments whose values are to be different from their default values. One call to
nag_opt_nlp2_option_double_set (e04wh) sets one argument value.
Each double optional parameter is defined by a single character string in
string and the corresponding value in
rvalue. For example the following illustrates how the
stability tolerance could be defined:
factol = 100.0
if (illcon)
factol = 5.0;
end
[iw, rw, ifail] = e04wh('LU Factor Tolerance', factol, 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.
function e04wh_example
fprintf('e04wh example results\n\n');
string = 'Infinite bound size';
infbd = 1d10;
[iw, rw, ifail] = e04wc;
[iw, rw, ifail] = e04wh( ...
string, infbd, iw, rw);
[rvalue, iw, rw, ifail] = e04wl( ...
string, iw, rw);
fprintf('%s has been set to %10.2e\n', string, rvalue);