- This topic has 11 replies, 3 voices, and was last updated 1 year, 10 months ago by Carsten.
-
AuthorPosts
-
3. December 2022 at 15:09 #6839
Is it possible to do a parameter sweep, which involves an optimization?
Something like this. (also attached as project file)
The schematic works, when L1_value is fixed. Activating the parameter sweep instead leads to
Error in ‘Opt1’: Goal result ‘real_part_123MHz’ is not a single number.
- This topic was modified 1 year, 11 months ago by Carsten.
- This topic was modified 6 months ago by maelh. Reason: Convert all remaining http links to https links
Attachments:
5. December 2022 at 17:52 #6850This is currently not possible. I’ve never thought about such a task. Indeed it would make sense. But several things (like “apply optimized values to the circuit”) would not work then.
5. December 2022 at 21:09 #6851So another donation? 🤔🙂
I guess questions like the “apply optimized…” could be implemented later. necessary would be e.g. to make xy.opt an array with the size of the parameter sweep. I just don’t know if this would mess up your code base. Somebody could also probably come up next with another still unsupported combination of tasks. And of course, these things can probably be done with matlab/octave “from the outside”.
Still, a scenario like above seems to me like a nice feature that could be useful for others. Me, however would be glad to have it.
10. December 2022 at 19:50 #6874I had a closer look on it. The realization is quite straight forward and it is a nice idea, indeed. Now I wonder why I haven’t thought about it earlier.
11. December 2022 at 12:47 #6875QucsStudio is able to optimize several parameters at a time.
11. December 2022 at 14:32 #6878Modify the *.txt extension to *.pdf. This is a weakly determined task.
11. December 2022 at 14:39 #6879Resent in *.png
Attachments:
16. December 2022 at 19:20 #6916Hi zhu.
my example above was created on purpose to show the limitations of qs.
I find your systematic test very interesting. I would have thought that the example has no local optima, thus being an easy example.
19. December 2022 at 22:53 #6942indeed, if the parameter space is sampled too sparse, a lot of local maxima appear
- This reply was modified 1 year, 10 months ago by Carsten.
19. December 2022 at 23:11 #6946.. on the other hand, the optimizer algos are not limited in resolution and there should be a clear gradient towards the maximum inductance value.🤔
20. December 2022 at 16:22 #6949Hi Carsten,
The task has a minimum of Re(Z)=0.2 at c1=0 independent of L1. It is confirmed by plotting the analythical result. However computing with real(Z) form simulations a totally different (noisy) plot is obtained. It is not a QucsStudio issue: the same results arise from Octave and Matlab as well. The oscillating optimization results may also have the same origin.
Any idea?
20. December 2022 at 21:35 #6953your formula must be wrong. At resonance frequency (e.g. 25pF / 67 nH at 123MHz), Z is a very high ohmic (real) value. I don’t see that in your plot.
compare with figure (2): L at resonance should be 1/(omega^2*C). This corresponds nicely with the chain of peaks.
-
AuthorPosts
- You must be logged in to reply to this topic.