Energy minimization for self-organized structure formation and actuation | Synapse