To supply individual optional parameters to
nag_opt_lsq_gencon_deriv (e04us).
nag_opt_lsq_gencon_deriv_option_string (e04ur) may be used to supply values for optional parameters to
nag_opt_lsq_gencon_deriv (e04us). It is only necessary to call
nag_opt_lsq_gencon_deriv_option_string (e04ur) for those arguments whose values are to be different from their default values. One call to
nag_opt_lsq_gencon_deriv_option_string (e04ur) sets one argument value.
Each optional parameter is defined by a single character string,
of up to
characters,
consisting of one or more items. The items associated with a given option must be separated by spaces, or equals signs
. Alphabetic characters may be upper or lower case. The string
Print Level = 1
is an example of a string used to set an optional parameter. For each option the string contains one or more of the following items:
– |
a mandatory keyword; |
– |
a phrase that qualifies the keyword; |
– |
a number that specifies an integer or double value. Such numbers may be up to contiguous characters
in Fortran's I, F, E or D formats,
terminated by a space if this is not the last item on the line. |
Blank strings and comments are ignored. A comment begins with an asterisk (*) and all subsequent characters in the string are regarded as part of the comment.
For
nag_opt_lsq_gencon_deriv_option_string (e04ur), each user-specified option is normally printed as it is defined, on the current advisory message unit (see
nag_file_set_unit_advisory (x04ab)), but this printing may be suppressed using the keyword
Nolist. Thus the statement
[lwsav, iwsav, rwsav, inform] = e04ur('Nolist', lwsav, iwsav, rwsav);
suppresses printing of this and subsequent options. Printing will automatically be turned on again after a call to
nag_opt_lsq_gencon_deriv (e04us) and may be turned on again at any time using the keyword
List.
Optional parameter settings are preserved following a call to
nag_opt_lsq_gencon_deriv (e04us) 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_lsq_gencon_deriv (e04us).
A complete list of optional parameters, their abbreviations, synonyms and default values is given in
Optional Parameters in
nag_opt_lsq_gencon_deriv (e04us).
None.
None.
Not applicable.
None.
function e04ur_example
fprintf('e04ur example results\n\n');
infbd = 1e25;
string = sprintf('Infinite Bound Size = %9.1e',infbd);
[cwsav,lwsav,iwsav,rwsav,ifail] = e04wb( ...
'e04us');
[lwsav, iwsav, rwsav, inform] = e04ur( ...
'List', lwsav, iwsav, rwsav);
[lwsav, iwsav, rwsav, inform] = e04ur( ...
string, lwsav, iwsav, rwsav);