gams.control.database.GamsSet Class Reference
This is the representation of a set symbol in GAMS. More...
Inheritance diagram for gams.control.database.GamsSet:
Properties | |
| settype = property(get_settype) | |
| Retrieve subtype of set (SetType.Multi, SetType.Singleton) | |
Properties inherited from gams.control.database._GamsSymbol | |
| domains = property(get_domains) | |
| Domains of Symbol, each element is either a GamsSet (real domain) or a string (relaxed domain) | |
| domains_as_strings = property(get_domains_as_strings) | |
| Domains of Symbol, each element is a string. | |
| dimension = property(get_dimension) | |
| Get GamsSymbol dimension. | |
| text = property(get_text) | |
| Get explanatory text of GamsSymbol. | |
| name = property(get_name) | |
| Get GamsSymbol name. | |
| database = property(get_database) | |
| Get GamsDatabase containing GamsSymbol. | |
| number_records = property(get_number_records) | |
| Retrieve the number of records of the GamsSymbol. | |
Additional Inherited Members | |
Public Member Functions inherited from gams.control.database._GamsSymbol | |
| __len__ (self) | |
| Retrieve the number of records of the GamsSymbol. | |
| copy_symbol (self, target) | |
| Copys all records from the GamsSymbol to the target GamsSymbol (if target had records, they will be deleted) | |
| delete_record (self, keys=None) | |
| Delete GamsSymbol record. | |
| clear (self) | |
| Clear symbol. | |
| find_record (self, keys=None) | |
| Find record in GamsSymbol. | |
| add_record (self, keys=None) | |
| Add record to GamsSymbol. | |
| merge_record (self, keys=None) | |
| Finds record in GamsSymbol if it exists, adds it if not. | |
| first_record (self, slice=None) | |
| Retrieve first record in GamsSymbol. | |
| check_domains (self) | |
| Check if all records are within the specified domain of the symbol. | |
| get_symbol_dvs (self, max_viol=0) | |
| return all GamsSymbolDomainViolations | |
Public Attributes inherited from gams.control.database._GamsSymbol | |
Protected Member Functions inherited from gams.control.database._GamsSymbol | |
Protected Attributes inherited from gams.control.database._GamsSymbol | |
Detailed Description
This is the representation of a set symbol in GAMS.
It exists in a GamsDatabase and contains GamsSetRecords which one can iterate through.
Properties inherited from