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

Fix in Exercise 4 #1

Open
4flixt opened this issue Jun 5, 2020 · 0 comments
Open

Fix in Exercise 4 #1

4flixt opened this issue Jun 5, 2020 · 0 comments

Comments

@4flixt
Copy link
Owner

4flixt commented Jun 5, 2020

When the mpc_solver for the final loop is created, the equality constraints are appended to g, and np.zeros((nx, 1)) are appended to lb_g and ub_g. However, in the loop when the mpc_solver is called, the values given for the lbg and ubg input parameters is simply the scalar 0. lb_g and ub_g are not used in the creation og the mpc_solver either, and I can't find anywhere they are used, and thus wondering about the purpose of them? My guess is that you could have different values on them, and they would correspond to the equality in g, but if I try to pass them as input arguments, I get an error.

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