Resolving problems with optimization and optimized module deployment