optimization¶
Optimization of virtual mechanisms: plan the closed loop’s motion and tune the Params.
Modules
Gradient-free tuning of Params by ask and tell: you run the episodes, it picks the next. |
|
What a block adds to: variables, constraints and costs, and the system's compiled functions. |
|
Collocation: the whole motion at once, with the closed loop as constraints. |
|
Equilibrium: the closed loop at rest, as a static problem. |
|
Moving-horizon estimation: the state that best explains the last readings, as a least squares. |
|
MPC: the plan as a receding-horizon controller of a virtual mechanism's Params. |
|
The assembled nonlinear program, ready for any solver. |
|
Problem: a system, the Params to optimize, and the blocks that make the program. |
|
The outcome of a solve: the planned motion, the values found, and how to apply them. |
|
Where the references sit, searched on a grid: one reference at a time, the best plan kept. |
|
Shooting: one rollout of the closed loop per interval, joined by continuity constraints. |
|
The nonlinear solver: IPOPT and the other presets, and the progress of a solve. |
|
TankBudget: the planned changes of the controller's Params stay within a tank's energy. |
|
Terms of a problem: the effort, a coordinate to bring to zero, a coordinate to keep in bounds. |
|
The nodes of a planned motion, as the terms of a problem see them. |
|
Decision variables stacked into one vector, each scaled so that the solver sees values near 1. |
|
Virtual states in a plan: a controller's own states, as unknowns advanced as it advances them. |