The side-adjustment is performed, based on information stored in the computer, in such a manner that each individual log gives maximum yield with respect to its dimensions, and any other data stored in the computer such as the current demand and current market conditions.