How to estimate the computational cost of gradient optimization #545
Replies: 2 comments 1 reply
-
The primal and adjoint runtime is printed to the screen (right after each primal and adjoint solution) when you run DAFoam. |
Beta Was this translation helpful? Give feedback.
-
Yes.
The reason they are different is that, SLSQP does line searches at each optimization iteration, so it may perform multiple flow solutions until it finds a good step size. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I want to estimate the computational cost of gradient optimization. I used the SLSQP algorithm to optimize the airfoil and iterated 30 times. The results showed that the function was evaluated 35 times and the gradient was evaluated 31 times. Are the extra 5 CFD calculations a result of the line search?
We know the computational cost of solving the adjoint equation is comparable with that of flow simulation. Does this mean that the computational cost of this optimization approximates 66 CFD calculations? Are there any other missing calculated costs?
Looking forward to your answer, thank you.
Beta Was this translation helpful? Give feedback.
All reactions