Simulation and model building for mineral processing