Introduction

One of the basic tools for description uncertain problems existing in real world is interval linear programming (ILP). Many methods have been proposed for solving ILP models [132]. Some methods give range of optimal values of the ILP models [4, 10, 11, 26]. Some of them are focused on interval arithmetic and extensions of the simplex algorithm [3, 17, 18, 24]. Some of methods are based on basis stability [9, 19, 25, 29]. Under the assumption of basis stability, we can determine range of optimal values. In some of other methods, two sub-models with deterministic parameters were formulated. By solving the two sub-models, solutions for the optimized interval objective and interval decision variables can be obtained [13, 16, 31, 32].

The best and the worst method (BWC) proposed by Tong converts ILP model into two sub-models [31]. Chinneck and Ramadan extended the BWC method to include nonnegative variables and equality constraints [4]. Huang and Moore proposed a new interval linear programming method (ILP) [16]. This method incorporates interval information directly into the optimization process.

An interval number \(x^\pm \) is generally represented as \([x^-,x^+]\) where \(x^-\le x^+\). If \(x^-=x^+\), then \(x^\pm \) will be degenerate.

If \(A^-\) and \(A^+\) are two matrices in \({\mathbb {R}}^{m\times n}\) and \(A^-\le A^+\), then the set of matrices

$$\begin{aligned} \mathbf{A}^\pm =[A^-,A^+]=\{A|~A^-\le A\le A^+\}, \end{aligned}$$

is called an interval matrix, and the matrices \(A^-\) and \(A^+\) are called its bounds. Center and radius matrices have been defined as

$$\begin{aligned} A^c=\frac{1}{2}(A^++A^-),~~A^\Delta =\frac{1}{2}(A^+-A^-). \end{aligned}$$

A square interval matrix \(\mathbf{A}^\pm \) is called regular if each \(A\in \mathbf{A}^\pm \) is nonsingular.

A special case of an interval matrix is an interval vector which is a one-column interval matrix

$$\begin{aligned} \mathbf{x}^\pm =\{\mathbf{x}|~\mathbf{x}^-\le \mathbf{x}\le \mathbf{x}^+\}, \end{aligned}$$

where \(\mathbf{x}^-,\mathbf{x}^+\in {\mathbb {R}}^n\).

Interval arithmetic is defined in [1].

We consider ILP model as follows:

$$\begin{aligned} \left. \begin{aligned} \min&\quad z^{\pm }=\sum \nolimits _{j=1}^nc_j^{\pm }x_j^{\pm }\\ s.t.&\quad \sum \nolimits _{j=1}^na_{ij}^{\pm }x_j^{\pm }=b_i^{\pm }, \quad i=1,2,\ldots ,m\\&\quad x_j^{\pm }\ge 0, \quad j=1,2,\ldots ,n. \end{aligned} \right. \end{aligned}$$
(1)

By

$$\begin{aligned} \left. \begin{aligned} \min&\quad z=\sum \nolimits _{j=1}^nc_jx_j\\ s.t.&\quad \sum \nolimits _{j=1}^na_{ij}x_j=b_i, \quad i=1,2,\ldots ,m\\&\quad x_j\ge 0, \quad j=1,2,\ldots ,n. \end{aligned} \right. \end{aligned}$$
(2)

we denote characteristic model of the ILP model (1), where \(a_{ij}\in a_{ij}^\pm , c_j\in c_j^\pm \) and \(b_i\in b_i^\pm \).

Optimal solution set of the ILP is defined as a set of all optimal solutions over all characteristic models.

The interval \([{z}^-_{opt},{z}^+_{opt}]\) is called the range of the optimal values of the ILP model (1). Computing of the best value \({z}^-_{opt}\) is easy, but obtaining the worst value \({z}^+_{opt}\) is NP-hard [5].

In this paper, we use Monte Carlo simulation when all of the interval coefficients of the ILP are replaced by the confidence interval of a random variable with normal, uniform and beta distributions. Obtaining the worst value of the objective function of the ILP model is considered. Also, we determine the optimal solutions under the distributions and then we compare the solutions obtained through the Monte Carlo simulation with the exact solutions.

Range of the Optimal Values

In this section, we review some notations and the method for obtaining the best and the worst values of the objective function of the ILP model (1) [5].

Let \(Y_m\) be the set of all \(\{-1,1\}\) m-dimensional vectors, i.e.

$$\begin{aligned} Y_m=\{\mathbf{y}\in {\mathbb {R}}^m|~ |\mathbf{y}|=e\}, \end{aligned}$$

where \(e=(1,1,\ldots ,1)^T\). For a given \(\mathbf{y}\in \{\pm 1\}^m\), by

$$\begin{aligned} T_\mathbf{y}=diag(y_1,y_2,\ldots ,y_m), \end{aligned}$$

we denote the corresponding diagonal matrix. For each \(\mathbf{x}\in {\mathbb {R}}^n\), we denote its sign vector \(sign(\mathbf{x})\) by

$$\begin{aligned} (sign \mathbf{x})_i=\left\{ \begin{array}{c@{\quad }l} 1&{}x_i\ge 0\\ -1&{}x_i<0,\end{array} \right. \end{aligned}$$

where \(1,2,\ldots ,n\). Then we have \(|\mathbf{x}|=T_z\mathbf{x}\), where \(\mathbf{z}=sign(\mathbf{x})\in Y_n\).

Consider an interval matrix \(\mathbf{A}^\pm =[A^-,A^+]=[A^c-A^\Delta ,A^c+A^\Delta ]\) and an interval vector \(\mathbf{b}^\pm =[b^-,b^+]=[b^c-b^\Delta ,b^c+b^\Delta ]\). For each \(\mathbf{y}\in Y_m\) and \(\mathbf{z}\in Y_n\), \(A_\mathbf{yz}\) and \(b_\mathbf{y}\) are defined as follows [5].

$$\begin{aligned} A_\mathbf{yz}= & {} A^c-T_\mathbf{y}A^\Delta T_\mathbf{z},\\ b_\mathbf{y}= & {} b^c+T_\mathbf{y}b^\Delta . \end{aligned}$$

Theorem 1

[5] The best and the worst values of the objective function of the ILP model (1) could be obtained as follows.

$$\begin{aligned} {z}^-_{opt}= & {} \inf \{{c^-}^T\mathbf{x} |~ A^-\mathbf{x}\le b^+,A^+\mathbf{x}\ge b^-,\mathbf{x}\ge 0\}, \end{aligned}$$
(3)
$$\begin{aligned} z^+_{opt}= & {} \sup _{\mathbf{y}\in Y_m}f(A_\mathbf{ye},b_\mathbf{y},c^+), \end{aligned}$$
(4)

where \(f(A,b,c)=\inf \{c^T\mathbf{x} |~ A\mathbf{x}=b,\mathbf{x}\ge 0\}\).

Theorem 2

[5] Computing the worst value of the objective function of the ILP model (1) is NP-hard.

While computing \(z^-_{opt}\) is easy, computation of \(z^+_{opt}\) is much more involved [5].

Example 1

Consider the interval linear programming

$$\begin{aligned} \left. \begin{aligned} \min&\quad z=x_1^\pm +x_2^\pm \\ s.t.&\quad [2,3]x_1^\pm +x_2^\pm =[3,4]\\&\quad [4,6]x_1^\pm +[-3,-2]x_2^\pm =[1,5]\\&\quad x_1^\pm ,x_2^\pm \ge 0. \end{aligned} \right. \end{aligned}$$
(5)

By Theorem 1, the best value of the objective function is determined by solving the following model.

$$\begin{aligned} \min&\,\,z^-=x_1+x_2\\ s.t.&\,\,2x_1+x_2\le 4\\&\,\, 4x_1-3x_2\le 5\\&\,\, 3x_1+x_2\ge 3\\&\,\, 6x_1-2x_2\ge 1\\&\,\, x_1,x_2\ge 0. \end{aligned}$$

The optimal value is \(z^-_{opt}=1\). The worst value of the objective function is \(z^+_{opt}=3.1\) which results from solving the following model.

$$\begin{aligned} \min&\,\, z^+=x_1+x_2\\ s.t.&\,\, 2x_1+x_2=4\\&\,\, 6x_1-2x_2=1\\&\,\, x_1,x_2\ge 0. \end{aligned}$$

Therefore, range of optimal values of the objective function is [1, 3.1].

Fig. 1
figure 1

Monte Carlo simulation for \(a_{11}\) of the ILP model (5)

Monte Carlo Simulation

A Monte Carlo method is used to evaluation solving methods [30]. We use the simulation for example 1 based on three distribution functions, normal, uniform and beta. We compare the solution obtained through the distribution functions with the exact solution. In view of the solutions resulted from the simulations, we determine coverage rate (CR) and validity rate (VR) proposed by Lu et al. [20].

Firstly, we generate 15000 Monte Carlo samples for each coefficient of the ILP model (5). We simulate three probability density functions for each coefficient of the ILP model (5). For a random variable with normal distribution \(N(\mu ,\sigma )\), the effective range can be considered as \([\mu -3\sigma ,\mu +3\sigma ]\) [30].

For example, for \(a_{11}=[2,3]\), Figure 1 shows three samples of normal, uniform and beta distributions. Values of z resulted from samples of the distributions are shown in Figs. 23 and 4.

Coverage rate (CR) and valid rate (VR) proposed by Lu et al. are used as indicators to qualify the performance. The coverage and valid rates of the interval solution \(\mathbf x\) are defined as follows [20]:

$$\begin{aligned}&{ CR}(\mathbf{x}^\pm )=\frac{{\text {The number of samples whose values lie in}}~\mathbf{x}^\pm }{{\text {Total sample used in simulation}}}\times 100~\%\\&{ VR}(\mathbf{x}^\pm )=\frac{{\text {The width of intersection between effective range and}}~\mathbf{x}^\pm }{{\text {The width of}}~\mathbf{x}^\pm }\times 100~\% \end{aligned}$$

The larger the CR value, the higher the chance of the exact solution lie in the interval of solutions. The higher the VR value of the solutions, the more valid information is included in the solutions [20].

Fig. 2
figure 2

Values of z resulted from Monte Carlo simulation for normal distribution of the ILP model (5)

Fig. 3
figure 3

Values of z resulted from Monte Carlo simulation for uniform distribution of the ILP model (5)

Fig. 4
figure 4

Values of z resulted from Monte Carlo simulation for beta distribution of the ILP model (5)

Suppose all coefficients of the ILP model (5) have normal distribution. The valid rate of z can be obtained as follows:

$$\begin{aligned} { VR}(z^\pm =[1,3.1])= & {} \frac{{\text {The width of}}~ \{[1,3.1]\cap [1.0394,2.8585]\}}{{\text {The width of}}~[1,3.1]}\times 100~\%\\= & {} 86.62~\%, \end{aligned}$$

which the interval [1.0394, 2.8585] is interval obtained through simulation for normal distribution.

The values of \({ VR}(z)\) for the uniform and beta distributions are 93.89 and \(89.53~\%\), respectively. Therefore, the samples of uniform distribution are better than the others.

The simulation results for the three samples of distributions are presented in Table 1.

Table 1 Results for the three distribution samples of the ILP model (5)
Fig. 5
figure 5

Values of z resulted from Monte Carlo simulation for normal distribution of the ILP model (6)

Fig. 6
figure 6

Values of z resulted from Monte Carlo simulation for uniform distribution of the ILP model (6)

Fig. 7
figure 7

Values of z resulted from Monte Carlo simulation for beta distribution of the ILP model (6)

Example 2

Consider the interval linear programming

$$\begin{aligned} \left. \begin{aligned} \min&\quad z=[1,5]x_1^\pm +[3,4]x_2^\pm \\ s.t.&\quad [2,3]x_1^\pm +x_2^\pm =[3,4]\\&\quad x_1^\pm ,x_2^\pm \ge 0. \end{aligned} \right. \end{aligned}$$
(6)

By Theorem 1, range of the optimal values of the objective function is [1, 10]. Values of z resulted from samples of the distributions are shown in Figs. 56 and 7. The simulation results for the samples of distributions are presented in Table 2. By attention to the values of VR(z) for three samples of distribution, the samples of beta distribution and then uniform distribution are better than the samples of normal.

Table 2 Results for the three distribution samples of the ILP model (6)
Fig. 8
figure 8

Values of z resulted from Monte Carlo simulation for normal distribution of the ILP model (7)

Fig. 9
figure 9

Values of z resulted from Monte Carlo simulation for uniform distribution of the ILP model (7)

Fig. 10
figure 10

Values of z resulted from Monte Carlo simulation for beta distribution of the ILP model (7)

Example 3

Consider the interval linear programming

$$\begin{aligned} \left. \begin{aligned} \min&\quad z=[2,4]x_1^\pm +[5,7]x_2^\pm +[2,3]x_3^\pm \\ s.t.&\quad -2x_1^\pm +[4,5]x_2^\pm +[5,6]x_3^\pm =6\\&\quad [5,6]x_1^\pm -4x_2^\pm +[1,2]x_3^\pm =7\\&\quad x_1^\pm ,x_2^\pm ,x_3^\pm \ge 0. \end{aligned} \right. \end{aligned}$$
(7)

By Theorem 1, range of the optimal values of the objective function is [4, 9.1852]. Values of z obtained through samples of the distributions are shown in Figs. 89 and 10. The simulation results for the samples of distributions are presented in Table 3. By attention to the values of VR(z) for three samples of distribution, the samples of uniform distribution are better than the others.

Table 3 Results for the three distribution samples of the ILP model (7)

Conclusion

Computing the worst value of the objective function is much more complicated for ILP models with equality constraints. By considering some distribution functions, Monte Carlo simulation has been used to explore the values of the objective function. The results show that when the range of the objective function needs to be obtained, uniform and beta distribution samples for all coefficients of the ILP model are applicable.