Constraining the outputs and their derivatives
