Function GMP::Instance::GetOptionValue(GMP, OptionName)

GMP::Instance::GetOptionValue

The function GMP::Instance::GetOptionValue returns the value of a solver specific option corresponding to a generated mathematical program as set with the procedure GMP::Instance::SetOptionValue.

This procedure can also be used to retrieve the current option value of certain Solvers General options (see below).
GMP::Instance::GetOptionValue(
     GMP,            ! (input) a generated mathematical program
     OptionName      ! (input) a scalar string expression
     )

Arguments

GMP

An element in AllGeneratedMathematicalPrograms.

OptionName

A string expression holding the name of the option.

Return Value

In case of success, the function returns the current option value. Otherwise it returns UNDF.

Note

  • If the procedure GMP::Instance::SetOptionValue has not been called then this function will fail and return UNDF (unless the option is a Solvers General option).

  • Options for which strings are displayed in the AIMMS Options dialog box, are also represented by numerical (integer) values. To obtain the corresponding option keywords, you can use the functions OptionGetString and OptionGetKeywords.

  • This procedure can also be used to retrieve the current option value of the following Solvers General options:

    • Cutoff

    • Iteration limit

    • Maximal number of domain errors

    • Maximal number of integer solutions

    • MIP absolute optimality tolerance

    • MIP relative optimality tolerance

    • Solver workspace

    • Time limit