special_values.py File Reference
This example shows how special values of the programming language (e.g. More...
Go to the source code of this file.
Variables | |
str | special_values.GAMS_MODEL |
sys | special_values.sys_dir = sys.argv[1] if len(sys.argv) > 1 else None |
GamsWorkspace | special_values.ws = GamsWorkspace(system_directory=sys_dir) |
GamsWorkspace | special_values.db_in = ws.add_database(in_model_name="myDB") |
special_values.value | |
GamsWorkspace | special_values.job = ws.add_job_from_string(GAMS_MODEL) |
special_values.databases | |
GamsWorkspace | special_values.db_out = job.out_db |
GamsWorkspace | special_values.GUndef = db_out["GUndef"].first_record().value |
GamsWorkspace | special_values.GNA = db_out["GNA"].first_record().value |
GamsWorkspace | special_values.GPInf = db_out["GPInf"].first_record().value |
GamsWorkspace | special_values.GMInf = db_out["GMInf"].first_record().value |
GamsWorkspace | special_values.GEps = db_out["GEps"].first_record().value |
Detailed Description
This example shows how special values of the programming language (e.g.
infinity) percolate down to GAMS. Infinity and NaN (not a number) are well defined. The GAMS Undefined and EPS need special considerations.
Definition in file special_values.py.