Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reintroduce automatic free times #34

Open
PierreMartinon opened this issue Sep 27, 2023 · 1 comment
Open

Reintroduce automatic free times #34

PierreMartinon opened this issue Sep 27, 2023 · 1 comment
Assignees

Comments

@PierreMartinon
Copy link
Member

PierreMartinon commented Sep 27, 2023

keyword free instead of numeric value for initial/final time in .def (or if too annoying use additional keys such as free.initial.time true/false)

Internally:

  • use [0,1] fixed time grid
  • append parameters for free times, with small lower bounds
  • rescale time from [0,1] to [t0,tf] for OCP functions and time steps in dynamics equations, as well as solution file
  • note that this changes the type of the final_time and time arguments passed to the OCP functions, so the declarations in each problem.cpp file need to be updated -_- It would be more practical to have this block included from a single source file in src/, if possible
@PierreMartinon
Copy link
Member Author

Started the free final time case. Initial time is way less frequent so will probably be postponed, maybe to the full event times handling.
Tests:

  • fixed final time case should not be affected
  • free final time case (not minimum time) eg goddard
  • minimum time case eg ?

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

No branches or pull requests

1 participant