Skip to content

Commit 8e7afe5

Browse files
committed
saving cost-to-go expansion in backward pass
1 parent 03b338e commit 8e7afe5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/solvers/ilqr/backwardpass.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ function static_backwardpass!(solver::iLQRSolver2{T,QUAD,L,O,n,n̄,m}) where {T,
122122

123123
# Calculate cost-to-go (using unregularized Quu and Qux)
124124
Sxx, Sx, ΔV_ = _calc_ctg!(Q, K_, d_)
125+
S[k].xx .= Sxx
126+
S[k].x .= Sx
125127
ΔV += ΔV_
126128
k -= 1
127129
end

0 commit comments

Comments
 (0)