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 — Optimal control results should include the final cost achieved · Issue #694 · python-control/python-control

Optimal control results should include the final cost achieved #694

New issue
Copy link
New issue
Copy link
Closed
#712
Closed
Optimal control results should include the final cost achieved#694
#712
Copy link
Assignees
murrayrm
Labels
enhancement
Milestone
0.9.2

Description

@murrayrm
murrayrm
opened on Jan 26, 2022
Issue body actions

The the optimal control module (ct.optimal), it would be useful if the functions that compute an optimal trajectory returned the cost associated with the final trajectory that is returned, so that it doesn't have to be recomputed. (Perhaps also a function to compute the cost along a curve according to an arbitrary cost function.)

Activity

  1. murrayrm
    added
    enhancement
    on Jan 26, 2022
  2. ThomasGiavasopoulos commented on Mar 2, 2022

    @ThomasGiavasopoulos
    ThomasGiavasopoulos
    on Mar 2, 2022
    More actions

    Is there currently an option to return the value of the cost associated with a final trajectory given a time horizon?

  3. murrayrm commented on Mar 3, 2022

    @murrayrm
    murrayrm
    on Mar 3, 2022
    MemberAuthor
    More actions

    The return object from ct.optimal.solve_ocp is a OptimizeResult object, so result.fun will get you the value of the function. Whoever handles this enhancement should change that to be something more meaningful (eg, result.cost as a property that maps to result.fun).

  4. murrayrm commented on Mar 18, 2022

    @murrayrm
    murrayrm
    on Mar 18, 2022
    MemberAuthor
    More actions

    FYI, I have added this to an upcoming PR.

  5. murrayrm
    self-assigned this
    on Mar 18, 2022
  6. murrayrm
    added this to the 0.9.2 milestone on Mar 19, 2022
  7. ThomasGiavasopoulos commented on Mar 19, 2022

    @ThomasGiavasopoulos
    ThomasGiavasopoulos
    on Mar 19, 2022
    More actions

    FYI, I have added this to an upcoming PR.

    That sounds really useful. Hope that it gets added soon!

  8. murrayrm
    linked a pull request that will close this issueOptimal control enhancements #712on Mar 23, 2022
  9. 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

enhancement

Type

No type

Projects

No projects

    Milestone

    • 0.9.2

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402520 — 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.