liveBook · Manning

Pid tuning problem

As explained in Optimization Algorithms: AI techniques for design, planning, and control problems

A PID tuning problem is the optimization problem of selecting PID controller parameter values to obtain a desired control response.

A PID tuning problem is the multivariate optimization task of choosing Kp, Ki, and Kd to produce a desirable control response. Because the parameters interact, reference tables guide tuning but do not guarantee independent effects. section 8.7

Evaluate candidate settings with response-quality metrics:

  • ITAE penalizes errors that persist over time, emphasizing transient response and settling time. section 8.7
  • ITSE penalizes persistent errors while emphasizing larger errors through squaring. section 8.7
  • IAE measures total error magnitude without weighting its duration. section 8.7
  • ISE emphasizes large errors through squaring. section 8.7

Optimizing a simulated controller with a genetic algorithm

Model a transfer function, compute its step response, define a performance objective, and search Kp, Ki, and Kd with a genetic algorithm. A pymoo implementation uses 50 individuals for 60 generations, then plots the best response and reports rise time, settling time, overshoot, and steady-state value.

How Optimization Algorithms: AI techniques for design, planning, and control problems covers it

How deep it goes
Descends from gain-response heuristics to objective functions and genetic-algorithm implementation.
Examples
Uses heater temperature regulation, simulated step responses, four error metrics, and Python optimization code.
What it assumes
Assumes familiarity with PID gains and control responses while defining error metrics and optimization setup explicitly.
What you can do after
Apply it via pymoo and control to optimize gains and inspect response-quality metrics.
How it connects
Connects PID controllers with closed-loop control, step response, transfer functions, and genetic algorithms.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Optimization Algorithms: AI techniques for design, planning, and control problems. The section links point to the parts of the book it draws on.