Writing funeval from compecon