The importance of mine planning is often underestimated. Nonetheless, it is essential in achieving high performance by identifying the potential value of mineral resources and providing an optimal, practical, and realistic strategy for extraction, which considers the greatest quantity of options, materials, and scenarios. Conventional mine planning is based on a mostly deterministic approach, ignoring part of the uncertainty presented in the input data, such as the mineralogical composition of the feed. This work develops a methodology to optimize the mineral recovery of the heap leaching phase by addressing the mineralogical variation of the feed, by alternating the mode of operation depending on the type of ore in the feed. The operationa...