Biomimicry of bacterial foraging for distributed optimization and control | Synapse