@@ -12,9 +12,11 @@ class DDP(Controller):
1212 """ Differential Dynamic Programming
1313
1414 Ref:
15- Tassa, Y., Erez, T., & Todorov, E. (2012). . In 2012 IEEE/RSJ International Conference on
15+ Tassa, Y., Erez, T., & Todorov, E. (2012).
16+ In 2012 IEEE/RSJ International Conference on
1617 Intelligent Robots and Systems (pp. 4906-4913). and Study Wolf,
17- https://github.com/studywolf/control
18+ https://github.com/studywolf/control, and
19+ https://github.com/anassinator/ilqr
1820 """
1921 def __init__ (self , config , model ):
2022 """
@@ -41,7 +43,8 @@ def __init__(self, config, model):
4143
4244 # controller parameters
4345 self .max_iter = config .opt_config ["DDP" ]["max_iter" ]
44- self .mu = config .opt_config ["DDP" ]["mu" ]
46+ self .init_mu = config .opt_config ["DDP" ]["init_mu" ]
47+ self .mu = self .init_mu
4548 self .mu_min = config .opt_config ["DDP" ]["mu_min" ]
4649 self .mu_max = config .opt_config ["DDP" ]["mu_max" ]
4750 self .init_delta = config .opt_config ["DDP" ]["init_delta" ]
@@ -81,6 +84,8 @@ def obtain_sol(self, curr_x, g_xs):
8184 sol = self .prev_sol .copy ()
8285 converged_sol = False
8386 update_sol = True
87+ self .mu = self .init_mu
88+ self .delta = self .init_delta
8489
8590 # line search param
8691 alphas = 1.1 ** (- np .arange (10 )** 2 )
0 commit comments