def apply_nonlinear(self, params, unknowns, resids):
        """ Report the residual y1-y2 """

        y1 = params['y1']
        y2 = params['y2']

        resids['x'] = y1 - y2
dataset/ETHPy150Open OpenMDAO/OpenMDAO/examples/intersect_parabola_line.py/Balance.apply_nonlinear/original