If it is the tension flange, then the tendency under load is to straighten the flange back towards its original shape. This distortion and straightening will allow more vertical deflection to a degree.
You may not have to do much of anything in the tension case. Perhaps add some lateral brace angles to ensure that its stable.
Heating to straighten, under load, is not probably a wise choice. You can add additional shapes, such as a tube, or double angles, along the bottom flange, lapping past the distortion and tying into the beam in the straight flange areas on either side of the bend.