Modern trends in automation incorporate mobile agents for communication among distributed sites that are connected to each other through public or private networks. Mobile agents carrying communication for various sites and the agent platforms that provide the execution environment for mobile agents should be secured. An optimization framework to secure agent platforms and mobile agents in a distributed environment with low computation resources has been proposed. The optimization is achieved with respect to minimizing the security computation costs of agent platforms and reducing the turnaround time of mobile agents. This book outline Automatic Meter Reading (AMR) as a target application. Mobile agents are used in AMR to calculate power quality and to collect meter readings from energy meters. The cost for security computation with different approaches from the literature is shown in mathematical form and compared with the proposed approach. The results show that the proposed framework reduces the security computation costs at energy meters and decreases the turnaround time of mobile agents.