use maxima to test for elastic mtl opt.