Python Forum

Full Version: Optimise experiment control parameters
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I say chaps,
I have an experiment controlled by 6 parameters, hooked up to a Raspberry Pi. I want to run a loop: set parameters, do experiment, get result, estimate better parameters based on previous history, do experiment.......
How can I do this in Python? I've trawled the Web but the optimise routines seem to presume some equation to find the maximum of, or some purely mathematical situation, not a physical contrivance. I obviously haven't found the optimum Google search terms!
I could optimise the parameters two at a time, first coarse tune , then fine tune then finer tune.
Suggestions pointing to some bit of code already out there would be most welcome.
TTFN
rickticktock
You can do random search, run for loop and choose parameters in multidimensional space randomly, do experiment, and choose the best case; another approach is to use simulated annealing method, it is almost the same, but takes into account local estimations of probability where the optimal solution is likely existing. Everything depends on how much time do you need to do one experiment? Searching in 6D might be hard...
Thanks scidam. A 2d search could be the way to go, then another 2d search, then another 2d search. Then start again. The physical problem changes slowly anyway, it's literally a question of keeping on top of it.
TTFN