The risk-averse ultimate pit problem

In this work, we consider a risk-averse ultimate pit problem where the grade of the mineral is uncertain. We derive conditions under which we can generate a set of nested pits by varying the risk level instead of using revenue factors. We propose two properties that we believe are desirable for the problem: risk nestedness, which means the pits generated for different risk aversion levels should be contained in one another, and additive consistency, which states that preferences in terms of order of extraction should not change if independent sectors of the mine are added as precedences. We show that only an entropic risk measure satisfies these properties and propose a two-stage stochastic programming formulation of the problem, including an efficient approximation scheme to solve it. We illustrate our approach in a small self-constructed example, and apply our approximation scheme to a real-world section of the Andina mine, in Chile.


Introduction
A fundamental problem in open-pit mine planning is the determination of the ultimate pit (UP), which consists of finding the contour of the mine that maximizes the difference between profits obtained from minerals minus extraction costs. The ultimate pit is very relevant in mine planning because it allows for a rough estimation of the value of a mine, and permits the determination of the region of interest on a mineral deposit. The problem is formulated in a very simplistic way, representing the mine as a set of uniform blocks (block model) with a predefined economic value and taking into account only structural requirements, such as the maximum slope angle on the pit walls. A first formulation of the UP problem can be traced back to 1965: the seminal paper [18] was one of the first works to propose an algorithm to solve this problem, and their methodology has been widely used in the mining industry. Since then, many authors have used different implementations and techniques to solve this problem in a variety of settings [3,5,9,13,24].
The UP problem is relevant in practice mainly for two reasons. First, it provides a rough estimate of the total ore and metal tonnage that can be potentially extracted, defining the region of interest of the deposit that deserves further analysis. Second, the possibility of solving UP problems efficiently allows one to generate so-called nested pits [18]: by solving the problem for different prices-using "revenue factors"-of the mineral, it is possible to obtain a sequence of pits such that higher factors generate larger pits that contain the smaller ones. The main purpose of the nested pits technique is to derive phases (or pushbacks) used to guide the sequence of extraction of the mine for later production scheduling considering more operational constraints. In fact, nested pits have been the basis of most mine planning software during the last 30 years.
A crucial element of the UP problem is the economic value assigned to each block, which in general considers-at least-the grade, the price and the cost of extracting and processing a block to recover the minerals. The vast majority of works concerning the UP problem assume that these parameters of the problem are known. However, one of the most relevant sources of uncertainty comes from the estimation of the grades of minerals-commonly referred to as ore grade-in each block. Geostatisticians have developed several methodologies to study this problem, considering the strong spatial correlation that characterizes ore grade distributions in a deposit. The most common technique is to extract samples from the deposit via drill holes, to infer the distribution of the ore grades based on those samples and to generate scenarios using techniques such as kriging [8]. However, most of this rich information about the deposit and its ore grades is not used on further steps of the mine planning process, and only one single grade value per block-in general, the average grade of each block-is utilized for solving the UP problem.
There are few works that incorporate the distribution of ore grades (or at least, a finite set of scenarios for the ore grades) into a mine planning problem. In [7,17], the authors show how the net present value of a mine can be improved by using techniques based in stochastic programming. In [20], expected profits are considered in the objective function, and the authors conclude that larger profits can be obtained by incorporating uncertainty into the UP formulation with respect to the deterministic case and that the relative gains of the stochastic approach increase with the treatment costs. In [11], the authors move one step further and study the risk-averse UP problem, replacing the expected value by risk measures such as the conditional valueat-risk (CVaR) [22], which has been widely used in applications in finance and energy.
The idea behind the nested pits technique can be interpreted as a way of incorporating risk aversion into the mine planning problem. The smaller pits are those that are profitable, even if the ore grades (or metal prices) are multiplied by a small revenue factor. However, it is known that this simplistic approach does not provide the expected protection under bad scenarios [11]. We propose a detailed study of the risk-averse UP problem, considering ore grades as an uncertain parameter of each block. We generate a set of nested pits by varying the risk level of the problem instead of considering revenue factors. First, we propose some properties-risk nestedness and additive consistency-that we believe a risk measure should have in the context of the UP problem and show that the only risk measure that satisfies those properties is the entropic risk measure. In particular, the CVaR does not satisfy any of these properties and is probably not the best choice to capture risk aversion in the mine planning context. Second, we derive conditions under which the entropic risk measure, which is a convex risk measure primarily used with utility functions over capital investments [12], generates nested pits by varying the risk-aversion level of the decision maker.
We apply our methodology to a small case study of a self-constructed instance to illustrate the gains of our approach. We also verify our proposed methodology in a real-world mine, showing how ore grade uncertainty can drastically change the solutions obtained, while the common nested-pit approach is unaffected by the stochastic nature of the ore grade.
The structure of this paper is as follows. Section 2 provides an overall view of the UP problem, and we present a two-stage stochastic formulation and summarize the concept of nested pits. In Section 3, we define risk in the UP problem and propose desirable properties that risk measures should have. In Section 4, we show the results of our methodology using a small instance to visualize the differences between ours and the nested-pit methodology and using a real mine to show the potential of its use in real-life instances. Section 5 concludes the work and points out avenues for future research.
2 Ultimate pit problem and nested pits 2.1 Ultimate pit problem

Block model and its economic values
A block model is a representation of the deposit, constructed by a threedimensional array of units-usually of equal size-called blocks [23]. Each block has a set of parameters including-at least-a tonnage, representing the amount of material in each block and an ore grade g b , which determines the proportion of mineral in the block. We denote by B the set of blocks of the mine. From the position of each block, we can also estimate a set of precedences for each block, which is the set of blocks that must be extracted before a given block is removed from the mine, to avoid geotechnical difficulties. In practice, these precedences are computed to maintain a maximum slope angle on the walls of the pit [15]. We denote by P ⊆ B × B the set of all precedences; that is, if (b, b ) ∈ P , then to order to extract block b, we must extract block b . Figure 1 presents an example of this representation. The economic value of each block depends on its destination, which in turn depends, among other factors, on the metal grades of the block. In the simplest case, we assume that there is only one grade and two possible destinations for each block after extracting it: either to process it to recover the mineral or to drop it in a waste dump. Depending on this destination, we say that a block is either ore or waste.
Let c e b be the cost of extracting block b and c p b be the additional cost of processing block b after being extracted. In practice, these costs are usually a fixed value per ton of material, but we can consider more complex formulas, for example, by including contaminants or considering the hardness of the block. As a convention, c e := {c e b } b∈B and c p := {c p b } b∈B will be defined as the vector of all extracting costs and processing costs for every block b ∈ B, respectively.
When processing a block, a fraction of its contained metal is recovered, which generates an income. We denote this income by r b · g b , where g b > 0 is the ore grade of block b, and r b > 0 includes other factors needed to compute the profit. In the simplest case, r b is the product of the tonnage of block b, the metal recovery rate of the process, and the price per unit of the recovered metal. Since we are interested in the study of ore grade uncertainty, we assume that r b has a deterministic value for every block b ∈ B.
With these parameters, the economic value v b of an extracted block b ∈ B is given by the following formula: if b is extracted and processed (ore), −c e b if b is extracted but not processed (waste). (2.1) For the ultimate pit problem, the destination of each block can be decided a priori: we only process a block if its income pays off the processing costs (r b · g b − c p b > 0). In the case that r b and c p b have a fixed value for all blocks in B, the threshold grade g cut = c p /r is known as the cut-off grade, and blocks are classified as either ore or waste depending if their grade g b is greater than g cut .

UP with deterministic ore grades
The UP problem consists of selecting the set of blocks to extract and process that which maximizes the total value of the mine. Using our previous notation, we can formulate the UP problem as the following mixed-integer optimization problem: where the decision of extracting and processing each block b ∈ B is represented by the binary variables x e b and x p b , respectively, and g := {g b } b∈B represents the vector of ore grades for every block b ∈ B. We remark that we wrote the problem as a minimization of cost, instead of maximization of profit (the negative of the objective function in (2.2)), to be consistent with most of the risk literature. The first set of constraints represents the extraction precedences for every block, and the second set of constraints conditions the processing of a block to its extraction.
As mentioned before, variables x p can be eliminated from the problem because the destination of a block can be decided a priori, so we can consider the extraction decision x e b only and replace its objective coefficient by −v b (see (2.1)). Nonetheless, since this simplification is not always valid for the stochastic version of the UP problem, we will use formulation (2.2) as a starting point in the next section.

UP with uncertainty on ore grades
The first step in developing a risk-averse model is to define a way in which to handle the ore grade uncertainty of the mine. For each b ∈ B, letg b be the random variable that represents the ore grade of block b. Note that the decision of whether a block is ore or waste depends on the realization ofg b , so we cannot decide a priori its economic value as in the deterministic case. Hence, it is natural to introduce these random ore grades in the UP problem as a two-stage stochastic optimization problem. In the first stage, a decision must be made before the uncertainty is revealed, and a second-stage decision is made once the uncertainty is known, as a recourse action. In the context of the UP problem, we define the extraction decision as a first-stage variable and the processing decision as a second-stage variable.
Therefore, the UP problem under uncertainty can be formulated as follows: where Q(x e ,g, r) = min andg := {g b } b∈B represents the vector of random variables realizations of ore grades for every block b ∈ B. Function ρ α : L 1 → R will be defined as a deviation or risk measure, which deals with the uncertainty of the ore grade in the second stage. The parameter α ∈ R, whose range depends on the risk measure ρ α under consideration, represents the risk aversion level of the decision maker. We note that ifg b has a deterministic value, then we recover formulation (2.2). If ρ α (·) is equal to the expected value E[·], then we fall into the risk-neutral case, which was extensively studied in [20]. One of their main results is that the objective value of UP U is greater than or equal to the objective value of the deterministic problem when using the expected grade E[g b ] of each block.
This result, which can be seen as an application of Jensen's inequality due to the convexity of function Q(x e ,g, r), shows that even under risk neutrality, the stochastic UP problem can provide a different-and more profitable-pit (in expected value) than its deterministic counterpart.

Nested pits in open pit mine planning
As mentioned before, nested pits are a well-known concept that serve as the basis for several software programs used by the industry. Given a sequence of revenue factors β 1 < β 2 < . . . < β M , with β i ≥ 0, we solve the deterministic problem UP(g, β i · r) for each i = 1 . . . M . The solution of these problems satisfies the nestedness property, where the resulting pit is obtained with revenue factor β i is completely contained in the pit obtained by using revenue factor β i+1 (see [4,14,18] for a formal proof of this property). Figure 2 shows the pits generated by solving a small instance of problem (2.2) with β 1 < β 2 < β 3 < β 4 . Note that for β = 0, the resulting problem UP(g, β · r) only considers the extraction and processing costs, so the optimal solution is to not extract any block. For β = 1, we recover the classical deterministic UP problem. Note that two consecutive revenue factors β i < β i+1 do not necessarily result in different pits, implying that the number of different nested pits can be smaller than M .
Nested pits are not explicitly defined as a way to deal with uncertainty. They are used as input in a scheduling problem that defines the extraction and processing times for each block, incorporating other constraints such as maximum tonnage capacities per period, discounted cash flow over different periods, and other operational constraints. The idea behind nested pits approaches is that smaller pits (obtained using smaller revenue factors) are more profitable because they have a positive value, even if the ore grades (or mineral prices) are multiplied by these small factors. Finally, the interplay between revenue and discount factors can be interpreted as a way of risk aversion from the decision maker's perspective. Parts of the mine that remain financially attractive even after being penalized by a revenue factor should be extracted first to avoid further devaluation by the discount factor.
In the last decade, several papers have questioned the use of nested pits for mine planing and production scheduling, replacing it by direct block scheduling of the problem (see [19] for a more detailed description of the state-of-theart developments in this area). Nevertheless, the idea of nested pits is still broadly used due to its simplicity and practicality of having a sequence of pits as guidance for the successive steps of the mine planning process.
A key contribution of our work is to propose an adequate risk measure ρ α for mining problems and to be able to solve problems (2.3)-(2.4) efficiently. Given that we incorporate ore uncertainty, we want to derive conditions under which we can replicate the well-known idea of nested pits but consider different risk levels by varying the parameter α to obtain these pits instead of using revenue factors.

Defining risk under ore grade uncertainty
For the remainder of this paper, we focus on ore grade uncertainty. Nevertheless, most of the results presented can be easily extended to other sources of uncertainty. To select the appropriate risk measure for the UP problem, we need to define which we believe are the desirable characteristics of the pits generated by a given risk measure ρ α when we vary the parameter α.
As previously discussed, our intention is to study risk measures that provide nested pits with different risk aversion levels; that is, more conservative pits must be contained in riskier pits. The main justification for this property comes from the practical interpretation of the nested pits. Nested pits are widely used as a basis for the design of phases. In deterministic or risk-neutral settings, more profitable pits must be extracted earlier due to the discount factor of future cash flows of the mine. In a risk-averse context, a set of nested pits with an ordered level of risks can be used in the same way, providing a guideline on how to sequentially exploit the mine, from safer to riskier pits. If considering different risk levels provides different unrelated or unnested pits, then the intuition on how to exploit the deposit is unclear.
Our proposed definition of the risk nestedness property is as follows: Definition 1 Assume that the level of risk aversion of the decision maker rises when the value of α ∈ R increases and that the ore grades are independently distributed. A risk measure ρ α is risk nested for the UP problem if for α 1 > α 2 the set of extracted blocks in the optimal solution of problem (2.3) obtained by using ρ α1 is contained in the set of extracted blocks obtained using ρ α2 .
Please note that ore grade independence between blocks is not a realistic assumption in a mining context. In contrast, geostatistical models for ore grades consider dependence between blocks that are physically close. However, we assume this independence to provide formal mathematical proofs of results that as we will see in the computational experiments, are also observed for realistic dependent distributions of the ore grades.
A second desirable property is related to the consistency of extracting decisions. Decisions over a set of blocks should not depend on the uncertainty of independent elements within the mine. More precisely, assuming independence of the ore grade distributions, if a pit U is riskier than other pit U and we add to both pits a completely unrelated block b / ∈ U U , then it is desirable that pit U {b} is still riskier than pit U {b}. This property is known as the additive consistency property of a risk measure and can be defined as follows: Definition 2 Let X, Y and Z be random variables, where Z is independent of both X and Y , and ρ α (·) be a risk measure where α is the risk level of the decision maker. If ρ α (X) < ρ α (Y ) and ρ is additive consistent, then We suggest these two properties as desired for a given risk measure. In the next subsection, we discuss about different risk measures in the literature, and we study whether they satisfy these desired properties.

Study of some risk measures for the stochastic UP problem
In the last 20 years, risk measures have been extensively studied, and their theoretical properties are well established. Motivated by applications in energy, finance, reliability, among others, several risk measures have been used in realworld problems, each of which has specific properties. One of the most popular in the optimization literature is the conditional value-at-risk (CVaR). Despite its popularity in finance and energy problems, we present somewhat surprising results that show that the CVaR does not satisfy risk nestedness or additive consistency.
In [6], the authors proved that the only risk measure that is additive consistent is the entropic risk measure. Motivated by that result, we study this risk measure and discuss its suitability for the risk-averse UP problem.

The CVaR risk measure
The CVaR is a commonly used risk measure due to its tractability. Following [22], the CVaR can be defined as where X is a random variable, (·) + is the positive part function, and α ∈ [0, 1[ is the risk level. A value of α = 0 corresponds to the risk-neutral case (the expected value), and as α approaches one, the risk measure protects against the worst-case realization of X.
CVaR has been previously used as a risk measure for the UP problem in [1] and [16]. However, the next proposition shows that it may not be the ideal risk measure for stochastic UP problems under our requirements.
Proposition 1 The CVaR risk measure is not risk-nested for the UP problem.
Proof. We will prove that the CVaR is not risk-nested with a counterexample: let B bet the set of blocks containing only three blocks b X , b Y and b Z , and assume that to extract block b X or b Y , we must extract block b Z (i.e. b Z is a precedence of b X and b Y ).
We remark that if a random variable W is normally distributed with mean µ and variance σ 2 (W ∼ N (µ, σ 2 )), then where z 1−α is the (1 − α)-quantile of the standard normal distribution. Let the ore grade of the three blocks be independent and normally distributed, resulting in a final profit distribution given by the random variables X ∼ N (−2, 18), Y ∼ N (1, 0) and Z ∼ N (−4, 10). α

Combination of blocks
Profit  Table 1 shows the results of computing the CVaR using formula (3.6) for different values of α and for different combinations of valid pits. It can be seen that with α = 0.1, the optimal solution is to extract b Y and b Z , but reducing the risk aversion level to α = 0.05, it is optimal to extract blocks b X and b Z , which are not contained in the previous solution. This example shows that the CVaR is not risk nested.

The entropic risk measure
Let X be a random variable. The entropic risk measure of X at level α is defined as If α > 0, then the decision maker is risk-averse, α < 0 means risk-seeker, and α = 0 corresponds to the risk-neutral (expected value) case. We will focus on nonnegative values of α.
The entropic risk measure (ρ Ent ) satisfies additive consistency [6], and it is a convex function, making it suitable for optimization problems. However, it is not a coherent risk measure [2,6]. We claim that ρ Ent is a viable risk measure for the stochastic UP problem since it also satisfies the risk nestedness property: Proposition 2 The entropic risk measure is risk-nested for the UP problem.

Lemma 2
The entropic risk measure is translation invariant; that is, if X is a random variable and a ≥ 0, then ρ Ent α (X + a) = ρ Ent α (X) + a.
We have The proofs of Lemma 1 and Lemma 2 are presented in Appendix A, and for the proof of Lemma 3, we refer the reader to [6].
Proof of Proposition 2. Letg b be the random variable of the ore grade for each block b ∈ B, assume they are independently distributed, and let α 1 , α 2 ∈ R be two risk levels where 0 < α 2 < α 1 < ∞. Let U 1 and U 2 be the resulting pits obtained by solving (2.3) using the entropic risk measure ρ Ent α1 and ρ Ent α2 , respectively. We assume that U 1 and U 2 are minimal solutions for these problems.
By Lemma 2, we know that the objective function of problem (2.3) can also be written as ρ Ent α ( b∈B c e b + x e b + Q(x e ,g, r)). To simplify the notation, we denote by ρ Ent α (U ) the value of this objective function when evaluated on the indicator vector of U (that is, x e b = 1 if and only if b ∈ U ). By contradiction, assume that U 1 U 2 . Since extracting an empty pit is a feasible solution for the UP problem and ρ Ent α (∅) = 0 for any α > 0, we know that ρ Ent α1 (U 1 ) < 0. Furthermore, since U 1 ∪ U 2 is also a valid pit (but not optimal) for the UP problem with risk measure ρ Ent α1 , Lemma 3 and the minimality of U 1 implies that ρ Ent α1 (U 1 \U 2 ) < 0. By Lemma 1, since α 2 < α 1 , then ρ Ent α2 (U 1 \U 2 ) ≤ ρ Ent α1 (U 1 \U 2 ) < 0. However, since U 2 ∪ (U 1 \U 2 ) is also a feasible solution for the UP problem, by Lemma 3, we have that which is a contradiction of the optimality of U 2 , completing the proof.
These results show that the entropic risk measure is a good candidate to be utilized for solving the stochastic UP problem. In the next section, we will exemplify our approach using different configurations of uncertainty in the ore grade of the blocks of a mine, and compare the pits obtained to the classical nested pits approach.

Computational results
We present two sets of results. First, we consider a small-sized mine that was designed to illustrate the properties and methodologies that we propose in this paper. The second mine is a real-life instance with a large number of blocks to test the applicability of our methodology in a more realistic environment.
We provide a comparison of the results using different risk measures and discuss the practical implications and managerial insights of the pits obtained with each method. We implemented all models in Python 3.7.2 using Gurobi 8.1 as a solver for the resulting optimization problems. All computations were performed on an Intel(R) i7 CPU 7700HQ @ 2.80 GHz and 12 GB of memory using Windows 10.

Mine description and parameters of the problem
We will study a mine with 66 blocks in a two-dimensional configuration, whose topology is described in Figure 3. The precedences are as follows: if a block is to be extracted, then the blocks on the top, right and left of the block on top must be extracted, emulating a 45-degree slope angle (see block b in Figure 3). We assume that only a set B of blocks (indicated as blue blocks in the figure) can be extracted. In this simple example, to avoid approximations of the distribution and simplify the computations, we assume that the ore gradeg follows a multivariate normal distribution N (µ, Σ), where µ is the vector of mean values and Σ is the variance-covariance matrix. In this case, it can be proven that problem (2.3) for the entropic risk measure can be formulated as a mixed integer program with a convex quadratic objective function (see Appendix A.3), which can be solved by most modern optimization solvers.
The resulting equivalent formulation of the UP problem with ρ Ent is given by where X EP is the same feasible set of solutions for problem (2.3).
The grade distributiong of the blocks is illustrated in Figure 4: all blue blocks are waste, with constant grade equal to zero, and the yellow block has a constant grade of 3. The grades of the red blocks follow a multivariate normal distribution, with means (µ 1 , µ 2 , µ 3 , µ 4 ) = (4,4,5,6), from top to bottom, a variance Σ i,i = µ 2 i and covariances Σ i,j = 0.2 · µ i · µ j for all pairs (i, j). The remaining parameters of the problem are c e b = 0.5, c p b = 0 and r b = 1 for all b ∈ B.  Figure 5a. We recall that α = 0 represents the risk neutral case, that is, maximizing the expected profit of the pit. It can be seen that in the risk-neutral case the whole mine is extracted. If we increase the risk-aversion level α, then the optimal UP becomes smaller and contained in the previous UP. Under high levels of risk aversion (α = 0.2) the pit only includes the four top-leftmost red blocks because this pit has a positive profit and zero variance, so there is no risk.

Results for the stochastic UP using ρ Ent
It is interesting to note the evolution of the pits when we multiply the parameter Σ by some positive constant: as variability grows, the optimal pit configuration changes for the same values of α. Subfigures 5b and 5c show the evolution of the pits when we multiply the covariance matrix Σ by 2 and 10, respectively. Note that if some numbers within the blocks are missing, it is because the pit is the same as the solution obtained by using a higher value of α, i.e., in Figure 5b the optimal solutions using α = 0.1 and α = 0.2 are the same. In Figure 5c we see that for any value of α ≥ 0.02, all pits obtained extract the yellow block from Figure 4 and avoid the red blocks.

Results for the classical nested pit approach
As a comparison, the same analysis can be performed using classical nested pit methodology, namely, solving problem (2.2) for different revenue factors β. Note that this methodology assumes a deterministic grade for each block, so we use the mean values µ as the ore grade of the random red blocks. Figure 6 shows some nested pits obtained for different ranges of revenue factors β as follows: Fig. 6: Classical nested pits for the small mine.
As expected, it can be seen that using revenue factor β = 1.0, we obtain the same pit as in the risk-neutral when the red block is random. Interestingly, the resulting nested pits for other values of β do not consider extracting the less riskier pit on the upper left corner (those with the number 5 in Figure 5). In contrast, for smaller revenue factors (β < 0.6), the optimal solution is to not extract any blocks.
Note that this methodology does not consider the variance of the grades, so we will obtain the same optimal pits even in scenarios of high uncertainty. The classical nested pit approach is not designed for dealing with geological uncertainty, and given its invariance with respect to higher variability levels, it should not be used for this purpose. As we show in Figure 6, under grade uncertainty, the risk-free profitable pit could not be detected by the nested pit approach, a pit that ρ Ent was able to identify.
We can clearly see how variability becomes an important factor with the ρ Ent approach and how it is controlled by the choice of α: conservative values aim for smaller but less variable expected profits. We also remark that similar to revenue factors for the classical nested pits, considering a very high level of risk aversion results in not extracting any block (or only a set of blocks that provides a positive revenue for any realization of its grade values). On the other extreme, a zero risk level is equivalent to the risk-neutral case, resulting in the classical ultimate pit problem. The entropic risk measure can be of practical use in the mine planning community especially due to its risk nestedness property, providing a potential alternative way for defining phases when the ore grade uncertainty is relevant for the problem. By inspecting the resulting nested pits, decision makers with different levels of risk aversion can define the mine contour that is more suitable to their risk tolerance. Since the risk-averse approach takes into account uncertainty in the ore grades, pits obtained for values of β close to zero, as shown in Figure 2 might be left unexplored.

Andina case
The Andina is a copper mine that belongs to Codelco, Chile's state-owned company that controls approximately 20% of global reserves of copper. It is located in Rio Blanco (approximately 80 km NE of Santiago) and is still active after 82 years. We will work with a sector of the mine represented by 26,400 blocks from the Sur-Sur open pit. The ore grade distribution is approximated by scenarios generated from a set of drilling holes via conditional simulations using the turning bands algorithm [10].
Since this mine does not follow a multivariate normal distribution of ore grades we cannot use the closed-form quadratic formulation (4.7). We attempted to solve the problem directly using nonlinear optimization solvers (MINOS) to check if we could handle the real mine with its 26,400 blocks. The solver was not able to close an optimality gap of 99.9% after 5 hours running, even after reblocking the mine into less than 100 blocks. In summary, it is hopeless to try to attack the problem directly.
The presence of integer variables and the nonlinearity of function ρ Ent turns the risk-averse UP problem into an extremely challenging problem to solve for larger mines. However, given the convexity of the exponential function, we can use a piecewise linear approximation of the objective function. To accomplish this, we modify the objective function of (2.3) due to the translation invariance of ρ Ent (please refer to Lemma 2) and the monotonicity of the log function. All necessary proofs and final model that approximate the value of problem (2.3) using ρ Ent can be found in Appendix C.

Results
Given the computational cost of solving this problem with a large number of scenarios, we use 20 ore grade scenarios to solve the problem. Using more scenarios would lead to larger solving times, which requires specialized optimization techniques to solve the resulting model, and goes beyond the scope of this paper. Nevertheless, using this number of scenarios is not uncommon in the stochastic mine planning literature [7,17].
Our piecewise linear approximation was designed to be a uniform grid between integers -20 and 20 with steps of 0.01 (4,000 steps in total) because Gurobi treats values below 10 −8 as 0 and exp(−20) ≈ 2.06 · 10 −9 . We also computed a scaling factor and changed the NumericFocus parameter of Gurobi to its maximum value. With those changes, we gained more processing power in the numerical calculations and avoided numerical issues given the small numbers that will be used by our model. We use the mean absolute deviation (MAD) to check the performance of our approximation.
We denote by NP the resulting pits obtained by the nested pit methodology. To correctly approximate the true value of each solution, we evaluate the total profit of the resulting ultimate pit on a different out-of-sample set of 100 scenarios. This gives us a set of 100 values for each solution. We also compare these values with the lower bound (LB) obtained by solving problem (2.2) by fixing g b to each scenario. LB will have a different pit and a negative profit per scenario, serving as a benchmark to the best possible result. Additionally, we present the coefficient of variation (CV), which is the ratio between the standard deviation and the average of the profits. Table 2 shows the results for NP while changing the value of β. If β ≥ 0.7, then the solutions obtained have less than 100 blocks extracted, and for β ≥ 0.9, no blocks are extracted, and we omit the results. A similar behavior was observed in the small mine example in Section 4.1: conservative values of β will avoid extraction altogether. However, as risk averseness grows, the CV becomes larger (6.9% on average).     Figure 7 shows a boxplot of the negative cost (therefore profits) distribution obtained by ρ Ent , NP and LB. From a practical viewpoint we can see a higher dispersion of profits among different values of β and that NP with β equal to zero has a significant profit gap with respect to the lower bound (as noticed in [20]). The situation is different for the entropic: there is less dispersion among the different choices of the risk aversion level α, and a higher percentage of the maximum profit can be captured by α values closer to zero. Figure 8 shows a cross-sectional view of the pit, where we can observe the differences in the optimal solutions of ρ Ent and NP. We used α = 10 and β = 0.03 to obtain pits with a similar number of blocks extracted (14,810 in ρ Ent versus 14,983 in NP). We can see that both models aim for different sections of the mine. In fact, NP extracts the block at the bottom of the central zone, which has a positive profit but with a high uncertainty. In contrast, ρ Ent   The importance of these results is the effective application of an approximation method to prove ρ Ent as a viable tool for risk aversion in real life instances of mining optimization problems. In fact, these techniques are compatible with the current methodologies to solve large-scale instances of open-pit mine planning problems [19]. The error obtained in the approximation to the real value of the exponential function is of order O(10 −5 ), which was within our acceptance tolerance, and Gurobi was able to solve the approximate formulation in an average time of under 5 minutes for all the values of α.

Conclusions
In this paper, we formulate and discuss how to solve a risk-averse version of the UP problem under geological uncertainty. By considering the block model, we incorporate ore-grade uncertainty and discuss the most appropriate riskmeasure properties for the problem, especially if we are interested in replicating the use of nested pits for mine planning. We propose two properties we believe a risk measure should satisfy in this context: risk nestedness and additive consistency. Risk nestedness is a desirable property since modern mine scheduling algorithms use the idea of nested pits as an input for generating a sequence of block extractions over time. Additive consistency is also an intuitive property in the sense that it preserves preferences in the presence of independent waste blocks. An interesting consequence of our work is that one of the most popular risk measures, the conditional value-at-risk, fails to satisfy both properties even in the case of blocks with independent distribution, calling into question its use in mining.
In a small simulated mine, we contrast the results obtained using the revenue factor to obtain nested pits and the proposed entropic risk measure methodology. The former behaves as expected: we obtain different pits that vary from mining everything up to avoid working on the mine altogether in the most conservative cases. The proposed approach shows a different behavior: we obtain smoother pit transitions as we vary the level of risk aversion, with a focus on avoiding variance within the results. By generating higher variability scenarios in the entropic risk approach, we obtain smaller pits than low variability cases for the same value of α.
We apply our method to a real-life mine (Andina in Chile) with more than 25,000 blocks, which is challenging to solve directly. The entropic risk measure adds nonlinearity to the problem, which in most cases would make the problem intractable. We apply a linear approximation to efficiently solve the risk averse problem with the entropic risk measure, and our results show that the approximation errors were within tolerable margins, validating the linear approximation scheme. The pits generated by the entropic risk measure are completely different from those using revenue factors, and different choices of the risk parameter α allow us to obtain better profits when compared to revenue factors.
Future work includes extensions to our numerical algorithm to be able to cope with larger mines with millions of blocks and the study of dynamic risk-averse models for mine scheduling problems.

A.1 Proof of Lemma 1
Proof. We will show that the objective function of (2.3) increases monotonically with α > 0 (since α = 0 is the expected value case and a < 0 is the risk seeking case). Let us define f (X, α) as follows: where X is a random variable. Now, let us study the behavior of the first partial derivative over α: Let Y = e αX ; then, Since 1 α 2 > 0 and E[Y ] = E[e αX ] > 0, we just need to study the sign of the numerator in the partial derivative. Let h(Y ) = Y log Y ; then, Finally, since h(Y ) is a convex function ( where X EP is the same feasible set of solutions for problem (2.3).
As (2.4)'s objective is to minimize the negative profit of processing the blocks giveng, then the decision can be stated as follows: Moreover, the expression c e b − E[(r bg ω b − c p b ) + ] can assume exactly the same three previously described options. Since we can precompute the value of E[(c p b − r b g ω b ) + ], ∀b ∈ B, we can eliminate the use of a second set of variables. If x b = 1 in (2.2), then it means that the block must be extracted, whether it is waste or is going to be processed.

C Entropic risk objective function linearization
The risk-averse UP problem can be written as min x e ,x p,ω ∈X EP Ω where Ω is the domain of the random variable g b and We will use two auxiliary variables-vω and zω-where ω∈Ω vω ≥ 1 N ω∈Ω exp(zω).
The strategy here is to use an approximation of the exponential function for each term in the sum of the objective function in (C.8), using the auxiliary variable vω. Problem (C.8) is equivalent to the following problem: UPe := min (C.9) The nonlinear constraint of (C.9) will be replaced by a piecewise linear approximation, detailed in the work of [21], for each constraint represented by zω. For differentiable convex functions (such as f (x) = exp(x)), we can use a lower approximation using the gradient at a given point t i : f (x)−f (t i ) ≥ ∇f (t)(x−tt). We will select a set of K points U := {t 1 , . . . , t K } to calculate the value of ∇f (i) ∀i ∈ U and approximate the exponential function using linear functions as shown in Figure 9.
Using this in (C.9), we obtain the following constraints: vω ≥ exp(uω − t i ) + exp(t i ) ∀ω, i ∈ Ω × U, which in turn can be used to construct our approximated problem: (C.10)