Skip to content

Fix refgain controllers with integral action#1222

Open
marko1olo wants to merge 1 commit into
python-control:mainfrom
marko1olo:fix-refgain-integral-action
Open

Fix refgain controllers with integral action#1222
marko1olo wants to merge 1 commit into
python-control:mainfrom
marko1olo:fix-refgain-integral-action

Conversation

@marko1olo

Copy link
Copy Markdown
Contributor

Summary

Fix create_statefbk_iosystem(..., feedfwd_pattern="refgain") when integral action is enabled.

The controller feedthrough matrix should use only the proportional state gain columns. The integral gain columns already define the controller output matrix, and including them again in D_lqr made the D matrix wider than the controller input vector.

Closes #1189.

Tests

  • python -m pytest control/tests/statefbk_test.py::test_refgain_pattern_integral_action control/tests/statefbk_test.py::test_refgain_pattern -q
  • python -m pytest control/tests/statefbk_test.py -q
  • python -m ruff check control/statefbk.py control/tests/statefbk_test.py
  • python -m compileall -q control\statefbk.py control\tests\statefbk_test.py
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug in create_statefbk_iosystem, option refgain

1 participant