Hi,
I have modeled a problem in MiniZinc, which I solve using OR-Tools CP-SAT. The solver is quite efficient, taking only a few seconds to solve an instance with 354 decision variables (see below). However, MiniZinc takes significantly longer—several minutes—and consumes a large amount of RAM (several gigabytes) to flatten the instance.
For example, flattening an instance with:
results in a flattened .fzn file of 183 MB and requires approximately 12 GB of RAM (6 GB for flattening + 6 GB for loading the flattened instance into the solver).
For comparison, the file sizes of my model and instance are:
Am I doing anything wrong? Given these numbers, and considering that I may need to solve much larger instances, using MiniZinc might be impractical. I may need to model the problem directly in OR-Tools instead.
Thanks,
Luca