Trying to find minimum parameter values from a complex script.
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello,
I've been pulling my hair out over this for months. I am a complete novice with Matlab, having learnt everything I know from help guides etc.
I have a script which inputs 7 parameters into a series of different calculations. Which calculations the script uses depends on the differing size of the parameters.
The calculation works out a predicted dataset for a set amount of intervals (I'm using 11 different values) based on the input parameters.
From this I compare the generated data to genuine data I have collected. With the aim of the script to loop until it finds the smallest difference between the two.
Straight forward right? Except I couldn't get fminsearch to work on the combination of calculations (as these differ every iteration).
So the workaround script I have written works, but is super clunky.
In addition, the 6 of the 7 parameters could vary from 0 to 1000 and I need them in intervals of 1. The way that I am currently running the script is to create an array of all the combination of parameters first, run through the script and then report back which combination of parameters in the array found the minimum difference between the generated data and the actual data. The mathmatics will already have identified that I'm struggling to get all the parameters into an array without 1000+GB of Ram.
I don't know enough about Mapping and Reducing, but I assume that might be the way to solve this, unless there is something really obvious I'm missing. Any help anyone can give would be super appreciated (and might stop me going bold).
Many thanks in advance.
4 Commenti
Torsten
il 14 Dic 2022
The script won't help. You don't have a choice: either the optimization solver succeeds or not. Just test it out.
Maybe "ga" is the most suitable tool in your case to start with because of the possible "jumps" in your model equations.
Risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!