naginterfaces.library.opt.handle_​opt_​set

naginterfaces.library.opt.handle_opt_set(handle, optstr)[source]

handle_opt_set is an option setting function for all solvers from the NAG optimization modelling suite. 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 e04zm

https://www.nag.com/numeric/nl/nagdoc_28.5/flhtml/e04/e04zmf.html

Parameters
handleHandle

The handle to the problem. It needs to be initialized (e.g., by handle_init()) and must not be changed between calls to the NAG optimization modelling suite.

optstrstr

A string identifying the option and its value to be set.

Defaults

Resets all options to their default values.

See the documentation of the particular solver for details of valid values for and . The equals sign () delimiter must be used to separate the from its value.

Resets the given option back to its default value.

is case insensitive.

Each token in the and component must be separated by at least one space.

Raises
NagValueError
(errno )

has not been initialized.

(errno )

does not belong to the NAG optimization modelling suite, has not been initialized properly or is corrupted.

(errno )

has not been initialized properly or is corrupted.

(errno )

The options cannot be modified while solver is running.

(errno )

On entry, the supplied 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, the supplied for the integer option is not valid.

, .

Constraint: .

(errno )

On entry, the supplied for the integer option is not valid.

, .

Constraint: .

(errno )

On entry, the supplied for the integer option is not valid.

, .

Constraint: .

(errno )

On entry, the supplied for the integer option is not valid.

, .

Constraint: .

(errno )

On entry, the supplied for the real option is not valid.

, .

Constraint: .

(errno )

On entry, the supplied for the real option is not valid.

, .

Constraint: .

(errno )

On entry, the supplied for the real option is not valid.

, .

Constraint: .

(errno )

On entry, the supplied for the real option is not valid.

, .

Constraint: .

(errno )

On entry, the supplied for the character option is not valid.

, .

Notes

handle_opt_set can only be called on handles which have been correctly initialized (e.g., by handle_init()) and not during the call to the solver. It has two purposes: 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 option. In addition all options can take an DEFAULT which resets the option to its default value.

Information relating to available option names and their corresponding valid values is given in the documentation of the particular solver. See also the E04 Introduction for more details about the NAG optimization modelling suite.