-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FlorisModel set method is slow to call if we don't need to update flow field parameters #865
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using FLORIS in a MPC context, where at each time-step I need to set the wind speeds and directions once, and then iterate for many values of the yaw offsets. My optimization procedure slowed significantly with the update from
reinitialize
to.set
, and on profiling the code I found that virtually all of the time was spent in the_reinitialize
method. My workaround has been to callset
once for each time step, and then during the optimizer iterations to call:to update the turbine powers for new yaw angles. It may be that the
run
method could also be optimized for yaw only changes, I haven't investigated.The text was updated successfully, but these errors were encountered: