Maximum Inscribed and Minimum Enclosing Tropical Balls of Tropical Polytopes and Applications to Volume Estimation and Uniform Sampling
Abstract
We consider a minimum enclosing and maximum inscribed tropical balls for any given tropical polytope over the tropical projective torus in terms of the tropical metric with the max-plus algebra. We show that we can obtain such tropical balls via linear programming. Then we apply minimum enclosing and maximum inscribed tropical balls of any given tropical polytope to estimate the volume of and sample uniformly from the tropical polytope.
1 Introduction
Tropical polytopes [30, 23] are gaining popularity as a tropical counterpart of classical polytopes. It is expected that tropical convex geometry has potential to solve many problems [36, 39, 32, 37, 38], just as classical convex geometry has many applications. In fact, tropical polytopes over the tropical projective space have been studied thoroughly (for examples, see [30, 23, 35] and references within) and have been applied in many areas, such as statistics, optimization, and phylogenomics [30, 36, 39, 32, 35, 11].
In polyhedral geometry, the minimum enclosing ball (or sphere) of a given polytope is the smallest ball in terms of the Euclidean metric, -norm, containing the given polytope. The maximum inscribed ball of a polytope is the largest ball in terms of -norm that is contained in the polytope. Computing the minimum enclosing ball and maximum inscribed ball of a polytope is a challenging problem [26, 31]. The maximum inscribed ball of a given polytope is closely related to the interior point method for linear programming, and both the minimum enclosing ball and the maximum inscribed ball of a given polytope have been applied to solving linear programming problems [31], to computing support vector machines [7, 8], and to estimate the volume of polytopes [22].
In this paper, we consider tropical balls in terms of the tropical metric over the tropical projective torus with the max-plus algebra. A tropical ball , which is formally defined in Definition 3.2, with the radius at the center is defined as the set of all points over the tropical projective torus with the tropical metric defined in Definition 2.4 from less than or equal to . Put simply, a tropical ball is equivalent to a ball over an Euclidean space by replacing the -norm with the tropical metric . A tropical polytope over the tropical projective torus is the smallest tropically convex set of finitely many points from the tropical projective torus. This is an analogue of a classical polytope over an Euclidean space, which is the smallest convex set of finitely many points in the Euclidean space. Similar to a minimum enclosing ball and maximum inscribed ball of a classical polytope, a minimum enclosing tropical ball of a tropical polytope is the smallest tropical ball containing the tropical polytope and a maximum inscribed tropical ball of a tropical polytope is the largest tropical ball contained in the given tropical polytope. In this paper we show that the linear programming problem formulated in (5)-(9) below provides the center, , and the radius, , of the maximum inscribed tropical ball and the linear programming problem formulated in (14)-(16) below provides the center, , and the radius, , of the minimum enclosing tropical ball of a given tropical polytope in the tropical projective torus.
It is hard to compute the volume of a polytope. In general, a tropical polytope does not have to be classically convex in terms of the Euclidean metric and it can have some components which are of lower dimension than the tropical projective torus [23] as shown in Figure 1.

Therefore, computing the Euclidean volume of a tropical polytope over the tropical projective torus is #-P hard and even estimating the approximate volume of a tropical polytope is NP-hard in general [19]. In a Euclidean space, counting the number of lattice points in a classical polytope and computing the volume of the polytope are strongly related by Ehrhart theory [13], and are #-P hard problems even though an input polytope is described by an oracle [15]. As a specific case, Brandenburg et al. [5] apply tools from toric geometry to compute multivariate versions of volume, Ehrhart and -polynomials of lattice polytropes, which are tropically and classically convex sets of finitely many lattice points.
In Euclidean space, Cousins and Vempala [10] apply a minimum enclosing ball and Gaussian distributions to estimating the volume of a classical polytope via simulated annealing sampling. In this paper we develop a novel method to estimate the Euclidean volume of a tropical polytope over the tropical projective torus with the max-plus algebra using the minimum enclosing tropical ball of a tropical polytope, and a Hit-and-Run (HAR) sampler proposed by Yoshida, et al. [38]. We note that the ratio of the volume of a minimum enclosing tropical ball and the volume of a maximum inscribed tropical ball of a tropical polytope is an approximation of an acceptance rate of a sampler and in general this ratio can be very small. Therefore, it is still difficult to estimate the volume of a tropical polytope in general.
Sampling from a tropical polytope itself is an important issue. Yoshida et al. [38] propose a HAR sampler using the tropical line segment with the tropical metric to sample from a tropically convex set. They showed that their HAR sampler with the tropical metric can sample uniformly from a polytrope, so that using a decomposition of a tropical polytope into a set of tropical simplicies, which are polytropes, described in [24], one can sample uniformly from a tropical polytope. However, they have not described explicitly how to sample uniformly from a tropical polytope in general and they do not implement their proposed method explicitly. Thus, in this paper, we apply a minimum enclosing tropical ball of a tropical polytope combined with a HAR sampler using the tropical metric to sample uniformly from a tropical polytope in general.
This paper is organized as follows: Section 2 provides basics of tropical geometry. In section 3, we illustrate how to find the maximum inscribed and minimum enclosing tropical balls for a given tropical polytope. We remind readers how to construct the hyperplane, or , of a tropical polytope with a given vertex set described in [5]. Using the , we show how to compute the maximum inscribed tropical ball using linear programming. Next, we describe how we can, again, use linear programming to construct the minimum enclosing tropical ball. In section 4, we show how, by sampling from the minimum enclosing tropical ball using the HAR method described in [38] we can obtain a volume estimate of the tropical polytope, . In addition, we show that if is defined by vertices, methods exist to identify the union of full-dimensional cells, or (e-1)-trunk (Definition 2.16), of a tropical polytope, reducing the radius of the minimum enclosing tropical ball and therefore the number of sample points necessary to obtain a volume estimate of . In section 5, we show that sampling from the minimum enclosing tropical ball and enumerating the tropical simplices defining the defining of the tropical polytope allows uniform sampling of the -trunk of any tropical polytope.
All computational experiments were conducted with R, statistical computational tool. The R code used for this paper is available at https://github.com/barnhilldave/Tropical-Balls.git.
2 Tropical Basics
Throughout this paper, we consider the tropical projective torus , where
is the vector of all ones. This means that we have
for any and for any vector . For more details, see [30] and [23].
Definition 2.1 (Tropical Arithmetic Operations).
Under the tropical semiring with the max-plus algebra , we have the tropical arithmetic operations of addition and multiplication defined as:
Note that is the identity element under addition and is the identity element under multiplication over this semiring.
On the other hand, under the tropical semiring with the min-plus algebra , we have the tropical arithmetic operations of addition and multiplication defined as:
Definition 2.2 (Tropical Scalar Multiplication and Vector Addition).
For any and for any , we have tropical scalar multiplication and tropical vector addition defined as:
Definition 2.3 (Tropical Matrix Operations).
Suppose we have two -dimensional matrices and an -dimensional matrix with entries in . Then we can define the tropical matrix operations and in analogy with the ordinary matrix operations. Specifically, we have
Definition 2.4 (Generalized Hilbert Projective Metric).
For any points where , the tropical distance (also known as tropical metric) between and is defined as:
Definition 2.5 (Tropical Polytopes).
Suppose we have . If
for any and for any , then is called tropically convex. Suppose . The smallest tropically convex subset containing is called the tropical convex hull or tropical polytope of which can be written as the set of all tropical linear combinations of
The smallest subset such that
is called a minimum set or a generating set with being the cardinality of . For the boundary of is denoted .
We call a max-tropical polytope if a tropical polytope is defined in terms of the max-plus algebra and we call a min-tropical polytope if a tropical polytope is defined in terms of the min-plus algebra.
Definition 2.6 (Polytropes (See [24])).
A classically convex tropical polytope is called a polytrope.
Definition 2.7 (Covector Decomposition (From [11] and [29])).
A tropical polytope may be decomposed into a polyhedral complex of polytropes known as a covector decomposition of , denoted as .
Definition 2.8 (Dimension of a Tropical Polytope).
The dimension of a tropical polytope, , is defined by the polytrope of maximal dimension in and is denoted as .
Next we remind the reader of the definition of a projection in terms of the tropical metric onto a tropical polytope. The tropical projection formula can be found as Formula 5.2.3 in [30].
Definition 2.9 (Projections of Tropical Points).
Let and let be a tropical polytope with its vertex set . For , let
(1) |
Then
for all and . In other words, is the projection of in terms of the tropical metric onto the tropical polytope .
The following definitions describe the relationship between tropical hyperplanes and tropical polytopes. Specifically, they illustrate the connection between max-tropical polytopes and min-tropical hyperplanes.
Definition 2.10 (Tropical Hyperplane from [39]).
For any , the max-tropical hyperplane defined by , denoted as , is the set of points such that
(2) |
is attained at least twice. Similarly, a min-tropical hyperplane denoted as , is the set of points such that
(3) |
is attained twice. If it is clear from a content, we simply denote as a tropical hyperplane in terms of the min-plus or max-plus algebra where is the normal vector of .
Definition 2.11 (Sectors from [39]).
Every tropical hyperplane, , divides the tropical projective torus, into connected components, which are open sectors
These closed sectors are defined as
Definition 2.12 (Tropical Hyperplane Arrangements).
For a given set of points, , tropical hyperplanes with apices at each represent the tropical hyperplane arrangement of , , where
If we consider a collection of tropical hyperplanes defined in terms of the max-plus algebra, we call this arrangement a max-tropical hyperplane arrangement denoted . Likewise, considering tropical hyperplanes defined in terms of the min-plus algebra is called a min-tropical hyperplane arrangement denoted .
Definition 2.13 (Cells).
For a given hyperplane arrangement, , a cell is defined as the intersection of a finite number of closed sectors. Cells may be bounded or unbounded. Bounded cells are polytropes.
Definition 2.14 (Bounded Subcomplex (See [11])).
For a vertex set, , defines a collection of bounded and unbounded cells which is known as a cell decomposition. The union of bounded cells defines the bounded subcomplex, .
Theorem 2.15 (Theorem 2.2 in [12]).
A -tropical polytope, , is the union of cells in of the cell decomposition of the tropical projective torus induced by .
Theorem 2.15 describes a as a collection of bounded cells induced by . Definition 2.7 describes in terms of a union of polytropes. The bounded cells induced by are these polytropes. Therefore, the union of the polytropes in defines . Throughout this paper we are interested in sampling the union of -dimensional polytropes belonging to . The union of -dimensional polytropes is described in the following definition.
Definition 2.16 (i-trunk and i-tentacles (Definition 2.1 in [29])).
Let be a tropical polytope and let where . Let be the family of relatively open tropical polytopes in . For any , is called an i-tentacle element of if it is not contained in the closure of any -dimensional tropical polytope in where the dimension of less than or equal to . The i-trunk of , is defined as
where is the dimension of . The represents the portion of the with -tentacles removed. The minimum enclosing ball containing containing only is denoted .
Remark 2.17 (Proposition 2.3 in [5]).
The of a tropical polytope, is a tropical polytope.
Example 2.18.
Consider the tropical polytope, . The is the gray portion shown in Figure 2.
All methods described in this paper involve sampling from the of a tropical polytope . However, tropical polytopes can exist without a as shown by Joswig et al. (See Figure 1 (left) in [24]). Therefore, all tropical polytopes considered in this research are assumed to contain a .
3 Using Optimization to Find Maximum Inscribed and Minimum Enclosing Tropical Balls
In this section we illustrate how to find the hyperplane-representation of a tropical simplex , in order to compute the maximum incscribed ball of . We then show how to calculate the minimum enclosing ball of any tropical polytope , using a linear programming formulation. Tropical simplices and tropical balls will be leveraged throughout this paper thus we offer the following definitions.
Definition 3.1 (Tropical Simplex).
A tropical simplex is a tropical polytope that possess a minimum vertex, or generating, set such that . A tropical simplex is denoted .
Definition 3.2 (Tropical Ball).
A tropical ball, , around with a radius is defined as follows:
For a tropical polytope, , the minimum enclosing ball, denoted as , is the tropical ball of smallest radius that fully contains . For the same , the tropical ball with maximum radius , that is fully contained in is called the maximum inscribed ball and is denoted .
3.1 Hyperplane Representation of Tropical Polytopes with the Max-Plus Algebra
Brandenburg et al. in [5] show that the hyperplane-representation of a polytrope , denoted as , can be constructed from an associated Kleene Star weight matrix, . This is shown in the following definition and extends it to any .
Definition 3.3 (Hyperplane Representation of a Tropical Simplex (See Proposition 2.14 in [5])).
For a tropical simplex that is a polytrope, , may be defined by the intersection of a collection of classical half-spaces. These half-spaces are constructed using a Kleene Star weight matrix, , where each is the -th entry in . The half-spaces defining are constructed as follows
(4) |
We denote this intersection of half-spaces as . By contrast, the vertex representation of using a vertex set, , is denoted as . For a tropical simplex, , that is not classically convex, the only defines the -trunk of (See Definition 2.16).
For any weight matrix associated with a complete graph of nodes with no positive cycles, represents the weight from node to with the diagonal being all zeroes. The weight matrix, , can be constructed by taking the -th tropical power of . that is, with each being the maximal path from node to node [4, 34]. From the new matrix , we can obtain using (4) [5].
In this paper we start with a vertex set, , defining a tropical simplex, and where we assume that is a minimum vertex set. Using we then construct . By Proposition 2.14 in [5], there is a correspondence between the and the points in .
To build , we must first calculate the tropical determinant of a matrix , using Definition 3.4, where column vectors, , are tropical points .
Definition 3.4 (Tropical Determinant).
Let be a positive integer. For any squared tropical matrix of size with entries in , the tropical determinant of is defined as:
where is all the permutations of , and denotes the -th entry of A. The tropical matrix is singular if:
-
1.
A is non-square;
-
2.
the ; or
-
3.
at least two permutations achieve the maximum .
For a square matrix, it is equivalent to saying the row or column vectors lie in a tropical hyperplane (see Proposition 3.4 in [23]).
Finding can be reduced to evaluating a linear assignment problem where tasks are assigned to workers to achieve maximum benefit. Each , the th element of the matrix , , represents the benefit gained from assigning task to worker . The provides the permutation that achieves this maximum benefit (See Observation 3.1 in [23]).
After calculating , let be the permutation satisfying as shown in Definition 3.4. The output of Algorithm 1 is an tropical matrix whose diagonal is .
Example 3.5.
Consider the polytrope, . Letting the vertices be the column vectors of a square matrix , we find with where the index of represents the column and the value at that index represents the row index of that column. This tells us that coordinates of the matrix, , contributing to are , , and . Reordering the columns from smallest row index to largest yields the new matrix, , as follows,
The final step to find is to add to each element of the column, for . The result of this operations finalizes the construction of . Once is constructed, we can extract using (4). To illustrate extracting , we use Algorithm 2.
Example 3.6 (Example 3.5 cont’d).
Continuing with the polytrope, , from the previous example we move to the next step to construct the . After finding the and reordering the columns to form the new matrix, , is added to each element of the column vector to construct . The result follows,
The , as described in (4), is shown below
Figure 3 shows the directed graph and polytrope defined by . The directed graph represents the maximum distance between any two nodes as determined by .
While [5] specifically addresses for polytropes, this method can also be used for any tropical simplex. However, the only defines the , resulting in several redundant constraints.
3.1.1 Maximum Inscribed Balls for Tropical Polytopes
We now illustrate how to use (4) to formulate a linear program to construct the maximum inscribed ball for a tropical simplex denoted as . Like any polytrope, a tropical ball, can be defined as a tropical simplex with a minimum vertex set such that .
Given a point, , representing the center of a , we can obtain vertices in for such that where
Example 3.7.
Let represent the center of a tropical ball, with radius, where . Because is a polytrope, the minimum vertex set, , consists of three vertices, where . Each where , can be represented in terms of and . Specifically,
Figure 4 illustrates the coordinate construction of .
Using the vertices in , we can compute . To determine if falls inside , it suffices to check if the vertices in defining are in the . Therefore, to find , we check that each vertex defining is inside of the tropical polytope with the center point, and the maximum radius, . The linear program shown in (5)-(9) finds by constructing the in terms of its center, , as shown in Figure 4.
(5) | |||||
(6) | |||||
(7) | |||||
(8) | |||||
(9) |
To check if a vertex is inside , we leverage (4). Because the first coordinate is special (i.e., ), we separately consider the constraint in (4) for , or the other cases. Note that inequalities are mostly redundant for the vertices in defining . Therefore only the non-redundant inequality is kept finally in the formulation above.
Notably, the need not to be unique. Results from the following example show that can have a center point, , from to and achieve the desired result.
Example 3.8.
We again consider the tropical simplex, , defined in Example 3.6. The formulation to find is
This results in and radius, . Figure 5 shows .

3.1.2 Maximum Inscribed Balls for General Tropical Polytopes
In the previous section, we focus on computing maximum inscribed balls for tropical simplices. In this section, we show that we can apply the same process and formulation shown in (5)- (9) to any tropical polytopes to find . To do this we focus on the set of tropical simplices in the tropical simplicial complex of , , determined by the combinations of vertices in the minimum vertex set of , with [17].
Definition 3.9 (Tropical Simplicial Complex (See [17])).
Let be a set of points such that , the collection of tropical polytopes defined by all subsets where and a tropical polytope , is known as the tropical simplicial complex, denoted as . We say is pure if all facets in has the same cardinality.
Only tropical polytopes of or more vertices may contain a . Therefore we apply (5)-(9) to each tropical simplex in , denoted , to construct where is the radius of the maximum inscribed ball for . Since , we have . Therefore, for the where is the largest.
Example 3.10 (Borrowed from [29]).
Consider a tropical polytope
. Figure 6 illustrates this tropical polytope.

There are four tropical simplices in , so to compute we must apply (5)-(9) to evaluate each one. Figure 7 shows the four tropical simplices.




In Figure 7, the bottom two tropical simplices will yield the . For brevity we show the for the bottom right tropical simplex and linear program formulation using (5)-(9).
The center point and radius are and , respectively.

This final example illustrates the use of the formulation in (5)-(9) of a tropical simplex which is not a polytrope.
Example 3.11.
Consider a tropical simplex . Let be a matrix representing the points as column vectors. We calculate , and order the columns such that where .
After constructing we add to each element of each column .
This results in the following program:
Solving the above linear program results in a center point, with the radius, . Figure 9 shows and .


3.2 Minimum Enclosing Tropical Balls
Next we illustrate how we can formulate a linear programming problem to find the minimum enclosing ball, , for a tropical polytope . We seek to be the center point of which minimizes for each where , such that . The largest minimized for all is the radius, , of . Comăneci et al. showed in [9], that for any two points, , can be rewritten in the following way:
(10) |
We note that this is equivalent to the following formulation shown in [23],
(11) |
Using the result from (10), we can formulate the following optimization problem for a given to find and of .
(12) | ||||
(13) |
Because we are minimizing a maximum of a set of linear functions, the objective function in (12) may be further manipulated to formulate a linear program to solve for by replacing the maximum function with the variable , representing the radius of . This formulation is shown in (14)-(16) as
(14) | ||||
s.t. | (15) | |||
(16) |
Importantly, need not be in to construct . Because (10) is equivalent to (11), either will result in the similar constraint construction (See Proposition 25 in [28]). To give a lower bound on the radius of , we arrive at the following proposition.
Proposition 3.12.
For a minimum enclosing tropical ball of a tropical polytope , with the radius satisfies the following inequality:
(17) |
where with being the vertex set of .
Proof.
Let be a minimum vertex set for a tropical polytope , where and let be the minimum vertex set where . We are interested in finding the minimum enclosing ball, . Recall that for any
where and . Therefore,
where and . Considering and ,
by definition of a tropical ball where is the radius of the the tropical ball. Therefore, since encompasses ,
∎
Example 3.13.
Consider the tropical polytope, , generated by
in . The maximum pairwise tropical distance between the vertices is
. Therefore, (Figure 10 (left)).
Example 3.14.
Consider the tropical polytope, , generated by
in . The maximum pairwise tropical distance between the vertices is
. Therefore (Figure 10 (right)).
Example 3.15.
Consider the tropical polytope, , generated by
in . The maximum pairwise tropical distance between the vertices is . Therefore (Figure 10 (bottom)).



Employing (14)-(16) in each of the previous examples shows that equality holds when using the result from Proposition 3.12. To show that equality does not always hold in (17), we provide the following example of a tropical polytope in .
Example 3.16.



Knowing the and providess information about which we investigate further in Section 4.
4 Estimating the Volume of a Tropical Polytope
Estimating the volume of classical polytopes has wide application in math and science. As shown in many publications, finding exact volume of any convex body is challenging, especially in higher dimensions [20, 6]. A number of methods have been developed to estimate the volume of classical polytopes to include the use of Ehrhart theory as well as MCMC methods [10, 14]. In this section, we introduce a method to estimate the Euclidean volume of a tropical polytope using a HAR sampler with the tropical metric, an analogue of the method introduced in [10] for classical polytopes.
Remark 4.1.
As shown in [19], computing the volume of a tropical polytope, , is NP-hard (see Theorem 5.5 and Corollary 5.6 in [19]). Further, if a tropical polytope is described by inequalities, calculating is #P-hard [19, Theorem 8.1]. Additionally, we know that there is no polynomial time algorithm to approximate unless [19, Theorem 7.8]. Therefore, in general estimating is a hard problem.
4.1 Volume of a Tropical Ball in Tropical Projective Space
In this section we apply , whose volume can be computed analytically, to the problem of estimating the volume of a given tropical polytope. Ehrhart showed that the volume of a classical polytope can be determined by the leading coefficient of a rational quasi-polynomial for counting the number of lattice points inside of a dilated polytope [14]. Because a tropical ball, , is classically convex, we can calculate by calculating the Ehrhart quasi-polynomial and determine its lead coefficient. Even more helpful is how a tropical ball, , essentially consists of hypercubes where each edge of the hypercube is of length, . This structure allows us to calculate using the following equation:
(18) |
Equation (18) was shown in [19, Corollary 3.3] and provides a straightforward calculation of . Table 1 shows different values of of radius, and , with increasing dimension.
3 | 6 | 48 |
4 | 32 | 256 |
5 | 80 | 1280 |
6 | 192 | 6144 |
10 | 5120 |
4.2 Volume Estimation by Sampling from a Minimum Enclosing Ball
We estimate the volume of a given tropical polytope via sampling points from enclosing and then determining the proportion, , of points that also fall inside of . Multiplying by gives an estimate of . Knowing for any tropical polytope, , provides the bounds of .
Proposition 4.2.
Let be a tropical polytope. Then . Specifically, is an upper bound on .
Proof.
By definition, encloses . Therefore, must be less than or equal to , establishing an upper bound. ∎
Likewise, we can establish a lower bound for any tropical polytope with a . In [19], the authors show the lower bound for a polytrope is the volume of the maximum inscribed ball (See Corollary 3.6). The following proposition is an extension to the general case.
Proposition 4.3.
Let be any tropical polytope containing a where . The contained in provides a lower bound on the volume of . Specifically,
.
Proof.
The , of represents a tropical polytope of dimension [29]. Any tropical polytope, , where contains a . Therefore, of the -trunk, . Therefore,
∎
While Propositions 4.2 and 4.3 provide bounds on , the range between these bounds can be very large.
Next we summarize our volume estimation technique. Given a tropical polytope , calculate . Using the HAR sampler described in A (see Algorithm 7), sample points from . Determine the proportion , of sampled points from that also fall in . Estimate by the following calculation with representing classical multiplication,
(19) |
Algorithm 3 below describes these steps to estimates the volume of by sampling from .
Because Algorithm 3 samples from in order to estimate , sampling more points from will yield better results. Therefore, the number of points to sample is related to relative to . One way to evaluate this relationship is by comparing the ratio between the radii of and which is akin to a similar method described in [10] for classical polytopes. A small ratio suggests that is relatively small compared , requiring more sampled points to obtain a better estimate of leading to the next proposition.
Proposition 4.4.
Given a minimum enclosing ball, , and maximum inscribed ball, , the rate, , of sampled points from falling inside is bounded below by,
(20) |
Proof.
Consider two tropical balls, and , in such that . Recall that and are found using (18). Let,
(21) | ||||
(22) | ||||
(23) |
Therefore we achieve the result. ∎
Proposition 4.2 helps provide insight to the difficulty in estimating using Algorithm 3. Further, as increases, increases as shown in Table 1, for a constant .
Example 4.5.
Consider the tropical polytope, , defined in Example 3.11 and shown in Figure 9. The maximum inscribed ball for has a radius, , indicating that . The minimium enclosing ball of has a radius, , resulting in . Employing Algorithm 3 in this case will involve sampling where a to estimate that has a volume closer to .
Next, we offer some results using Algorithm 3 applied to some of the previously defined tropical polytopes.
Example 4.6 (Example 4.5 cont’d).
Consider the tropical polytope from Example 3.11. has a radius of meaning that . Table 2 shows the volume estimate using Algorithm 3 using increasing sample sizes. Here is the sample size and is the number of sampled points that fall in .
1000 | 0.003 | 1.5 |
---|---|---|
10000 | 0.0049 | 2.45 |
100000 | 0.00529 | 2.645 |
Example 4.7 (Example 3.10, cont’d).
We apply Algorithm 3 to from Example 3.10, varying the number of sampled points taken from the . Recall that for meaning that . Table 3 shows the estimate of and Figure 12 illustrates the point dispersion for and .
1000 | 0.168 | 8.064 |
---|---|---|
10000 | 0.1993 | 9.564 |
100000 | 0.1965 | 9.4392 |


4.3 Rounding a Tropical Polytope
In this section we consider the idea of “rounding” a tropical polytope in order to reduce the sample size needed to estimate . In [10], rounding a classical polytope means applying a linear transformation to the polytope in near-isotropic position. This linear transformation reduces the difference between radii of the Euclidean maximum inscribed ball and the minimum enclosing ball for a classical polytope. This reduces the sample size required to estimate the volume of a given classical polytope [10].
In this section, we propose an analogue of this linear transformation to a tropical polytope . To do so, first, we identify a minimum enclosing tropical ball that only contains denoted as by removing all (e-2)-tentacles of such that only remains. Since , we have where . Therefore, we have
Thus, by removing all (e-2)-tentacles of , the minimum enclosing tropical ball, , has smaller volume, requiring a smaller sample size to estimate .
Here we will focus only on a tropical simplex , that is not a polytrope but possesses a (see Figure 9). For any possessing , is classically convex. For the purposes of this paper, we begin with a vertex representation of denoted as .
Algorithm 4 illustrates how to find . The algorithm involves enumerating pseudo-vertices which is known to be NP-hard for classical polyhedra with its hyperplane-representation [25].
Definition 4.8 (Pseudo-vertex (See [24])).
For a given , a pseudo-vertex of a -tropical polytope , is any point, coincident with the intersection of or more min-tropical hyperplanes.
To enumerate the pseudo-vertices of , we first construct the of . We then apply a double-description algorithm described in [3] and implemented by Fukuda in cddlib [16] where a double-description is defined as follows,
Definition 4.9 (Double Description Methods (See [1])).
A double description method is an algorithm that allows the computation of the vertex representation of a polyhedron that is defined by inequalities.
When using the double-description the is the input. Because the double-description algorithm is used to enumerate the vertices of classical polytopes described in hyperplane-representation, only the pseudo-vertices of the will be enumerated since is classically convex. By then applying (14)- (16) we can construct .
The following example shows how to apply Algorithm 4 to a that is not a polytrope.
Example 4.10 (Example 4.6 cont’d).
Consider the tropical polytope from Example 4.6. Note that this is also a tropical simplex, . The has radius meaning that . Proceeding through Algorithm 4, we get the following set of pseudo-vertices defining the boundary of :
Computing the new minimum enclosing ball, , yields a radius, . This has a volume, . Figure 13 shows the resulting .


Table 4 compares the estimate of before and after rounding.
1000 | 1.5 | 2.752 |
---|---|---|
10000 | 2.45 | 2.512 |
100000 | 2.645 | 2.517 |
5 Sampling from a Union of Tropical Simplices in a Tropical Polytope
In this section, we focus on uniform sampling from that is not classically convex where is a tropical polytope. Our goal is to identify a set of tropical simplices in , such that the union of these tropical simplices define . Then, using Algorithm 7 in A, sample from each tropical simplex according to the proportion of they define. In [38], the authors show that uniform sampling from a polytrope is possible though do not implement the method. This can be extended to any tropical simplex, , that is not contained within a tropical hyperplane (See Lemma 2 in [24]).
Unfortunately, for a that is not classically convex, we cannot apply Algorithm 7 directly due to biased sampling of the boundary of , denoted as . Instead, given a vertex set, defining , where and , we must consider all combinations of vertices in . Each combination defines a tropical simplex, where , which also defines .
Once we enumerate each , we must find a subset of tropical simplices, , such that where and for all . To find , we can use Algorithm 7 to sample from and identify those points of the entire sample, , that fall inside of . The sampled points that fall in we call . We then determine the proportion, , of points in that fall in each . Finally, we say where and .
After identifying and , we then employ Algorithm 7 again and sample each according to its proportion as shown in Algorithm 6.
As an example, we refer back to Figure 6. Note that the vertex set, , defining has a cardinality, . This results in tropical simplices to examine (See Figure 7). In this case, either the pair of tropical simplices on the left of Figure 7 or the right represent sets of tropical simplices that only intersect at their boundary but still define . We will consider the pair of tropical simplices on the right in the following example.
Example 5.1.
Consider the tropical polytope . The tropical polytope, , may be decomposed into the two tropical simplices,
with and with . Using Algorithm 6 and setting the sample size, , we sample and according to the proportions and . Figure 14 shows the results for this example.

Example 5.2.
Consider the tropical polytope
. Here may be decomposed into five tropical simplices. While there is more than one combination of tropical simplices that define , we identify
with and with . Using a sample size of, , we sample and . Figure 15 shows the results for this example.


6 Conclusion
In this paper we show that computing the maximum inscribed and minimum enclosing tropical balls of a tropical polytope can be formulated as linear programming problems and then we applied these tropical balls of a tropical polytope to estimate the volume of and uniform sampling from the tropical polytope over .
Gaubert and Marie MacCaig showed that even estimating the volume of a tropical polytope is NP-hard [19]. The method described here, despite being easily implemented, does not change the difficulty of estimating the volume of a tropical polytope. In addition to the difficulty of volume estimation, Murty and Oskoorouchi showed that for a given classical polytope with the vertex representation, i.e, the polytope as a convex hull of a finitely many set of vertices, and for a given point , computing a radius of the largest ball inscribed in with as the center is NP-hard [31]. Therefore, this leads a following problem:
Problem 6.1.
What is the time complexity of computing the radius and its center of a maximum inscribed tropical ball given a tropical polytope as a tropical convex set of a finitely many points in ?
Similary, Shenmaier proved that for a given classical polytope with the vertex presentation, finding a center and computing a radius of the smallest ball enclosing a polytope is NP-hard [33]. Thus we have the following open problem:
Problem 6.2.
What is the time complexity of computing the radius and its center of a minimum enclosing tropical ball given a tropical polytope as a tropical convex set of a finitely many points in ?
Appendix A Vertex Hit-and-Run Sampling with Extrapolation
In this appendix we describe the MCMC HAR sampler used in Algorithms 3, 5 and 6. The sampler is defined as a Vertex HAR Sampler with Extrapolation algorithm. This type of sampler samples uniformly from the -trunk (see Definition 2.16) of tropical simplices and was originally described in [38]. Specifically, in a tropical simplex in with minimal vertex set , an “extrapolated” point from through a point is defined by the projection to the other vertices or as
(24) |
The authors show that sampling along the line segment , is done so uniformly. However, results showed that sampling was biased because, in general, intersects the boundary of , or , prior to reaching leading to oversampling of .
To avoid biased sampling of , we must detect when , intersects and ignore the portion of that continues on past the initial intersection. This ensures that the line segment from which we sample lies in the interior of preventing oversampling . While one of the end points of this line segment will be , the other will be one of the bend points of .
Definition A.1 (Bend point from [30]).
Given two points , a tropical line segment between denoted as , consists of the concatenation of at most Euclidean line segments. The collection of points , defining each Euclidean line segment are called the bend points of . Including and , consists of at most bend points. To compute the set defining we have the following
(25) |
.
Therefore, using the fact that the boundary of the in a tropical simplex, is the intersection of closed sectors in , we can detect the intersection of , with by successively evaluating the distance from each bend point, , of to each . We compute this distance using Equation (26)
(26) |
which is shown to be true in [18]. If for any , then has been detected. We then can truncate to and sample from using Algorithm 1 from [38]. If is not detected for any , then we use Algorithm 1 from [38] to sample along the entirety of . This leads to Algorithm 7, which randomly subsets into subsets, and and only samples between and the first intersection of with .


Acknowledgement
The authors thank Profs. Michael Joswig and Ngoc Tran for useful conversations and discussions. RY and DB are partially supported from NSF DMS 1916037. KM is partially supported by JSPS KAKENHI Grant Numbers JP18K11485, JP22K19816, JP22H02364.
References
- [1] Xavier Allamigeon, Stéphane Gaubert, and Eric Goubault. The tropical double description method. In Jean-Yves Marion and Thomas Schwentick, editors, 27th International Symposium on Theoretical Aspects of Computer Science - STACS 2010, Proceedings of the 27th Annual Symposium on the Theoretical Aspects of Computer Science, pages 47–58, Nancy, France, March 2010. Inria Nancy Grand Est & Loria.
- [2] David Avis and Komei Fukuda. A pivoting algorithm for convex hulls and vertex enumeration of arrangements and polyhedra. Sym Comput Geometry, 8:98–104, 01 1991.
- [3] David Avis and Komei Fukuda. A pivoting algorithm for convex hulls and vertex enumeration of arrangements and polyhedra. Discrete & Computational Geometry, 8:295–313, 01 1992.
- [4] François Baccelli, Guy Cohen, G.J. Olsder, and Jean-Pierre Quadrat. Synchronization and linearity - an algebra for discrete event systems. The Journal of the Operational Research Society, 45, 01 1994.
- [5] Marie-Charlotte Brandenburg, Sophia Elia, and Leon Zhang. Multivariate volume, ehrhart, and -polynomials of polytropes. J. Symb. Comput., 114(C):209–230, jan 2023.
- [6] Augustin Chevallier, Frédéric Cazals, and Paul Fearnhead. Efficient computation of the volume of a polytope in high-dimensions using piecewise deterministic markov processes, 2022.
- [7] K. L. Clarkson. Coresets, sparse greedy approximation, and the frank-wolfe algorithm. ACM Transactions on Algorithms, 6(4):63, 2010.
- [8] K. L. Clarkson, E. Hazan, and D. P. Woodruff. Sublinear optimization for machine learning. J. ACM, 59(5):23:1–23:49, 2012.
- [9] Andrei Comăneci and Michael Joswig. Tropical medians by transportation, 2022.
- [10] Ben Cousins and Santosh Vempala. A practical volume algorithm. Mathematical Programming Computation, 8:133–160, 10 2016.
- [11] M. Develin and B. Sturmfels. Tropical convexity. Documenta Math., 9:1–27, 2004.
- [12] Anton Dochtermann, Michael Joswig, and Raman Sanyal. Tropical types and associated cellular resolutions. Journal of Algebra, 356(1):304–324, apr 2012.
- [13] E. Ehrhart. Sur les polyèdres rationnels homothétiques á n dimensions. C. R. Acad. Sci. Paris, 254:616–618, 1962.
- [14] Eugene Ehrhart. Geometrie diophantienne-sur les polyedres rationnels homothetiques an dimensions. Comptes Rendus Hebdomadaires Des Seances De L Academie Des Sciences, 254(4):616, 1962.
- [15] G. Elekes. A geometric inequality and the complexity of computing volume. Discrete Comput. Geom., 1(4):289–292, 1986.
- [16] Komei Fukuda. cddlib, 2020.
- [17] Francisco Criado Gallart. Tropical bisectors and diameters of simplicial complexes, 2021. PhD Dissertation at Technischen Universität Berlin.
- [18] B. Gärtner and M. Jaggi. Tropical support vector machines, 2006. ACS Technical Report. No.: ACS-TR-362502-01.
- [19] Stéphane Gaubert and Marie MacCaig. Approximating the volume of tropical polytopes is difficult. International Journal of Algebra and Computation, 29(02):357–389, 2019.
- [20] Cunjing Ge, Feifei Ma, and Jian Zhang. A fast and practical method to estimate volumes of convex polytopes. CoRR, abs/1401.0120, 2014.
- [21] Charles J. Geyer, Glen D. Meeden, and incorporates code from cddlib written by Komei Fukuda. rcdd: Computational Geometry, 2021. R package version 1.5.
- [22] A.G. Horvath and Z. Langi. Maximum volume polytopes inscribed in the unit sphere. Monatsh Math, 181:341–354, 2016.
- [23] Michael Joswig. Essentials of Tropical Combinatorics. Springer, New York, NY, 2021.
- [24] Michael Joswig and Katja Kulas. Tropical and ordinary convexity combined. Advances in Geometry, 10(2):333–352, 2010.
- [25] Leonid Khachiyan, Endre Boros, Konrad Borys, Khaled M. Elbassioni, and Vladimir A. Gurvich. Generating all vertices of a polyhedron is hard. Discrete & Computational Geometry, 39:174–190, 2006.
- [26] H. Konno, Y. Yajima, and A. Ban. Calculating a minimal sphere containing a polytope defined by a system of linear inequalities. Comput Optim Applic, 3:181–191, 1994.
- [27] C. Kuo, J. P. Wares, and J. C. Kissinger. The apicomplexan whole-genome phylogeny: An analysis of incongruence among gene trees. Mol Biol Evol, 25(12):2689–2698, 2008.
- [28] B. Lin, B. Sturmfels, X. Tang, and R. Yoshida. Convexity in tree spaces. SIAM Discrete Math, 3:2015–2038, 2017.
- [29] Georg Loho and Matthias Schymura. Tropical ehrhart theory and tropical volume. Research in the Mathematical Sciences, 7:30, 12 2020.
- [30] D. Maclagan and B. Sturmfels. Introduction to Tropical Geometry, volume 161 of Graduate Studies in Mathematics. Graduate Studies in Mathematics, 161, American Mathematical Society, Providence, RI, 2015.
- [31] K.G. Murty and M.R. Oskoorouchi. Sphere methods for lp. Algorithmic Operations Research, 5:21–33, 2010.
- [32] Robert Page, Ruriko Yoshida, and Leon Zhang. Tropical principal component analysis on the space of phylogenetic trees. Bioinformatics, 36(17):4590–4598, 06 2020.
- [33] V.V. Shenmaier. The problem of a minimal ball enclosing k points. J. Appl. Ind. Math., 7:444–448, 2013.
- [34] Ngoc Mai Tran. Polytropes and tropical eigenspaces: Cones of linearity. Discrete & Computational Geometry, 51:539–558, 2012.
- [35] Ngoc Mai Tran. Enumerating polytropes. Journal of Combinatorial Theory, Series A, 151:1–22, 2017.
- [36] R. Yoshida, L. Zhang, and X. Zhang. Tropical principal component analysis and its application to phylogenetics. Bulletin of Mathematical Biology, 81:568–597, 2019.
- [37] Ruriko Yoshida, David Barnhill, Keiji Miura, and Daniel Howe. Tropical density estimation of phylogenetic trees, 2022.
- [38] Ruriko Yoshida, Keiji Miura, and David Barnhill. Hit and run sampling from tropically convex sets, 2022.
- [39] Ruriko Yoshida, Misaki Takamori, Hideyuki Matsumoto, and Keiji Miura. Tropical support vector machines: Evaluations and extension to function spaces. Neural Networks, 157:77–89, 2021.