nag_opt_nlp2_sparse_option_double_set (e04vn) may be used to supply individual double 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_double_set (e04vn).
nag_opt_nlp2_sparse_option_double_set (e04vn) may be used to supply values for double optional parameters to
nag_opt_nlp2_sparse_solve (e04vh). It is only necessary to call
nag_opt_nlp2_sparse_option_double_set (e04vn) for those arguments whose values are to be different from their default values. One call to
nag_opt_nlp2_sparse_option_double_set (e04vn) 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
[cw, iw, rw, ifail] = e04vn('LU Factor Tolerance', factol, 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 e04vn_example
fprintf('e04vn example results\n\n');
string = 'Infinite bound size';
infbd = 1d10;
[cw, iw, rw, ifail] = e04vg;
[cw, iw, rw, ifail] = e04vn( ...
string, infbd, cw, iw, rw);
[rvalue, cw, iw, rw, ifail] = e04vs( ...
string, cw, iw, rw);
fprintf('%s has been set to %10.2e\n', string, rvalue);