Controlling cstr reactor with pid control to optimize production, without ran-away reaction. The reaction in the cstr reactor is simple A. B, the reactor is controlled by: 1. Feed of A flow rate. 2. The temperature of the reactor is controlled by cascada, the temp controller set the setpoint. Of the flow of the cooling water to the jacket of the reactor.