Skip to content

Commit fcb6e8f

Browse files
committed
added a comment
1 parent 9bf39b4 commit fcb6e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/setup.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ function OCPdef!(n::NLOpt)
263263
dx[:,st]=DiffEq(n,x_int,u_int,L,st);
264264
end
265265

266-
for st in 1:n.numStates
266+
for st in 1:n.numStates # TODO consider multiplying X*D to reduce computations (i.e. remove this for loop for the states)
267267
if n.s.integrationScheme==:lgrExplicit
268268
dynamics_expr[int][:,st]=@NLexpression(n.mdl, [j in 1:n.Nck[int]], sum(n.DMatrix[int][j,i]*x_int[i,st] for i in 1:n.Nck[int]+1) - ((n.tf)/2)*dx[j,st] )
269269
elseif n.s.integrationScheme==:lgrImplicit

0 commit comments

Comments
 (0)