Research: OPTIMAL PLANNING OF RESOURCES