function [J] = rosetta(t,problem) [J] = mga_dsm(t,problem);