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

Allow input parameter to be a function of time #895

Closed
valentinsulzer opened this issue Mar 18, 2020 · 1 comment
Closed

Allow input parameter to be a function of time #895

valentinsulzer opened this issue Mar 18, 2020 · 1 comment

Comments

@valentinsulzer
Copy link
Member

(or add InputFunctionParameter object).

Not sure this is possible

Allow input parameter to be a function of time, without needing to re-discretize each time.

  • arbitrary function of time doesn't seem possible as it requires re-discretising the tree each time.
  • parametrized function already possible, e.g.
def linear(c):
   return InputParameter("a") + InputParameter("b") * c

then tune "a" and "b".

  • interpolants could be done (e.g. for quickly evaluating different drive cycles). Would require re-building the casadi tree for each solve, but that's not too bad. Is there a way without rebuilding the tree?
@valentinsulzer
Copy link
Member Author

Don't think this is possible. Stepping with constant parameters would be the closest thing, already possible

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