You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @shuaiwang88
That's because {'e1', 'e2', 'e3', 'e4'} is a set (both in Python and MiniZinc). Sets are unordered data structures so the order of iteration is not guaranteed.
If you need the to keep the order you need to use Python lists, which are converted into minizinc arrays.
Does this help?
@paolodragone I am looping over the a_string as index domain to simulate a parameter in array. This could effect the sequence of the parameter since the set is not order while the array is ordered.
Why the output sequence does not match the original input?
I am not sure the index of the paramter is valid or not.
The text was updated successfully, but these errors were encountered: