How to calculate the optimal log breakdown in Excel

Calculate the optimal log sawing using an Excel program. For every sawmill, minimizing raw material waste production is crucial, significantly impacting the profitability of producing construction logs.

 

Example of Log Sawing Calculation in Excel

The log sawing program will be beneficial for small entrepreneurs ready to start their business in producing cylindrical logs and building wooden houses from them.

A certain quantity of logs, each 10 meters long, is processed for sawing. The sawmill has a contract for the supply of wood in the following quantities:

  • 100 logs of 5 meters;
  • 200 logs of 4 meters;
  • 300 logs of 3 meters.
Sawing OptionsNumber of LogsWaste
5m4m3m
12000
21101
31012
40120
50202
60031

What will be the optimal number of logs to be sawed to meet the contract conditions? In other words, how to cut the logs with the minimum amount of production waste?

Solving the Log Sawing Problem

To create a solution model, it is necessary to determine all possible options for sawing logs, each 10 meters long, into 3, 4, and 5-meter segments, considering the length of the waste. The result of such calculations reveals 6 sawing options:

  1. 2 logs of 5m (0m waste).
  2. 2 logs of 5m + 4m (1m waste).
  3. 2 logs of 5m + 3m (2m waste).
  4. 3 logs of 3m + 3m + 4m (0m waste).
  5. 2 logs of 4m (2m waste).
  6. 3 logs of 3m (1m waste).

According to the task condition, Xi are sawed using method i. Then the formula F = X1 + X2 + X3 + X4 + X5 + X6 => min is correct.

A system can be created as follows:

Matrix formula scheme

The next step is to prepare a Microsoft Excel table containing the initial conditions of the problem.

Table preparation.

Formulas are introduced to calculate the left side of the constraint and the objective function. Cells J3:J5 are filled with these formulas:

=B3*$B$7+C3*$C$7+D3*$D$7+E3*$E$7+F3*$F$7+G3*$G$7

And in cell B8, enter the formula: =SUM(B7:G7).

Next, fill out the "Solver" and "Solver Parameters" dialog boxes. To do this, go to cell B8 and use the tool on the "DATA" - "Analysis" - "Solver" tab. If you do not have this tool on this tab, then follow the instructions as shown below:

Excel Options

Fill in the dialogue boxes with parameters as shown below and click the "Solve" button.

Initial Data Solver Parameters. Calculation result

download file Download an example of calculating the optimal log breakdown in Excel

The results obtained in the table indicate that to meet the contract conditions, 225 logs will need to be sawed:

  • 50 logs by method #1;
  • 150 logs by method #4;
  • 25 logs by method #5.

By using this Excel program template, you can fill in the input parameters with your values and choose the optimal solution in the same way.

Cubic table for calculating the volume of round timber based on the diameter and length of the log

D,см/ L,м33.544.555.566.577.58
100.0260.0310.0370.0440.0510.0580.0650.0750.0820.090.1
110.0320.0370.0450.0530.0620.070.080.090.0980.1080.12
120.0380.0460.0530.0630.0730.0830.0930.1030.1140.1250.138
130.0450.0530.0620.0740.0850.0970.1080.120.1320.1440.158
140.0520.0610.0730.0840.0970.110.1230.1350.150.1640.179
150.060.0710.0840.0970.110.1250.1390.1530.1690.1820.199
160.0690.0820.0950.110.1240.140.1550.1720.1890.20.22
170.0770.0920.1070.1240.140.1570.1740.1910.2090.2250.25
180.0860.1030.120.1380.1560.1750.1940.210.230.250.28
190.0970.1150.1340.1540.1730.1930.2120.2350.2550.2750.305
200.1070.1260.1470.170.190.210.230.260.280.30.33
210.1190.140.1630.1850.210.230.2550.2850.310.3350.365
220.130.1540.1780.20.230.250.280.310.340.370.4
230.1440.1690.1940.220.250.2750.3050.3350.370.40.435
240.1570.1840.210.240.270.30.330.360.40.430.47
250.1710.1970.230.260.2950.3250.360.3950.430.4650.505
260.1850.210.250.280.320.350.390.430.460.50.54
270.2030.230.270.3050.3450.380.420.460.4950.540.585
280.220.250.290.330.370.410.450.490.530.580.63
290.2350.270.310.3550.3950.440.4850.5250.570.620.675
300.250.290.330.380.420.470.520.560.610.660.72
310.2650.310.3550.4050.450.50.5550.60.6550.710.77
320.280.330.380.430.480.530.590.640.70.760.82
330.30.350.4050.460.510.5650.6250.680.740.8050.87
340.320.370.430.490.540.60.660.720.780.850.92
350.340.3950.4550.5150.570.6350.70.760.830.90.97
360.360.420.480.540.60.670.740.80.880.951.02
370.3750.440.5050.570.6350.7050.780.850.92511.075
380.390.460.530.60.670.740.820.90.971.051.13
390.410.480.5550.630.7050.780.860.9451.021.1051.19
400.430.50.580.660.740.820.90.991.071.161.25
410.450.530.610.6950.7750.860.951.0351.1251.221.315
420.470.560.640.730.810.911.081.181.281.38
430.4950.5850.670.7650.850.9451.0451.141.241.341.445
440.5150.610.70.80.890.991.091.21.31.41.51
450.5430.640.7350.8350.9351.0351.141.251.3551.4651.58
460.570.670.770.870.981.081.191.31.411.531.65
470.5950.70.8050.911.021.131.2451.3551.4751.61.725
480.620.730.840.951.061.181.31.411.541.671.8
490.6450.760.8750.991.1051.231.3551.4751.6051.741.875
500.670.790.911.031.151.281.411.541.671.811.95
510.70.8250.951.0751.21.3351.471.6051.741.892.035
520.730.860.991.121.251.391.531.671.811.972.12
530.7650.8951.031.1651.31.4451.591.7351.8852.0452.205
540.80.931.071.211.351.51.651.81.962.122.29
550.830.971.1151.261.4051.561.7151.8752.0352.22.375
560.861.011.161.311.461.621.781.952.112.282.46
570.891.0451.2051.361.5151.681.8452.0152.192.3652.545
580.921.081.251.411.571.741.912.082.272.452.63
590.9551.121.291.461.6251.81.982.1552.3452.5352.72
600.991.161.331.511.681.862.052.232.422.622.81
611.0251.21.381.5651.741.9252.1152.32.4952.72.9
621.061.241.431.621.81.992.182.372.572.782.99
631.0951.2851.4751.671.8552.052.252.4452.652.8653.08
641.131.331.521.721.912.112.322.522.732.953.17
651.1651.3651.5651.771.9652.172.382.592.8053.033.275
661.21.41.611.822.022.232.442.662.883.113.38
671.2351.4451.6551.872.0752.292.5052.7352.9653.213.485
681.271.491.71.922.132.352.572.813.053.313.59
691.3051.531.751.972.192.4152.6452.893.143.413.695
701.341.571.82.022.252.482.722.973.233.513.8
711.3751.6151.852.082.3152.552.7953.0553.3253.6153.91
721.411.661.92.142.382.622.873.143.423.724.02
731.451.7051.9552.22.452.6952.953.233.523.824.135
741.491.752.012.262.522.773.033.323.623.924.25
751.531.82.0652.3252.5952.8453.1153.4153.7154.034.365
761.571.852.122.392.672.923.23.513.814.144.48
771.6151.92.182.4552.74533.293.6053.9254.2554.6
781.661.952.242.522.823.083.383.74.044.374.72
791.722.2952.592.8953.163.4753.84.154.4854.835
801.742.052.352.662.973.243.573.94.264.64.95
811.7852.12.412.733.053.3253.664.0054.3654.715.085
821.832.152.472.83.133.413.754.114.474.825.22
831.8752.2052.532.873.2053.4953.8454.2154.5854.9455.345
841.922.262.592.943.283.583.944.324.75.075.47
851.9652.3152.652.9853.343.6754.0354.434.825.1955.595
862.012.372.713.033.43.774.134.544.945.325.72
872.062.4252.783.133.53.864.2354.6555.065.4455.86
882.112.482.853.233.63.954.344.775.185.576
892.162.5352.9153.33.6854.0454.454.885.35.76.135
902.212.592.983.373.774.144.564.995.425.836.27
912.2552.653.0453.453.8554.244.675.1055.5455.966.41
922.32.713.113.533.944.344.785.225.676.096.55
932.3552.773.183.6054.0254.434.895.3455.7956.2256.69
942.412.833.253.684.114.5255.475.926.366.83
952.462.893.323.764.24.6255.115.586.0456.4956.975
962.512.953.393.844.294.735.225.696.176.637.12
972.5653.013.463.924.384.835.3355.816.36.777.28
982.623.073.5344.474.935.455.936.436.917.44
992.673.1353.64.0854.565.0355.5656.066.5657.0557.585
1002.723.23.674.174.655.145.686.196.77.27.73

en ru