Artwork with Linear Optimization
May 28, 2021
tags: art
Experiments with art and programming
In the 2018 Spring semester at Oberlin College, I took a class in linear optimization* under Bob Bosch. It was one of the best classes of my Oberlin career. As a final project for the class, Alex Jensen and I created a program that can take in any image and reproduce it with album covers (and other building blocks) under certain constraints. The more complicated properties took much harder to run, so most of artwork here is the result of just applying the right album cover to each block of the image according to its average RGB value. Enjoy!
- Linear optimization (also called linear programming) is a branch of mathematics concerned with optimizing a linear combination of variables subject to linear constraints. For example, you may wish to optimize 3x+4y subject to 0 ≤ x ≤ 10 and 0 ≤ y ≤ 10-x. If you impose that x and y are integers, you get a much harder integer programming problem.
Code located on Github.