Skip to content

Commit

Permalink
negboolview keeps id
Browse files Browse the repository at this point in the history
  • Loading branch information
Wout4 committed Aug 21, 2023
1 parent 19be009 commit e3ed463
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpmpy/expressions/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ def __init__(self, bv):
# it already comply with the asserts of the __init__ of _BoolVarImpl and can use
# __init__ from _IntVarImpl
_IntVarImpl.__init__(self, 1-bv.ub, 1-bv.lb, name=str(self))
self.id = bv.id

def value(self):
""" the negation of the value obtained in the last solve call by the viewed variable
Expand Down

0 comments on commit e3ed463

Please sign in to comment.