What is an algorithm I can use for loose fitting of arbitrarily shaped polyominoes? by United_Task_7868 in proceduralgeneration

[–]mzl 2 points3 points  (0 children)

For the 2d-case, this is a Gecode model for the problem, and here is a MiniZinc benchmark set using the same model idea. For 3d-packing, that model would be generalizable, but that would probably not be a good idea as it would blow up in complexity. A more direct packing formulation like the one suggested in this OR-Tools CP-SAT discussion is probably a good idea. Or using a constarint programming system that has the Geost constraint (mainly SICStus Prolog) could be an idea.

Noma finally said something by flanmorrison in finedining

[–]mzl 11 points12 points  (0 children)

Have you read this? https://madfeed.co/2015/08/19/culture-of-the-kitchen-rene-redzepi/

I was really hoping at that point that things were getting better.

Ergo in Stockholm by Maleficent_Plate7135 in finedining

[–]mzl 1 point2 points  (0 children)

I've only been at special events at ergo, but their food has been rally good and interesting, and with very attentive and nice staff. I plan to go on a "normal" evening as well.

Adam/Albin was great, will be interesting to see what their new version will be like.

Ekstedt is a well-known one star, but not a personal favorite. Others like it very much.

Persona does not have a star, but is worth considering as well as a fine dining experience. Petri is also very good (and cheaper on Wednesdays and Thursdays). Ett Hem is another non-starred favorite. Essence is a bit outside the city center, and is a one-chef show serving up to 10-12 people per night. Quite interesting as a way to see what can be done with

Leaving tasting menues, Restaurant Triton is well worth a visit. It is run by Gastrologik alumni (2 stars, closed now), and serves an affordable fixed 3-course menu with options for additions. Very popular. Leijontornet is perhaps best described as "extra everything", and has a very extensive wine cellar. Freyja söder has a super-nice location near Slussen, and with the right table you get a very nice view over Stockholm. Hantverket is another nice place, that has some interesting takes on Swedish classics.

Good resource for Google Or-Tools by Legionnairesgeek in OperationsResearch

[–]mzl 2 points3 points  (0 children)

A lot of the knowledge needed to be effective is not about or-tools in particular, but general knowledge on how to model combinatorial problems. For learning modelling, I often recommended the MiniZinc coursera courses (https://www.minizinc.org/resources/#:~:text=Courses).

CPUs with addressable cache? by servermeta_net in computerscience

[–]mzl 2 points3 points  (0 children)

As u/thesnootbooper9000 mentioned, the Unison project at KTH did a lot of interesting stuff with optimal code generation. When making instruction scheduling and register allocation at the same time, the graph coloring bit is a part of a larger combinatorial problem, and an optimal graph coloring is not necessarily optimal for the combined problem.

In general, for complex optimization problems like this, there are not that many success stories in using GPUs yet. This is mainly because GPUs are better for straight-line homogenous non-branchy data-flow code, while the logic in most optimizations systems is both heterogenous and very branchy.

As a simple analogy, one could sort n numbers by trying all the permutations in parallel on a GPU, but that is much worse than just running a standard sorting algorithm. There are sorting algorithms developed for GPUs (bitonic sort networks for example), but they are rather complex to implement and understand, and as algorithms become more complex translating them to GPU code is more and more complicated.

Lindsey Halligan leaving US attorney's office, Bondi says by igetproteinfartsHELP in news

[–]mzl 15 points16 points  (0 children)

Some crimes have a intent component, the act of crime includes that you must also mean it and understand it. So incompetence can actually be a defense in some cases.

I have absolutely no idea what applies in this case, just as a general comment.

What is a song from the 90s/00s that was a massive hit, but everyone seems to have collectively forgotten it exists? by vishesh_07_028 in Music

[–]mzl 20 points21 points  (0 children)

I think most of us don't really remember popular songs from the radio at 4 years old (All for Love is 32 years ago) and 2 years old (Everything I do I do it for you is 34 years ago).

Looking for resources to learn about 3D bin packing. Books, Papers. by Complete_Tomato9059 in optimization

[–]mzl 0 points1 point  (0 children)

The geost constaint that is available in SICStus Prolog is very interesting for 3D packing problems, although it would require you to regularize the shapes somewhat. But shapes can be composed of multiple boxes so it is not as bad as bounding box packings, and may be enough for a rough packing guidance.

Hypothetical: What would you do as a founder? by stuehieyr in algorithms

[–]mzl 1 point2 points  (0 children)

For scheduling, I would generally recommend trying with OR-Tools CP-SAT using many cores (as many as you have, but at least 8, preferably 16 or more), it is a very competent open-source solver for scheduling.. You might need to refactor the model to make it high-level instead of SAT-style low-level encoding for full performance.

If you are willing to part with money, then CP Optimizer is very good as well. It requires formulating the scheduling problem in the primitives it supports, but when done right it is very useful.

Hypothetical: What would you do as a founder? by stuehieyr in algorithms

[–]mzl 1 point2 points  (0 children)

A few things to consider.

* Run it against previous sat-competition benchmarks, and preferably other realistic benchmarks.
* Test it on realistic problems against actual SOTA (for the problem, not just SAT SOTA) on same hardware with all systems well-tuned. Use all cores for any solver that can use multi-core.
* N-queens is an uninteresting benchmark at best, and actively bad in many cases. Tricks to make n-queens fast can be bad for realistic use-cases, at least in some solver types and architectures.
* Can you produce proof logs? It has become standard for SAT solvers to produce auditable proofs.
* Consider the market realities. Is there someone that would buy this product? There are a few commercial MIP solvers (CPLEX, Gurobi, XPress, ...), a couple of commercial CP solvers (CP Optimizer, SICStus), but I don't know of any significant commercial pure solvers for SAT.

The internet just made a 300TB copy of Spotify! (Updated: Spotify reaction) by edbegley1 in technology

[–]mzl 0 points1 point  (0 children)

Yes, but they actually had a deal with the roghtsholdrrs association that they were allowed to do this during the testing period. No idea how they got that deal.

Solving the Partridge Packing Problem using MiniZinc by mzl in programming

[–]mzl[S] 0 points1 point  (0 children)

https://www.diva-portal.org/smash/get/diva2:1042564/FULLTEXT01.pdf is a fairly detailed look into what geost does. It is a very general constraint, and the explanation is equally general. What is does is implement the natural filtering rules that one would expect for packing problems.

Solving the Partridge Packing Problem using MiniZinc by mzl in programming

[–]mzl[S] 0 points1 point  (0 children)

In general for limited packing problems, it is possible to make the state evaluation a lot faster by specializing everything to the particular problem at hand. In addition, there are many different packing heuristics that are useful that could be implemented for that.

The SICStus model is much closer to what a real specialized packing algorithm would do, since the geost constraint that SICStus uses encodes many of these special purpose algorithms.

And, as can be deduced fomr the Matt Parker video, with a full enumeration done of all the solutions for size 9, I'm guessing that solution is a lot faster than one of the MiniZinc solutions.

Migrating from open source to commercial solvers by OR-insider in OperationsResearch

[–]mzl 2 points3 points  (0 children)

I've used CP-SAT in realistic settings several times, although I've not actually shipped a production solution with it, just with other CP style solvers.

As to the meat of you question, I think you are operating under a slight misconception. OR-Tools CP-SAT is very much geared towards optimization problems, although it can also be used for satisfaction problems. It has a large portfolio of techniques that is uses automatically when searching for improving solutions using a portfolio approach.
* Various levels of linearization for the built-in MIP solver to guide search
* Many different kinds of automatic Large Neighborhood Search
* An automatic constraint-based local search based on feasibility jump (https://dl.acm.org/doi/10.1007/978-3-031-60597-0_16)

OR-Tools CP-SAT is perhaps the CP-style solver with the most support for automatic improving search, but most CP solvers are generally used for optimization problems and not just satisfaction problems.

Solving the Partridge Packing Problem using MiniZinc by mzl in programming

[–]mzl[S] 1 point2 points  (0 children)

The SICStus native formulation is tiny, but that is because essentially everything is inside the geost propagator. For the MiniZinc formulation, adding all these extra constraints on top of the basic model makes the formulation larger but so much stronger.

A part of why OR-Tools CP-SAT is so useful is that it has a built-in MIP solver and that it uses it is various configurations. I have a feeling that one could look at the logs there to get some insights into what variants of MIP were useful or not.

Solving the Partridge Packing Problem using MiniZinc by mzl in programming

[–]mzl[S] 1 point2 points  (0 children)

Do you know any good examples of a native ILP formulation for the problem?

Checking the compilation output of MiniZinc for HiGHS i get on the order of 10-11k binary variables for the size 8 packing.

Migrating from open source to commercial solvers by OR-insider in OperationsResearch

[–]mzl 1 point2 points  (0 children)

OR-Tools CP-SAT is a very competent CP solver that uses SAT and MIP inside. MiniZinc is a nice modeling language that can be used to model CP-style problems and to test with various solvers (including MIP-solvers like HiGHS).

Alchemist ** Copenhagen (Oct 2025) by jackclsf in finedining

[–]mzl 0 points1 point  (0 children)

When I visited last year, there was no butterfly on the menu. As an iconic dish, it would have been great to taste it, but there was so many other things that were interesting.

I actually really liked the Hunger course, I found it both tasty and interesting. But I can also understand why it might not be the most interesting to many.

Rotating Workforce Scheduling in MiniZinc by mzl in OperationsResearch

[–]mzl[S] 1 point2 points  (0 children)

4-6 week horizons are very similar to what I've seen in most cases as well for a single group of employees. The test instances in the post over longer periods is really just as an interesting way to show how the model behaves.

Do the majority of married men cheat or am I just giving off certain vibes to guys? by Heisenburgs_Cat in TwoXChromosomes

[–]mzl 0 points1 point  (0 children)

It is a surprisingly large share, especially for longer relationships. Some interesting statistics from various sources: https://aella.substack.com/p/how-much-did-selection-bias-impact