Dynamic phase-mining optimization in open-pit metal mines