Enforcing domain constraints through Lagrangian primal-dual learning | Synapse