GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bug in place_acker · Issue #1190 · python-control/python-control

bug in place_acker #1190

New issue
Copy link
New issue
Copy link
Closed
#1195
Closed
bug in place_acker#1190
#1195
Copy link

Description

@miroslavfikar
miroslavfikar
opened on Dec 30, 2025
Issue body actions

The place_acker function works for SISO systems only and returns 1D array instead of 2D array.

1D->2D array can be corrected in:

python-control/control/statefbk.py

Line 254 in 4242976

K = K[-1, :] # Extract the last row

The original line
K = K[-1, :] # Extract the last row
should be changed for
K = K[-1:, :] # Extract the last row

MIMO system specification throws errors. Here is an example:

import numpy as np
import control as ct

nx = 3
nu = 1
ny = 1
sys = ct.rss(states=nx, inputs=nu, outputs=ny)
poles = - np.arange(1, nx+1, 1)
Kp = ct.place(sys.A, sys.B, poles)
Ka = ct.acker(sys.A, sys.B, poles)
print(Kp.shape, Ka.shape)

nx = 3
nu = 2
ny = 2
sys = ct.rss(states=nx, inputs=nu, outputs=ny)
poles = - np.arange(1, nx+1, 1)
Kp = ct.place(sys.A, sys.B, poles)
Ka = ct.acker(sys.A, sys.B, poles)

Activity

  1. murrayrm
    added a commit that references this issue on Jan 19, 2026

    fix return shape for place_acker (python-control#1190)

    3215681
  2. murrayrm
    linked a pull request that will close this issuefix return shape for place_acker (#1190) #1195on Jan 19, 2026
  3. murrayrm commented on Jan 19, 2026

    @murrayrm
    murrayrm
    on Jan 19, 2026
    Member
    More actions

    Good catch. Fixed in #1195.

  4. bnavigator
    added a commit that references this issue on Feb 15, 2026

    Merge pull request #1195 from murrayrm/fix_place_acker-19Jan2026

    854f5f7
  5. bnavigator
    closed this as completedin #1195on Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.