concepts.dsl.constraint.Assignment#
- class Assignment[source]#
Bases:
object
An assignment of a variable.
Methods
Attributes
Alias of assignment.t.
Alias of assignment.d.
the type of the assignment.
the value of the variable.
- __init__(t, d, generator_index=None)#
- Parameters:
t (AssignmentType)
d (bool | int | None | TensorValue)
- Return type:
None
- __new__(**kwargs)#
- property assignment_type#
Alias of assignment.t.
- d: bool | int | None | TensorValue#
the value of the variable.
EQUAL: The variable is equal to another variable.
VALUE: The variable is equal to a value.
IGNORE: The variable is ignored. This happens when the variable does not appear in any constraint.
- property data#
Alias of assignment.d.
- t: AssignmentType#
the type of the assignment. There are three types:
EQUAL: The variable is equal to another variable. VALUE: The variable is equal to a value. IGNORE: The variable is ignored. This happens when the variable does not appear in any constraint.