Optimal set partitioning, matchings and lagrangian duality | Synapse