RangeVariable.setMaxVal
- RangeVariable.setMaxVal(maxVal)
Set a new value of the upper bound
- Parameters:
maxVal (
long) – The new value of the upper bound- Return type:
None
Warning
An error should be raised if the value is lower than the lower bound.
Example
import pyagrum as gum
r = gum.RangeVariable("r", "r", 2, 5)
r.setMaxVal(8)
r.domain()
# '[2,8]'
Class