Optimization Of The Locations Of Virtual Network Functions