Skip to content

Commit

Permalink
correct bug count cardinality (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
Max9294D authored Jul 19, 2023
1 parent 352d022 commit af364fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CP/core/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ function global_domain_cardinality(model::CPModel)
cardinality = 0
for (id, x) in model.variables
cardinality += length(x.domain)
if !(isa(x.domain, IntSetDomain) || isa(x, IntVarViewMul))
if !(isa(x.domain, IntSetDomain) || isa(x, IntVarViewMul) || isa(x, IntVarViewOpposite) || isa(x, IntVarViewOffset))
if !isempty(x.children)
for child in x.children
cardinality += length(child.domain)
Expand Down

0 comments on commit af364fb

Please sign in to comment.