Simulating and Optimising Mining Operations with Simulink