You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an array of nonlinear differentials (a, in the example below) that I use as part of an Euler integration step in finding an optimal trajectory. In some cases, one of the differentials is 0, but I haven't been able to figure out how to add it to the vector
Code for reproducing:
a = Vector{NonlinearExpr}(undef, 3)
a = 0.0
I've also tried
a = Vector{NonlinearExpr}(undef, 3)
a[1] = @expression(model, 0.0)
and
a = Vector{NonlinearExpr}(undef, 3)
a[1] = @NLexpression(model, 0.0)
I have it working with a = Vector{Any}, but I expect there is a better solution
The text was updated successfully, but these errors were encountered:
I have an array of nonlinear differentials (
a
, in the example below) that I use as part of an Euler integration step in finding an optimal trajectory. In some cases, one of the differentials is 0, but I haven't been able to figure out how to add it to the vectorCode for reproducing:
I've also tried
and
I have it working with
a = Vector{Any}
, but I expect there is a better solutionThe text was updated successfully, but these errors were encountered: