Mathematical optimization has long been used in forestry to determine appropriate harvesting and planting, relative to the life spans of trees. The New Brunswick Department of Transportation is using similar methods to plan the long-term treatment of roads and bridges.