A PID controller is a feedback algorithm that compares a measured state with a desired state and produces a control signal to reduce their error. In thermostat control, it adjusts heating or cooling toward the target temperature. section 8.7
The controller combines three responses:
- Proportional response produces a signal proportional to the current error. section 8.7
- Integral response accumulates error magnitude and duration, addressing steady-state error. section 8.7
- Derivative response reacts to the rate of error change, providing anticipation. section 8.7
Genetic-algorithm PID tuning
A Python implementation models a transfer function, evaluates candidate Kp, Ki, and Kd values using response criteria, and uses a genetic algorithm to search for parameters. The resulting step response and control.step_info output expose rise time, settling time, overshoot, and steady-state value. section 8.7
