nag_glopt_opt_set (e05zkc) either initializes or resets the optional argument arrays or sets a single optional argument for supported problem solving functions in
Chapter e05.
The following functions are supported:
nag_glopt_opt_set (e05zkc) has three purposes: to initialize optional argument arrays; to reset all optional arguments to their default values; or to set a single optional argument to a user-supplied value.
Optional arguments and their values are, in general, presented as a character string,
optstr, of the form ‘
option ’; alphabetic characters can be supplied in either upper or lower case. Both
option and
may consist of one or more tokens separated by white space. The tokens that comprise
will normally be either an integer, real or character value as defined in the description of the specific optional argument. In addition all optional arguments can take an
DEFAULT which resets the optional argument to its default value.
It is imperative that optional argument arrays are initialized before any options are set, before the relevant problem solving function is called and before any options are queried using
nag_glopt_opt_get (e05zlc). To initialize the optional argument arrays
iopts and
opts for a specific problem solving function, the option
Initialize is used with
optval identifying the problem solving function to be called, via its short name. For example, to initialize optional argument arrays to be passed to
nag_glopt_bnd_pso (e05sac), nag_glopt_opt_set (e05zkc) is called as follows:
Information relating to available option names and their corresponding valid values is given in
Section 11 in
nag_glopt_bnd_pso (e05sac),
nag_glopt_nlp_pso (e05sbc) and
nag_glopt_nlp_multistart_sqp (e05ucc).
None.
Not applicable.
Some options have default values which are problem dependent. For example the option
for
nag_glopt_bnd_pso (e05sac) has the default value
. If options such as this are set, they may only be set to constant values. If such an option is reset to its DEFAULT value its dependence on the specific problem will be restored.
See the example programs associated with the problem solving function you wish to use for a demonstration of how to use nag_glopt_opt_set (e05zkc) to initialize option arrays and set options.