|
5 | 5 | A Julia package for solving constrained trajectory optimization problems with iterative LQR (iLQR).
|
6 | 6 |
|
7 | 7 | ```
|
8 |
| -minimize gT(xT; wT) + sum(gt(xt, ut; wt)) |
9 |
| -x1:T, u1:T-1 |
10 |
| -subject to xt+1 = ft(xt, ut; wt) , t = 1,...,T-1 |
11 |
| - x1 = x_init |
12 |
| - ct(xt, ut; wt) {<,=} 0, t = 1,...,T |
| 8 | +minimize cost_T(state_T; parameter_T) + sum(cost_t(state_t, action_t; parameter_t)) |
| 9 | +states, actions |
| 10 | +subject to state_t+1 = dynamics_t(state_t, action_t; parameter_t), t = 1,...,T-1 |
| 11 | + state_1 = state_initial |
| 12 | + constraint_t(state_t, action_t; parameter_t) {<,=} 0, t = 1,...,T |
13 | 13 | ```
|
14 | 14 |
|
15 |
| -Fast and allocation-free gradients and Jacobians are automatically generated using [Symbolics.jl](https://github.com/JuliaSymbolics/Symbolics.jl) for user-provided costs, constraints, and dynamics. Constraints are handled using an augmented Lagrangian framework. |
| 15 | + |
| 16 | +- Fast and allocation-free gradients and Jacobians are automatically generated using [Symbolics.jl](https://github.com/JuliaSymbolics/Symbolics.jl) for user-provided costs, constraints, and dynamics. |
| 17 | + |
| 18 | +- Constraints are handled using an [augmented Lagrangian framework](https://en.wikipedia.org/wiki/Augmented_Lagrangian_method). |
| 19 | + |
| 20 | +- Cost, dynamics, and constraints can have varying dimensions at each time step. |
| 21 | + |
| 22 | +- Parameters are exposed (and gradients wrt these values coming soon!) |
16 | 23 |
|
17 | 24 | For more details, see our related paper: [ALTRO: A Fast Solver for Constrained Trajectory Optimization](http://roboticexplorationlab.org/papers/altro-iros.pdf)
|
18 | 25 |
|
@@ -75,3 +82,9 @@ solve!(prob)
|
75 | 82 | # solution
|
76 | 83 | x_sol, u_sol = get_trajectory(prob)
|
77 | 84 | ```
|
| 85 | +## Examples |
| 86 | + |
| 87 | +Please see the following for examples using this package: |
| 88 | + |
| 89 | +- [Trajectory Optimization with Optimization-Based Dynamics](https://github.com/thowell/optimization_dynamics) |
| 90 | +- [Dojo: A Differentiable Simulator for Robotics](https://github.com/dojo-sim/Dojo.jl) |
0 commit comments