-
Notifications
You must be signed in to change notification settings - Fork 1
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
Traj opt 2DOF wing flapping #51
Conversation
For the dirtran optimizationFirst should try the simplest optimization (smallest dimension) and then slowly increase complexity.
|
Confirmed that the y2-dependence of the objective gradient is due to the appearance of psi (hinge angle) in the AoA. Fixing that results in y3-dependence only. |
There is something somewhat wrong with the rescaling. When increasing it, the hinge angle wants to become higher, though the actual underlying dynamics should have not changed |
Nonconvexity:
|
Constraint: linearization of dynamics (as before). Nothing needs to change from the MPC module. This will set A, b for OSQP. Actuator constraints
Objective: quadratic approx can be used for OSQP. Two choices: one needs Hessian, and one needs only Jacobian. See https://math.stackexchange.com/questions/2349026/why-is-the-approximation-of-hessian-jtj-reasonable One or both of these could be symbolically implemented and stored in Python (maybe using autograd) and OSQP update could update P, q.
Implementation