The | ## Log Batch Cutting Optimization in a sawmill |

The target of optimization is to minimize log consumption and maximize timber yield.

1. The program finds the optimal log diameter for each specific timber size. To reach the goal, a series of log sizes is recalculated and the highest percentage of timber output is set. The process of finding the corresponding log is repeated for each timber size specified by the production program.

2. The optimal cutting pattern for a given timber for a given log is calculated.