\lambda update math in PID Lagrangian #304
xujinming01
started this conversation in
General
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The docstring in pid_update() shows that the PID controller update the lagrangian multiplier following the next equation:
$\lambda_{t+1} = \lambda_t + (K_p e_p + K_i \int e_p dt + K_d \frac{d e_p}{d t}) \eta$
$\lambda_{t+1} = K_p e_p + K_i \int e_p dt + K_d \frac{d e_p}{d t}$
![Snipaste_2024-02-23_13-18-33](https://private-user-images.githubusercontent.com/80799351/307228706-d7124512-299c-4f38-a043-825ceb021b5e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NTkwODksIm5iZiI6MTczOTY1ODc4OSwicGF0aCI6Ii84MDc5OTM1MS8zMDcyMjg3MDYtZDcxMjQ1MTItMjk5Yy00ZjM4LWEwNDMtODI1Y2ViMDIxYjVlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDIyMzMwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlhNjdiZmZjMDQzODNlMTkwNDUwZDE3NTQ0NWRiNzJiNjU1NDc0NjBjMTRjMDgxNmZmNTZmNzBmODIyMzMxMGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.HHJ0IZQTFc8YPEDVUeCWGTrQuRryXhMehUqU6ihDGrU)
But I cannot find the \eta in the method, and I don't find where to set it in the cfg.yaml
I think the math should be:
like the original paper:
I am very much looking forward to your reply.
Beta Was this translation helpful? Give feedback.
All reactions