--
You received this message because you are subscribed to the Google Groups "Picat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picat-lang+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/picat-lang/51978c43-b068-4bb6-a8b0-9d0458f1c8cdn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/picat-lang/CAFOC6HTXpg0cya_5hS4qLFD6vr4ACR_gYC78Pn%3D7NmntCwjG%3DQ%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/picat-lang/634dcd45-d844-41c9-84d8-e973860b6f86n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/picat-lang/e2ab5925-0673-4c87-803a-a2bc6aa19be9n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Picat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picat-lang+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/picat-lang/CAFOC6HTjeYTHBHogJEv-cqAXk8jM-XLeXah%2B8iC492Frda2aYQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Picat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picat-lang+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/picat-lang/895a445a-a49d-4244-bbba-a4eb40ddfd1an%40googlegroups.com.
Hmm... perhaps I'm using it wrong, but I tried replacing my SAT solution's call to "solve" with a call to "solve_once", and it seems to break the program.Specifically, for the third example in the sample data, it should fail to solve because the 7th shape can't be placed in the grid.My solution writes a unique Id (sequence number) of each shape placed into the grid. Then, to avoid having non-constrained values of the grid take some random value (probably not necessary), I added a flattened version of the grid and used "exactly(7,Flat,Id)", since all shapes consist of 7 filled tiles and 2 blank tiles.The third call to solve_once produces an invalid solution -- both Grid and Flat contain only 6 nonzero ID values, meaning the 7th shape was not written. So the "exactly" constraint should fail, but doesn't.However, if I just use "solve" as before, it correctly fails to solve that instance.
To view this discussion visit https://groups.google.com/d/msgid/picat-lang/CAFOC6HTAcjUuka3-qeeEWSr9ZQ0%2BHXDSpGFwpNg%2B1VMyfNOG6g%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/picat-lang/CAFOC6HTAcjUuka3-qeeEWSr9ZQ0%2BHXDSpGFwpNg%2B1VMyfNOG6g%40mail.gmail.com.