-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected behavior with unique rand_list_t #219
Comments
Hi @felixdube, |
Hi @mballance, Yes, in my use case, it would be okay to assume the size of the vectors is the same. Felix |
- (#219) - Add `unique_vec` constraint to support unique-vector constraints Signed-off-by: Matthew Ballance <[email protected]>
Hi @felixdube, Have a look at the new Lines 204 to 234 in 36aca2d
|
Awesome! Thank you for the help! |
I am trying to randomize a few rand_list_t, and I want the lists to be unique:
It fails with the following error message:
vsc.model.solve_failure.SolveFailure: solve failure
It fails because it seems like it is trying to do vsc.unique(self.a[0], self.b[0], self.c[0]) and vsc.unique(self.a[1], self.b[1], self.c[1]), but that's not really what I want. I would like the lists to be unique, not the individual indexes. Index 1 could be the same for all lists as long as the index 0 are different.
Is there a way to achieve what I want?
The text was updated successfully, but these errors were encountered: