[gecode-users] magic squares
Christian Schulte
cschulte at kth.se
Sun May 18 17:52:57 CEST 2008
Well, I cannot reproduce what you say. I get the latter solution using
Gecode 2.1.1!
Which version of Gecode, btw.
Christian
--
Christian Schulte, www.ict.kth.se/~cschulte/
-----Original Message-----
From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of Marco Correia
Sent: Friday, May 16, 2008 10:27 PM
To: gecode list
Subject: [gecode-users] magic squares
hi,
I was playing with the magic-squares example, and found that the first
solution to the problem when using INT_VAR_NONE and INT_VAL_MIN as
heuristics
(and using no symmetries) is
8 9 6 11
12 14 3 5
1 7 10 16
13 4 15 2
instead of
1 2 15 16
12 14 3 5
13 7 10 4
8 11 6 9
why?
ps: I also changed the line 116 of magic-square.cc to m(j,i) to make it
print
lines as lines and cols as cols.
thanks
Marco
--
Marco Correia <mvc at di.fct.unl.pt>
_______________________________________________
Gecode users mailing list
users at gecode.org
https://www.gecode.org/mailman/listinfo/gecode-users
More information about the gecode-users
mailing list