Optimization of profits by the mine development