Skip to content
Snippets Groups Projects
Commit e5bbd3ce authored by Carlos Mastalli's avatar Carlos Mastalli
Browse files

[bugfix] Copying properly the data for DAMLQR

parent ba08611c
No related branches found
No related tags found
No related merge requests found
...@@ -216,10 +216,10 @@ class DifferentialActionDataLQR: ...@@ -216,10 +216,10 @@ class DifferentialActionDataLQR:
self.Lxu = self.L[:ndx,ndx:] self.Lxu = self.L[:ndx,ndx:]
self.Luu = self.L[ndx:,ndx:] self.Luu = self.L[ndx:,ndx:]
self.Lxx = model.Q+model.Q.T np.copyto(self.Lxx, model.Q+model.Q.T)
self.Lxu = np.zeros((nx, nu)) np.copyto(self.Lxu, np.zeros((nx, nu)))
self.Luu = model.U+model.U.T np.copyto(self.Luu, model.U+model.U.T)
class DifferentialActionModelNumDiff(DifferentialActionModelAbstract): class DifferentialActionModelNumDiff(DifferentialActionModelAbstract):
def __init__(self,model,withGaussApprox=False): def __init__(self,model,withGaussApprox=False):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment