Mobile Agents for Distributed and Dynamically Balanced Optimization Applications