make clear matlab optimizer maintains state