A New Computationally Simple Approach for Implementing Neural Networks with Output Hard Constraints