News for hackers. Stuff that matters.
Re:Ask HN: Do you use an optimization solver? Which one? Do ... by paulgb on Wednesday April 20, 2022 @08:38PM (#31104838)
I love JuMP too. I am very amateur when it comes to optimization, but I found it to be a very efficient way to describe a matching algorithm for a post card exchange I ran (think of it as a Secret Santa, but generalized to each person sending multiple gifts, and discouraging mutual exchanges.) Here's the code: https://twitter.com/paulgb/status/1462483698427781120

To OP's question, besides JuMP, the other use case I've had for optimization is for optimizing the drawing order of pen plots, for which I used or-tools. A write-up on it is here: https://nb.paulbutler.org/optimizing-plots-with-tsp-solver/

Re:Ask HN: Do you use an optimization solver? Which one? Do ... by isatty on Wednesday April 20, 2022 @10:48PM (#31105566)
> here’s the code

> link to twitter

visible_confusion.png.jpg.exe

Re:Ask HN: Do you use an optimization solver? Which one? Do ... by kqr on Thursday April 21, 2022 @01:28AM (#31106265)
I hadn't before realised that you can circumvent the Twitter character limit by turning your message into an image and attaching it. Clever!
Re:Ask HN: Do you use an optimization solver? Which one? Do ... by paulgb on Thursday April 21, 2022 @06:00AM (#31107589)
It’s funny, despite the code being on GitHub, Twitter search is the fastest way for me to find it. Searching my own tweets as a bookmarking tool is its hidden killer feature.

Images aren’t ideal for sharing code, of course, but it’s not like this example works as a standalone program.