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

Add support for time-varying A, B, Q, R, S, K, E, F matrices #37

Open
dlcole3 opened this issue Jul 19, 2022 · 1 comment
Open

Add support for time-varying A, B, Q, R, S, K, E, F matrices #37

dlcole3 opened this issue Jul 19, 2022 · 1 comment

Comments

@dlcole3
Copy link
Collaborator

dlcole3 commented Jul 19, 2022

Currently, DynamicNLPModels.jl only takes an input of a single A or B matrix, but these can vary with time steps. Need to add support for handling a set of $N$ A or B matrices (e.g., $A_i \forall i = 0, 1, ..., N-1$).

@sshin23
Copy link
Member

sshin23 commented Jul 20, 2022

not only A and B, we should allow everything to be time-varying Q,R,S,K. Also, we should consider linear offset terms and allow them to be time-varying. E.g., consider q,r,d satisfing

stage cost: x' * (0.5 * Q*x - q) + u' * (0.5 * R*u - r) + x' * S *u
dynamics: x[t+1] = Ax[t] + Bu[t] + d[t]

Actually, supporting time-varying q,r,d should not be too difficult, but supporting time-varying matrices can be non-trivial. Would be good to first start with time-varying vectors

@dlcole3 dlcole3 changed the title Add support for time-varying A and B matrices Add support for time-varying A, B, Q, R, S, K, E, F matrices Jul 21, 2022
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