An Analysis under a Unified Fomulation of Learning Algorithms with Output Constraints