mirror of
https://github.com/Brandon-Rozek/matmod.git
synced 2025-11-01 03:01:13 +00:00
Iterate over designated values instead of carrier set
This commit is contained in:
parent
6d7fc9094a
commit
0a0b62f3a0
1 changed files with 1 additions and 1 deletions
2
vsp.py
2
vsp.py
|
|
@ -47,7 +47,7 @@ def has_vsp(model: Model, impfunction: ModelFunction,
|
|||
# x -> y does not take a designiated value
|
||||
I: List[Tuple[ModelValue, ModelValue]] = []
|
||||
|
||||
for (x, y) in product(model.carrier_set, model.carrier_set):
|
||||
for (x, y) in product(model.designated_values, model.designated_values):
|
||||
if impfunction(x, y) not in model.designated_values:
|
||||
I.append((x, y))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue