Introduction

With the implementation of state-owned forest reform, all the key state-owned forest areas in Heilongjiang province are closed to commercial harvesting, so forest enterprises must use available resources. The utilizable forest resource in production is limited. The natural growth of the raw material, timber logs, varies considerably over long growth periods. As the demand for wood products increases, timber mills must improve the utilization of logs to meet market needs and develop their business.

Traditional timber processing is not flexible enough, and there is no way to measure and control the variations in the volume of timber in timber processing. This problem lowers the value and volume of lumber output and increases the cost of manufacturing. A robust optimization approach is able to control the effect of variations in volume of timber available, and offers a scientific theory for timber processing.

The robust optimization approach was first applied by Soyster (1973). Further research has been conducted on robust optimization using different approaches (Bertsimas and Sim 2004a, b; Leung and Chan 2009). This methodology has been applied successfully to different types of problems and to uncertainties in forest production (Zanjani et al. 2010; Alvarez and Vera 2014; Varas et al. 2014; Alem and Morabito 2012).

Based on the robust optimization theory, this thesis make a research of production plan and make an optimization for traditional timber processing. The research technical route shown as Fig. 1:

Fig. 1
figure 1

Research technical route

Materials and methods

Robust optimization and B&S (Bertsimas and Sim) robust model

Robust optimization is a modeling method of manipulating data uncertain (Bental et al. 1999; Ben-Tal and Nemirovski 2000). The purpose of robust optimization is to fulfill the model constraints and to control the data simultaneously. Using robust optimization, the original model related to an uncertainty problem is changed to a semi-infinite robust optimization model using a corresponding formula. The feasible solution and the optimum solution are defined as the robust feasible solution and the robust-optimum solution of the uncertainty problem. The quantitative repeatability of robustness:

$$ \rho_{\mu } (\varPhi ,\pi_{j} ) = \mathop {Min}\limits_{{\phi_{i} \in \varPhi }} (r_{\mu } (\phi_{i} ,\pi_{j} )) $$
(1)

where, \( \varPhi \) is the assemblage of all performance characteristics, \( \phi_{i} \) the i parameter in assemblage \( \varPhi \), \( \pi_{j} \) the j parameter that effects disturbance of object function, \( \mu \) the robust mapping, \( r_{\mu } (\phi_{i} ,\pi_{j} ) \) the robust radius of mapping \( \mu \), when taking \( \phi_{i} \) and \( \pi_{j} \) into account, and \( \rho_{\mu } (\varPhi ,\pi_{j} ) \) is the robust of mapping \( \mu \) when taking \( \varPhi \) and \( \pi_{j} \) into account.

The B&S robust model advanced by Bertsimas and Sim (Bertsimas and Sim 2003, 2004a, b), comes from linear programming. The assemblage, which is formed from the columns of uncertain parameter \( {\text{a}}_{\text{ij}} \) in i line of coefficient matrix A, is defined as the assemblage \( {\text{J}}_{\text{i}} \); \( {\text{a}}_{\text{ij}} \) can be regarded as a symmetrically and limited random variable \( {\tilde{\text{a}}}_{\text{ij}} \); the definition domain is \( \left[ {{\text{a}}_{\text{ij}} - \widehat{\text{a}}_{\text{ij}} , {\text{a}}_{\text{ij}} { + }\widehat{\text{a}}_{\text{ij}} } \right] \), to every bound i, using parameter \( \varGamma_{i} \in 0,\left[ {\left| {J_{i} } \right|} \right] \) to adjust conservative level of solutions. In the B&S robust model, the minimum whole number is no greater than the uncertain date \( {\text{a}}_{\text{ij}} \) is changing in interval  \( \left[ {{\text{a}}_{\text{ij}} { - }\widehat{\text{a}}_{\text{ij}} , {\text{a}}_{\text{ij}} { + }\widehat{\text{a}}_{\text{ij}} } \right] \), another coefficient is changing in \( \left[ {{\text{a}}_{\text{ij}} - \left( {\Gamma _{\text{i}} -\Gamma _{\text{i}} } \right)\left| {\widehat{\text{a}}_{\text{ij}} } \right| , {\text{a}}_{\text{ij}} { + }\left( {\Gamma _{\text{i}} -\Gamma _{\text{i}} } \right)\left| {\widehat{\text{a}}_{\text{ij}} } \right|} \right] \), and \( {\text{a}}_{\text{ij}} \) is random in \( \left[ {{\text{a}}_{\text{ij}} - \widehat{\text{a}}_{\text{ij}} , {\text{a}}_{\text{ij}} { + }\widehat{\text{a}}_{\text{ij}} } \right] \). The corresponding formula of robust is:

$$ \mathop \sum \limits_{j} a_{ij} x_{j} + \max_{{\left\{ {S_{i} \cup \left\{ {t_{i} } \right\}\left| {S_{i} \subseteq J_{i} ,\left| {S_{i} } \right| = \varGamma_{i} ,t_{i} \in J_{i} \yen S_{i} } \right.} \right\}}} \left\{ {\mathop \sum \limits_{{j \in S_{i} }} \widehat{a}_{ij} y_{i} + \left( {\varGamma_{i} - \varGamma_{i} } \right)\widehat{a}_{{it_{i} }} y_{{t_{i} }} } \right\} \le b_{i} \quad \forall i $$
(2)

When \( \varGamma_{i} \) is an integer, the function of \( \beta_{i} \left( {x,\varGamma_{i} } \right) = \mathop {Max}\limits_{{\left\{ {S_{i} \subseteq J_{i} ,\left| {S_{i} } \right| = \varGamma_{i} } \right\}}} \left\{ {\sum\nolimits_{j \in S} {a_{ij} \left| {x_{j} } \right|} } \right\} \) is protecting i bound; When \( \varGamma_{i} = 0 \), \( \beta_{i} \left( {x,\varGamma_{i} } \right) = 0 \), the i bound transfers to nominal problem. \( \varGamma_{i} \in \left[ {0,\left| { J_{i} } \right|} \right] \) is used to adjust conservative level of the model.

Construction of the volume variation robust optimization model

Description of problems

If the quantity of boards in an order is n (use i = 1, …, n), the thickness of the boards is \( u_{i} \); the width of boards is \( w_{i} \); then every board must be produced from standard diameter logs on a band saw. Traditional timber processing would use the principle of manufacturing first and then cleaning up. Standard logs k would be produced by a standard cutting scheme \( e_{0} \). Defective boards would be discarded after timber processing. Boards produced from the same log are kept to the same thickness to reduce the time needed for band saw adjustment. An adjustment penalty cost is assessed if the thickness must be changed and given the value \( c_{ki}^{u} x_{ki} \); the penalty parameter is \( \gamma^{u} \). The board thickness should meet the width limit for the boards produced. If the width is more than or less than the width limit, there will be a penalty cost \( c_{ki}^{w} x_{ki} \), the penalty parameters are \( \gamma_{ + }^{w} \) and \( \gamma_{ - }^{w} \). If the total volume of lumber is less than volume of logs, there will be a volume penalty cost \( c_{ki}^{vt} x_{ki} \), the penalty parameter is \( \gamma^{vt} \).

Since the band saw only works on one log at any moment, and the production process is continuous without interruption, the minimum coefficient of utilization in timber processing is \( \delta_{k} \), so \( VT_{k}^{Min} = \delta_{k} \cdot VT_{k} \). The timber mill manufactures boards based on clients’ orders with the goal of maximizing output with minimum logs and penalty cost.

Robust optimization model

When defective logs comes out in timber processing, they must be discarded. Based on the need to maximize board output per log, the timber mill sorts raw material logs into groups for processing, which changes the volume. In this paper, we use B&S robust model to control the volume variation of timber in processing. The meanings of the symbols in this model are as follow:

  • \( x_{ki} \): Take 1 values to express i board send to k log in the manufacture plan, if not take 0 values;

  • \( \widehat{vt}_{k} \): The maximum variation of volume of timber of log k for manufacture, \( VT_{k} \in \left[ {VT_{k}^{Max} - \widehat{vt}_{k} ,VT_{k}^{Max} } \right] \);

  • \( J_{k} \): The index assemblage of all logs with variation of volume of timber in manufacture period, \( J_{k} = \left\{ {k\left| {\widehat{vt}_{k} > 0, k = 1, \ldots , m} \right.} \right\} \);

  • \( \varGamma_{k} \): Conservative horizontal of parameters, robust horizontal of log k, \( \varGamma_{k} \in \left[ {0,\left| {\varGamma_{k} } \right|} \right] \);

  • \( S_{k} \): Sub-aggregate of \( \varGamma_{k} \);

  • \( \{ t_{i} \} \): Sub-aggregate of S k , \( S_{k} \cup \left\{ {t_{i} } \right\} = J_{k} ,\quad S_{k} \cap \left\{ {t_{i} } \right\} \ne \phi \);

  • \( |J_{k} | \): The quantity of slabs in assemblage \( J_{k} \);

  • \( |S_{k} | \): The quantity of slabs in assemblage \( S_{k} .\)

The available volume of timber affected by defective quality varied. The maximum variation value is \( VT_{k}^{Max} - VT_{k}^{Min} \). When \( \varGamma_{k} \)  = 0, it means that there is no variation in raw material logs. When \( \varGamma_{k} = J_{k} \), it means that all the raw material logs are defective. The conservatism of lumber operation is the highest value. If the variation of volume of raw material logs is \( \varGamma_{k} \), the number of unchanged volume of raw material logs is \( \left| {J_{k} } \right| - \varGamma_{k} \), formula of robust as example (3):

$$ C_{{j \in S_{0} }}^{T} + \max_{{\left\{ {\left. {S_{k} \cup \left\{ {t_{k} } \right\}} \right|S_{k} \subseteq J_{k} ,\left| {S_{k} } \right| \le \varGamma_{k} ,t_{k} \in J_{k} \yen S_{k} } \right\}}} \left\{ {\sum\nolimits_{{i \in S_{k} }} {\widehat{VT}_{k} + \left( {\varGamma_{k} - \varGamma_{k} } \right)\widehat{VT}_{k} } } \right\} $$
(3)

The relationship between board volume and standard log volume in timber processing is as example (4):

$$ \sum\nolimits_{k = 1}^{m} {\sum\nolimits_{i = 1}^{n} {vt_{i} x_{ki} \le VT_{k} } } $$
(4)

Available volume for manufacture formula of robust is as example (5):

$$ \sum\nolimits_{k = 1}^{m} {\sum\nolimits_{i = 1}^{n} {vt_{i} x_{ki} \le VT_{k} - \max_{{\left\{ {\left. {S_{k} \cup \left\{ {t_{k} } \right\}} \right|S_{k} \subseteq J_{k} ,\left| {S_{k} } \right| \le \varGamma_{k} ,t_{k} \in J_{k} \yen S_{k} } \right\}}} \left\{ {\mathop \sum \limits_{{k \in S_{k} }} \widehat{VT}_{k} + \left( {\varGamma_{k} - \varGamma_{k} } \right)\widehat{VT}_{k} } \right\}} } $$
(5)

Combine object function and linear form of robust formula, so the robust optimization model is:

$$ {\text{Min}}\;Z = \sum\nolimits_{k = 1}^{m} {\sum\nolimits_{i = 1}^{n} {c_{ki}^{u} x_{ki} } } + \sum\nolimits_{k = 1}^{m} {\sum\nolimits_{i = 1}^{n} {c_{ki}^{w} x_{ki} } } + \sum\nolimits_{k = 1}^{m} {\sum\nolimits_{i = 1}^{n} {c_{ki}^{vt} x_{ki} } } $$
(6)
$$ {\text{s}} . {\text{t}}\left\{ {\begin{array}{*{20}l} {\sum\nolimits_{k = 1}^{m} {x_{ki} = 1} } \hfill & {{{i = 1, \ldots ,n }}} \hfill \\ {\sum\nolimits_{k = 1}^{m} {\sum\nolimits_{i = 1}^{n} {vt_{i} x_{ki} \le VT_{k} - \alpha_{k} \varGamma_{k} } - \sum\nolimits_{i}^{{}} {\sum\nolimits_{k}^{{}} {\rho_{\text{k}} \widehat{VT}_{k} } } } } \hfill & {} \hfill \\ {\mathop \sum \limits_{\text{i = 1}}^{\text{n}} \sum\nolimits_{i = 1}^{n} {u_{i} w_{i} l_{0} = vt_{i} } } \hfill & {} \hfill \\ {m = \left[ {V/VT_{k} } \right]} \hfill & {} \hfill \\ {\alpha_{k} + \rho_{k} \ge \widehat{VT}_{k} \beta_{0} } \hfill & {} \hfill \\ {\alpha_{k} ,\rho_{k} ,\beta_{0} \ge 0 } \hfill & {} \hfill \\ {vt_{i} ,u_{i} ,w_{i} ,l_{0} ,VT_{k} \ge 0} \hfill & {} \hfill \\ \end{array} } \right. $$
(7)

In object function (6), \( \sum\nolimits_{k = 1}^{m} {\sum\nolimits_{i = 1}^{n} {c_{ki}^{u} x_{ki} } } \) is the thickness error of boards in timber processing. The second part \( \sum\nolimits_{k = 1}^{m} {\sum\nolimits_{i = 1}^{n} {c_{ki}^{w} x_{ki} } } \) is the width error; the third part \( \sum\nolimits_{k = 1}^{m} {\sum\nolimits_{i = 1}^{n} {c_{ki}^{vt} x_{ki} } } \) is log volume error. The first part of constraint condition (6) expresses that each slab only maps one log; the second part expresses that volume of board output is no greater than the available volume of each log; the third part defines the volume of boards; the fourth part is the quantity of logs used for manufacture; other parts are the value constraint of basic parameters.

Algorithm for solution

For the volume variation robust optimization model in timber processing, based on the strategy of sorting boards into groups by thickness which is written by Zanjani (2010), using the highly efficient search algorithm where data is limited (Liu and Lin 2005). Solving involves trying to figure out the best mapping relationship between boards and logs. Algorithm design was as follows (Varas et al. 2014; Maturana et al. 2009):

  • Step 1 Order and number the slabs according to thickness \( u_{i} \), mark them with \( \left\{ {P_{j} } \right\} \), total get I groups, \( j = \left\{ {\left. j \right|1 \ldots I} \right\} \);

  • Step 2 Calculate minimum volume of logs \( m_{Min} \) and maximum volume of logs \( m_{Max} \), sending each group raw material logs \( l_{j} \); and record the mapping between slabs and logs using 0–1 matrix \( N_{ki} \); calculate probability matrix \( P_{ki} \) producing boards from logs by matrix \( N_{ki} \), and \( P_{ki} = \left[ {\sum\nolimits_{k = 0}^{k - 1} {p_{ki} } ,\sum\nolimits_{k = 0}^{k} {p_{ki} } } \right] \), \( P_{0i} \) = 0;

  • Step 3 Get original solution matrix \( H_{g}^{0} \) by comparing with random number sequence and probability matrix;

  • Step 4 Estimate the relationship between volume of slabs and available volume of logs. Calculate object function value \( Z_{g}^{0} \) and slabs penalty cost \( c_{i}^{0} \) of \( H_{g}^{0} \). Replace the maximum penalty cost of slabs with the minimum penalty cost of slabs. Estimate the relationship between the volume of slabs and logs and calculate object function value \( Z_{g}^{n} \);

  • Step 5 Estimate the relationship between \( Z_{g}^{n} \) and \( Z_{g}^{n - 1} \) until iteration finished and get the best solution \( Z_{g}^{*} \).

Optimization of timber volume variation

Manufacture data

In this paper, using small diameter oak with a diameter of 20 cm, and length of 2 m as the raw material. Based on the purchase order, there are 57 boards to produce, divided into different groups by thickness. The requirements for different size slabs is in Table 1.

Table 1 Requirements for different size slabs

According to the parameters in robust optimization model, take \( \gamma^{u} \)  = 1.0, \( \gamma_{ + }^{w} \)  = 0.35, \( \gamma_{ - }^{w} \) = 1.4, \( \gamma^{vt} \)  = 1500, \( \delta_{k} \)  = 0.50, \( VT_{k} \)  = 0.0720. The maximum unit of thickness penalty is 5 mm, and the minimum unit of thickness penalty is 2 mm.

Evaluating indicator

For the volume variation of the robust optimization model in this paper, we evaluated timber processing with the sawn timber volume per log, the by-product volume per log and the total output of boards. We compared and analyzed traditional timber-processing models and the robust optimization model to get a result by using an evaluation indicator.

The sawn timber volume of per log (%):

$$ \eta_{0} = \left( {\sum\nolimits_{i = 1}^{n} {vtx_{ki} } } \right)/VT_{k}^{'} $$
(8)

The total output of boards (%):

$$ \eta_{1} = \left( {\sum\nolimits_{i = 1}^{n} {vtx_{ki} } } \right)/(VT_{k} \cdot m) $$
(9)

The by-product volume of per log (%):

$$ F = (1 - \eta_{0} ) \times VT + vt^{'} $$
(10)

where, \( VT_{k}^{'} \) expresses the volume of logs less the defective quality portion, and \( vt^{'} \) expresses the net volume of boards.

Results

We used MATLAB to seek a solution to the robust-optimization model with controllable variation in the volume of timber. In order to quantify cutting pattern changes in the robust optimization model when it was controlling volume variation of timber, we chose No. 2 log with defective quality for comparison and analysis. The result is expressed in Tables 2 and 3. The defects in these tables were cutting sawn timber defects, and the grade of boards was estimated by standard subdivision of boards.

Table 2 Traditional timber processing model result
Table 3 Robust optimization model result

We compared indexes in timber processing processes according to different model results and optimize the effects of the robust optimization model in controlling the variation problem of timber. Indexes of different models are shown in Table 4.

Table 4 Indexes of variation problem of lumber before and after optimization

In Table 4, we can determine that the variation ratio is somewhat greater for the sawn timber volume of per log in the robust optimization model than the traditional timber processing model. It shows that the robust optimization model is controlling the variation problem of lumber by sacrificing the smoothness of sawmilling. There are 57 boards in the robust optimization model for timber processing, using 11 logs, with total by-product volume reduction from 0.40363 to 0.35001 m3, an improvement of 0.05362 m3. The manufacturing cost penalty was reduced from 722.2 to 650.7 Yuan (CNY), 71.5 Yuan (CNY) better than before. The total output of boards raises from 51.76 to 55.49, a 3.73% improvement.

Conclusion

We evaluated the volume variation of raw material logs in timber processing and set up a robust optimization model. We developed a solution with the robust optimization approach and found the relationship between boards and raw material logs in timber processing. We optimized the results, showing that robust optimization can control the volume variation in timber processing, reduce by-product volume, and lower the manufacturing cost penalty. Sawmill enterprises using these research results are able to easily determine the relationship between the requirement of the robust model and timber processing and choose a flexible method of timber processing, which could lower cost. We are able to supply theoretical evidence and references to solve uncertain parameter controlling problems for similar enterprises or similar processes in manufacturing. With the natural forest closed for commercial felling, a rational use of the robust optimization approach can improve the output of boards and maximize the log usage, which will help to protect forest resources