Constrained ergodic optimization for generic continuous functions | Synapse