Instantiation.setLastOut
- Instantiation.setLastOut(i)
Assign the last values in the Instantiation for the variables not in i.
- Parameters:
i (
pyagrum.Instantiation) – The variables that will not be set to their last value in this Instantiation.- Return type:
None
Example
import pyagrum as gum
a, b = gum.LabelizedVariable("a", "a", 2), gum.LabelizedVariable("b", "b", 3)
i = gum.Instantiation()
i.add(a)
i.add(b)
j = gum.Instantiation()
j.add(b)
i.setLastOut(j)
print(i)
# <a:1|b:0>
Class