Skip to content

Commit

Permalink
added a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
huckl3b3rry87 committed Dec 11, 2017
1 parent 9bf39b4 commit fcb6e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ function OCPdef!(n::NLOpt)
dx[:,st]=DiffEq(n,x_int,u_int,L,st);
end

for st in 1:n.numStates
for st in 1:n.numStates # TODO consider multiplying X*D to reduce computations (i.e. remove this for loop for the states)
if n.s.integrationScheme==:lgrExplicit
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] )
elseif n.s.integrationScheme==:lgrImplicit
Expand Down

0 comments on commit fcb6e8f

Please sign in to comment.