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 — Steering optimal control example from documentation failing · Issue #636 · python-control/python-control

Steering optimal control example from documentation failing #636

New issue
Copy link
New issue
Copy link
Closed
#712
Closed
Steering optimal control example from documentation failing#636
#712
Copy link
Assignees
murrayrm
Milestone
0.9.2

Description

@mhassell
mhassell
opened on Jul 6, 2021
Issue body actions

I was working through the example in https://python-control.readthedocs.io/en/latest/optimal.html and I found that I am not able to get the results to work. My resulting state just seems to keep drifting left from the target lane. Am I missing something here? Run on Linux Mint, Python 3, in Jupyter Lab.

Notebook is here: https://github.com/mhassell/control_issue/blob/main/example.ipynb

Code/images: https://github.com/mhassell/control_issue/

As a sanity check I also ran it as a script, not_jupyter.py, using python3. Same deal. Saved the png as from_script_not_jupyter.png

Activity

  1. bnavigator commented on Jul 7, 2021

    @bnavigator
    bnavigator
    on Jul 7, 2021
    Contributor
    More actions

    Hi, the optimal example in the docs might be a bit outdated. Did you try with examples/steering-optimal.py as well? The definition of the cost functions and optimization methods were adjusted a bit.

    Reacted by Matthew Hassell
  2. bnavigator
    changed the title [-]Example failing in Jupyter Lab on Linux Mint[/-] [+]Steering optimal control example from documentation failing[/+] on Jul 7, 2021
  3. mhassell commented on Jul 7, 2021

    @mhassell
    mhassell
    on Jul 7, 2021
    Author
    More actions

    Thank you!

  4. ThomasGiavasopoulos commented on Feb 2, 2022

    @ThomasGiavasopoulos
    ThomasGiavasopoulos
    on Feb 2, 2022
    More actions

    Thank you! Had the same issue with the outdated code. Thanks again!

  5. murrayrm
    self-assigned this
    on Mar 18, 2022
  6. murrayrm
    added this to the 0.9.2 milestone on Mar 19, 2022
  7. murrayrm
    linked a pull request that will close this issueOptimal control enhancements #712on Mar 23, 2022
  8. murrayrm
    closed this as completedin #712on Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @murrayrm
    murrayrm

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    • 0.9.2

    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.