General and nested Wiberg minimization | Synapse