Automatic optimization with supervisory process control