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 include the destination as hard constrain #9

Open
johnysyumich opened this issue Mar 2, 2019 · 0 comments
Open

How to include the destination as hard constrain #9

johnysyumich opened this issue Mar 2, 2019 · 0 comments

Comments

@johnysyumich
Copy link

My initial code is too long to put it here, so I will use a simple case but has the same problem instead.
I use VehicleModels.jl and NLOptControl.jl in this code. I set the goal as 70 0 in this scenario. But

c = Dict("goal"=>Dict("x"=>70.,"yVal"=>0.,"tol"=>0.1), "obstacle"=>Dict("x0"=>[25,55],"y0"=>[0,0],"vx"=>[0.,0.],"vy"=>[0.,0.],"radius"=>[1,1]),"tolerances"=>Dict("fx"=>NaN,"fy"=>NaN))

The goal here is not a hard constrain. I have to put the final destination in the XF which I now set to be NaN.

But if I do that, an error would show that the New columns must have the same length as old columns.

It's a simple case, it definitely has a optimal solution.
If I didn't include it inside the XF, the vehicle wouldn't move. And if I include it in XF, the error showed up
4
1
2
3

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