Get tm opt.
We can extend bitsofcotton/p4 as verbatim optimization problem with some of the constraints. This could get the function fit the most on input series in moderate time. (QM on classical with some another implementation concept.)
We don't have enough tools now alike p4.
This can be the end of p[012345] concept if we could implement them all.