DomainViolation Class Reference
Domain Violation. More...
Domain Violation.
Domain violations occur when a symbol uses other Sets as domain(s) – and is thus of domain type regular
, see Symbol Domain – and uses a domain entry in its records that is not present in the corresponding referenced domain set. Such a domain violation will lead to a GDX error when writing the data! See Domain Violations for more information.
Public Member Functions | |
function | DomainViolation (in symbol, in dimension, in domain, in violations) |
Constructs a domain violation, see class help. | |
function | resolve (in obj) |
Resolve the domain violation by adding the missing elements into the domain set. | |
Constructor & Destructor Documentation
◆ DomainViolation()
function DomainViolation | ( | in | symbol, |
in | dimension, | ||
in | domain, | ||
in | violations | ||
) |
Constructs a domain violation, see class help.
Required Arguments:
- symbol (
Symbol
): The GAMS symbol in which the domain violation occurs. - dimension (
int
): The dimension of the domain in which the domain violation occurs. - domain (
Set
): The GAMS Set that is the domain of symbol. - violations (
cellstr
): List of domain entries that are used in symbol but are missing in domain.