Variables
Variables are the properties or characteristics defined within a type. Variables can hold different types of data and can be calculated from other values.
-
Variable Domains and Domain Restrictions
A variable can have a fixed domain that defines a set of permitted values. You can specify the domain as a list of discrete values, a continuous range, or a combination.
-
Variable Data Types
Variables support multiple data types including boolean, date, decimal, and so on. Variables without a domain definition may remain unbound, leading to errors.
-
Mathematical Functions (Numerical Derivation)
Mathematical functions and operators are used to calculate derived values based on arithmetic relationships between variables.
-
String Variable Functions and Operators
Constraint Modeling Language (CML) provides string manipulation and conversion functions, and string comparison and validation operators.
-
Variable Annotations
You can annotate variables with properties such as configurable, defaultValue, domainComputation, and relatedAttributes.
-
External Variables
External variables are global Constraint Modeling Language (CML) variables defined within a virtual CML type.