Computer program for determining an optimum solution in long-term forest exploitation process