Loading...
Searching...
No Matches
alias.py File Reference

The GAMS Control API does not have the concept of a GAMS alias. More...

Go to the source code of this file.

Detailed Description

The GAMS Control API does not have the concept of a GAMS alias.

An alias cannot be entered into a GamsDatabase by API methods. Nevertheless, if the GamsDatabase is loaded from a GDX container (e.g. the GamsJob.out_db), the database can contain aliases. Such an alias can be retrieved as a GamsSet and consists of the elements of the aliased set. The method to find out if a GamsSet in a GamsDatabase is indeed an alias is to check if the symbol name is different from the lookup name (i.e. is_alias = db["ii"].name != "ii"). This example model goes through the logic of how aliases are handled in the GAMS Control API.

Definition in file alias.py.