nag_glopt_opt_get (e05zlc) is used to query the value of optional arguments available to supported problem solving functions in Chapter e05
Currently the following routines are supported:
nag_glopt_opt_get (e05zlc) is used to query the current values of options. It is necessary to initialize optional argument arrays using nag_glopt_opt_set (e05zkc)
before any options are queried.
nag_glopt_opt_get (e05zlc) will normally return either an integer, real or character value dependent upon the type associated with the optional argument being queried. Some real and integer options also return additional information in cvalue
. Whether the option queried is of integer, real or character type, and whether additional information is returned in cvalue
, is indicated by the returned value of optype
Information on optional argument names and whether these options are real, integer or character can be found in Section 12 in nag_glopt_bnd_pso (e05sac)
, nag_glopt_nlp_pso (e05sbc)
, nag_glopt_nlp_multistart_sqp (e05ucc)
and nag_glopt_nlp_multistart_sqp_lsq (e05usc)
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 queried before being set, or before the problem solving function has been called, they will return misleading information in ivalue
. In some cases, the value of cvalue
will be set to DEFAULT to indicate that the real or integer valued optional argument supplied in optstr
is at its default value.
See the example programs associated with the problem solving function you wish to use for a demonstration of how to use nag_glopt_opt_get (e05zlc) to query options.