Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

path follow with custom cost function #30

Open
nag92 opened this issue Sep 19, 2020 · 1 comment
Open

path follow with custom cost function #30

nag92 opened this issue Sep 19, 2020 · 1 comment

Comments

@nag92
Copy link

nag92 commented Sep 19, 2020

I am trying to design a custom MPC to follow a trajectory. The cost function has the form of

(x-x_i)^T Q_i (x-x_i) + (u-u_i)^T R (u-u_i)

where the x_i is desired value at that point. Is this possible using this framework? if so how would I go about setting up such a cost function?

@sichaozhang1112
Copy link

hello,
you can write this cost function into the form 0.5z^TPz+q^Tz, (equation(2) in paper https://arxiv.org/pdf/1703.00443.pdf), which is a general form of quadratic programming. in this way, x_i would be some coefficient in vector q.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants