gamspy#
- gamspy.set_options(options: dict[str, Any]) None[source]#
Sets the given configuration options.
- Parameters:
- optionsdict[str, Any]
- Raises:
- ValidationError
In case the given options are not in dict type.
Examples
>>> import gamspy as gp >>> gp.set_options({"DOMAIN_VALIDATION": 1})
- gamspy.get_option(name: str) Any[source]#
Returns the requested option.
- Parameters:
- namestr
Option name.
- Returns:
- Any
The value of the option.
- Raises:
- KeyError
In case the option is not set.
Examples
>>> import gamspy as gp >>> gp.set_options({"DOMAIN_VALIDATION": 0}) >>> gp.get_option("DOMAIN_VALIDATION") 0 >>> gp.set_options({"DOMAIN_VALIDATION": 1})