First-pass (slow) code to write out MP models. Takes NO advantage of potential optimizations (e.g. linearity of Fourier Transform)