naginterfaces.library.fit.opt_set¶
- naginterfaces.library.fit.opt_set(optstr, comm)[source]¶
opt_set
either initializes or resets the option arrays or sets a single option for supported problem solving functions in submodulefit
. Currently, onlydim2_spline_ts_sctr()
is supported.For full information please refer to the NAG Library document for e02zk
https://support.nag.com/numeric/nl/nagdoc_30.2/flhtml/e02/e02zkf.html
- Parameters
- optstrstr
A string identifying the option to be set.
Initialize =
Initialize the option arrays [‘iopts’] and [‘opts’] for use with function , where is the name of the problem solving function you wish to use.
Defaults
Resets all options to their default values.
See Other Parameters for dim2_spline_ts_sctr for details of valid values for and . The equals sign () delimiter must be used to separate the from its .
The processing of does not depend on its case.
Each token in the and component must be separated by at least one space.
- commdict, communication object, modified in place
Communication structure.
On initial entry: need not be set.
- Raises
- NagValueError
- (errno )
On entry, the option in was not recognized: .
- (errno )
On entry, the expected delimiter ‘’ was not found in : .
- (errno )
On entry, could not convert the specified to an integer: .
- (errno )
On entry, could not convert the specified to a real: .
- (errno )
On entry, attempting to initialize the option arrays but specified function name was not valid: .
- (errno )
On entry, the supplied for the integer option is not valid.
.
- (errno )
On entry, the supplied for the real option is not valid.
.
- (errno )
On entry, the supplied for the character option is not valid.
.
- (errno )
On entry, either the option arrays have not been initialized or they have been corrupted.
- Notes
opt_set
has three purposes: to initialize option arrays, to reset all options to their default values or to set a single option to a user-supplied value.Options and their values are, in general, presented as a character string, , of the form ‘’; alphabetic characters can be supplied in either upper or lower case. Both 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 options can take an ‘DEFAULT’ which resets the option to its default value.
It is imperative that option arrays are initialized before any options are set, before the relevant problem solving function is called and before any options are queried using
opt_get()
.Information relating to available option names and their corresponding valid values is given in Other Parameters for dim2_spline_ts_sctr.