Modified constrained learning algorithms incorporating additional functional constraints into neural networks