- Function GMP::Instance::GetOptionValue(GMP, OptionName)
GMP::Instance::GetOptionValue
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
.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 returnUNDF
(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
andOptionGetKeywords
.This function can also be used to retrieve the current option value of the following Solvers General options:
See also