Skip to content

Commit

Permalink
ConfigurationNumber returns int instead of float
Browse files Browse the repository at this point in the history
  • Loading branch information
jmhorcas committed May 12, 2024
1 parent 047d035 commit 35543eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ def configurations_number(bdd_model: BDDModel,
values = dict(partial_configuration.elements.items())
u_func = bdd_model.bdd.let(values, bdd_model.root)
n_vars = len(bdd_model.variables) - len(values)
return bdd_model.bdd.count(u_func, nvars=n_vars)
return int(bdd_model.bdd.count(u_func, nvars=n_vars))

0 comments on commit 35543eb

Please sign in to comment.