Merged with MATLAB optimum run