Improvement of MEI coefficients by optimization