nag_opt_qpconvex2_sparse_option_double_set (e04nu) may be used to supply individual double optional parameters to
nag_opt_qpconvex2_sparse_solve (e04nq). The initialization function
nag_opt_qpconvex2_sparse_init (e04np) must have been called before calling
nag_opt_qpconvex2_sparse_option_double_set (e04nu).
nag_opt_qpconvex2_sparse_option_double_set (e04nu) may be used to supply values for double optional parameters to
nag_opt_qpconvex2_sparse_solve (e04nq). It is only necessary to call
nag_opt_qpconvex2_sparse_option_double_set (e04nu) for those arguments whose values are to be different from their default values. One call to
nag_opt_qpconvex2_sparse_option_double_set (e04nu) 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] = e04nu('LU Factor Tolerance', factol, cw, iw, rw);
Optional parameter settings are preserved following a call to
nag_opt_qpconvex2_sparse_solve (e04nq) 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_qpconvex2_sparse_solve (e04nq).
A complete list of optional parameters, their abbreviations, synonyms and default values is given in
Optional Parameters in
nag_opt_qpconvex2_sparse_solve (e04nq).
None.
None.
Not applicable.
function e04nu_example
fprintf('e04nu example results\n\n');
string = 'Infinite bound size';
infbd = 1e8;
[cw, iw, rw, ifail] = e04np;
[cw, iw, rw, ifail] = e04nu( ...
string, infbd, cw, iw, rw);
[rvalue, cw, iw, rw, ifail] = e04ny( ...
string, cw, iw, rw);
fprintf('%s has been set to %10.2e\n', string, rvalue);