Localization and Optimization Problems for Camera Networks