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

Inputs and States #71

Open
Abdu-Hekal opened this issue May 30, 2023 · 4 comments
Open

Inputs and States #71

Abdu-Hekal opened this issue May 30, 2023 · 4 comments

Comments

@Abdu-Hekal
Copy link
Collaborator

When training, the number of inputs needs to be equal to the number of states. It seems to me that for n states, we should have n-1 inputs (last state doesn't have input). This also applies when running koopman where to output n states we should have an array teval of length n-1 instead of n.

@Abdu-Hekal
Copy link
Collaborator Author

@EthanJamesLew

@EthanJamesLew
Copy link
Owner

@Abdu-Hekal This is an interesting point. I agree for KIC with constant inputs you should not need that last state. However, there are formulations that would need the extra input, see Proctor, J. L., Brunton, S. L., & Kutz, J. N. (2018). Generalizing Koopman theory to allow for inputs and control. SIAM Journal on Applied Dynamical Systems, 17(1), 909-930, equation 3.7a. Because of this, I felt that the Trajectories object should allow the number of inputs to equal the number of states to allow users to treat them as states if they want.

@EthanJamesLew
Copy link
Owner

On the solve_ivp requiring one less input value, I agree entirely. I should change it

@EthanJamesLew
Copy link
Owner

@Abdu-Hekal is this issue still relevant? Has it been detrimental to your work?

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

2 participants