Market-based Control of Mobile-agent Systems