question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create a PID tunning function

See original GitHub issue

Create a PID tunning function and also wrap it to matlab compatibility.

It must heritage the tf class as answer and print in the format Kp + Ki * 1/s + Kd * s instead num / den format.

_Originally posted by @kingaza in https://github.com/python-control/python-control/issues/139#issuecomment-289278348_

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ilayncommented, Oct 14, 2021

A mildly acceptable autotuner work is a lot of work. Under the pidtune of matlab there is the same machine that also runs hinfstruct etc. in a nutshell solves a NON3 (nontrivial nonsmooth nonconvex) optimization problem. Something that comes close to it is HIFOO solver but the authors (which I knew some of them) refused to unGPL it to get it out of matlab domain. So I skipped it in the past and I need to find some time to read the article version.

Otherwise it won’t move far from returning meaningful results for bunch of 2nd order systems but fail on almost everything else.

0reactions
hildogjrcommented, Oct 14, 2021

Good point, even because this will make possible Hinf, H2 and other control calculations.

The most advanced solver that I know in Python is cvxpy (convex solver), that is not the needed here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Tune a PID Controller - RealPars
PID controllers are very sophisticated devices with many adjustable parameters. The most widely used PID tuning method is trial and error.
Read more >
How to Tune a PID Controller - PID Explained
Start by setting the Integral and Derivative values to 0. Then increase the proportional until the controller starts to become unstable and ...
Read more >
Open PID Tuner - MATLAB & Simulink - MathWorks
Create a Simulink model containing a PID Controller, Discrete PID ... Select Tuning Method drop-down list, select Transfer Function Based (PID Tuner App)...
Read more >
Introduction: PID Controller Design
C = s^2 + s + 1 ----------- s Continuous-time transfer function. Alternatively, we may use MATLAB's pid object to generate an equivalent...
Read more >
PID Control
tional (left), PI (middle) and PID controllers (right). The process has the transfer function P(s) = 1/(s + 1)3, the controller parameters are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found