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

How to define my optimal control problem? #3

Open
yywangvr opened this issue Jul 21, 2018 · 1 comment
Open

How to define my optimal control problem? #3

yywangvr opened this issue Jul 21, 2018 · 1 comment

Comments

@yywangvr
Copy link

Hi, I really like your work, and I succeed in running the test.

But I do not know how to define my own problem to be solved with your code? Could you please give me a little help. Thank you very much.

@michele-segata
Copy link
Owner

I don't really get what you are asking for. I would suggest to read the documentation to understand how your problem should look like in order to be solved by the library (the quadratic optimization problem should be strictly convex) and then see how the sample problem in section 2 has been implemented in the code (test-mpc.cc).
In the end, you just need to give to the solver the matrices A, B, C1, C2, and Q. If you need them, you can also enable constraints and slacks.

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