naginterfaces.library.blgm.optset

naginterfaces.library.blgm.optset(handle, optstr)[source]

optset is a general option setting function for functions in submodule blgm. It can set a single option or reset all of them to their default.

For full information please refer to the NAG Library document for g22zm

https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/g22/g22zmf.html

Parameters
handleHandle

The G22 handle which must have been initialized by one of submodule blgm’s initialization functions.

optstrstr

A string identifying the option, its value and, where required, the instance identifier.

Defaults

Resets all options to their default values.

Sets (all instances) of to .

Sets a single instance of to .

Resets (all instances) of to their default value.

Resets a single instance of to its default value.

is case insensitive and , instance identifier and may consist of one or more tokens separated by white space.

See the documentation of the individual functions in the G22 Introduction for details of valid values for , instance identifier and .

Raises
NagValueError
(errno )

has not been initialized or is corrupt.

(errno )

is not a G22 handle.

(errno )

On entry, was not recognized.

.

(errno )

On entry, the expected delimiter ‘’ was not found.

.

(errno )

On entry, is read only.

.

(errno )

On entry, could not convert to an integer.

.

(errno )

On entry, could not convert to a real.

.

(errno )

On entry, is not a valid value for .

.

(errno )

Invalid instance identifier for .

On entry, .

(errno )

Numeric instance identifier is out of range.

On entry, .

Constraint: and .

Warns
NagAlgorithmicWarning
(errno )

On entry, cannot have an associated instance identifier. The supplied instance identifier was ignored.

.

Notes

optset can only be called on G22 handles. Its purpose is to reset all options to their default values or 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. will normally be either an integer, real or character value as defined in the description of the specific option. In addition, all options can take an DEFAULT which resets the option to its default value.

In cases where an option may have multiple instances an instance identifier can be specified. This is presented using the form ‘’. In such cases, if the instance identifier is omitted, the value of all instances are changed.

Information relating to available option names, their corresponding valid values, whether the use of an instance identifier may be appropriate and what form it can take is given in the individual function documents.