A multi-material transport problem with arbitrary marginals