IntegerVariable.isValue

IntegerVariable.isValue(value)
Parameters:

value (int) – the value to look at.

Returns:

True if the value is in the domain.

Return type:

bool

Example

import pyagrum as gum

n = gum.IntegerVariable("n", "n", [1, 3, 10])
n.isValue(3)
# True
n.isValue(4)
# False

Class

IntegerVariable