adding wind as a function of altitude in simulate.py, where altitude is a decision variable #136
Replies: 2 comments 1 reply
-
Hi - the immediate answer is that you can iterate by direct indexing: for i in range(len(height):
h = height[i] But, this is likely not what you want to do here. The Mars atmosphere model you're trying to implement is not
Separately, direct indexing like this is discouraged because it leads to deep, slow-to-trace computational graphs in the automatic differentiation engine. Instead, try to vectorize or use vector conditionals when able. |
Beta Was this translation helpful? Give feedback.
-
@peterdsharpe could you please confirm if the simulation is correctly accounting for the effect of wind?
|
Beta Was this translation helpful? Give feedback.
-
The code below is giving an error as follows when I am trying to add wind to our consideration which varies with z_e(which is a decision variable). Is there any solution to this problem please share, I will be extremely grateful.
Beta Was this translation helpful? Give feedback.
All reactions