lutzzdias / travelling-salesman-problem

0 stars 1 forks source link

[Solution] is_feasible #8

Closed lutzzdias closed 9 months ago

lutzzdias commented 10 months ago

Should return whether or not a the current solution instance is_feasible.

In our case, I think that we should check that the unused set is empty. Optionally, we could also check that the length of the used set is the same as n and check if path contains a duplicate city.