Mary Aranda Cabezas wrote:
I want to issue a static order to distribute Square.
Example:
if N=3 the tuple will have 9 elements, enumerated from 1 to 9.
The elements of the diagonals will correspond to the located elements
of tupla in: 1 3 5 7 9 , then I want to distribute in the following order:
1 3 5 7 9 2 4 1 8
Can be done it?
Make a tuple with the variables in the right order, and use the naive
strategy (or use the naive order in the generic strategy).
{FD.distribute naive {Map [1 3 5 7 9 2 4 6 8] fun {$ I} Sol.I end}}
Cheers,
raph
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users