Home › Forums › Usage › Equations in nested simulations This topic has 3 replies, 2 voices, and was last updated 3 months ago by Carsten. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts 4. January 2023 at 19:42 #6973 CarstenParticipant This schematic shows/tells what I want to do: schematic attached. I have problems understanding, in which order the equations are evaluated, especially in a nested simulation (s-param inside sweep) like this. Is there documentation about that? Attachments: eq_process_order.sch 4. January 2023 at 19:54 #6975 CarstenParticipant I just noted, my variable abs_s11_min is negativ! It seems to be the real value of S[1,1] at the minimum of abs(S[1,1]) 8. January 2023 at 19:55 #7022 QucsStudioKeymaster Equations are evaluated at the time when they are needed. However, you are right. The min() function should be improved to return the complex value. Thanks for pointing that out! The problem with the schematic above is that xvalue() always corresponds to the first dependency, but you are trying to use the second dependency of S[1,1]. 27. February 2023 at 20:01 #7100 CarstenParticipant Hi Michael, the same problem with the Min() function appears in the optimization sim. I want to minimize a goal that is complex. QS finds the value with the most negative Re(goal_variable). Probably based on the same source code piece Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic.