Integrated expert control system for grinding and flotation