On solving constrained optimization problems with neural networks: a penalty method approach | Synapse