Group Abstract Group Abstract

Message Boards Message Boards

Tilings and constraint programming

Posted 5 years ago
16 Replies

this application is very musical, dependent upon scales and harmonics... here is where the visual and the musical begin to dance...

POSTED BY: Drew Lesso

I find I keep coming back to this application every time I learn of a new optimization technique!

This time, it's projection onto (non-)convex sets, e.g. the "difference map" algorithm which was previously used to solve Sudoku puzzles (which is of-course another problem amenable to Linear Programming).

Here's an animation of the solver for a 30x30 image (note this seems to be as large as I could make it, the tiling projection is memory intensive..) using 24 grayscale Smith tiles:

enter image description here

A slightly longer walk-through of the projections I used can be found here, and I've attached the source-code. See the full discussion here: https://community.wolfram.com/groups/-/m/t/2823307

Hope you find watching the algorithm trying to climb out of a local minimum as mesmerizing as I do!

Attachments:
Posted 4 years ago

Looks like since V12.2 Gorubi can be accessed in WL, given a license for it.

https://reference.wolfram.com/language/ref/method/Gurobi.html

enter image description here

POSTED BY: Greg Hurst

Congratulations! Your post was highlighted on the Wolfram's official social media channels. Thank you for your contribution. We are looking forward to your future posts.

POSTED BY: EDITORIAL BOARD

Thank you !

Indeed, I got the idea from this book ! But since I don't have access to powerful solvers like Gorubi, I had to improve a bit the initial idea to be able to work with bigger images.

I have coded a few other algorithms from the book and I'll post them to the forum at some point (just need to find time to clean them).

This is really cool! There is a chapter about something similar to this in a book called Opt Art that you might enjoy. The whole book is about creating art with linear optimization.

Very nice! Thanks for sharing!

POSTED BY: Sander Huisman

Thanks ! It is awesome. I managed to make it work. But my computer being slow I do not yet have any cool result to share.

I am glad to see that the hack I did for the rounding problems in the vector code is also working on your configuration. The tiles are well aligning.

Thanks for sharing.

Posted 5 years ago

Really cool stuff!

Just made this with your code:

enter image description here

and this one:

enter image description here

POSTED BY: Oliver Seipel

With some changes to the notebook, the photo mosaic case can be supported:

  • The topological constraints must be disabled
  • A new constraint must be added to prevent a tile from being reused more than once on the whole picture.

If I can find some time, I’ll update the notebook to support this case too.

There is a related blog by Theodore Gray from 2008 that might be of interest. Different constraints, but similar idea in creating a mosaic.

POSTED BY: Daniel Lichtblau

Amazing idea - and nicely done! It truly generates a piece of art! Thanks for sharing!

POSTED BY: Henrik Schachner

Thank you !

enter image description here -- you have earned Featured Contributor Badge enter image description here Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

POSTED BY: EDITORIAL BOARD
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard