Don - If you can easily tune the tuner by hand .... I always teach my programming students to just watch themselves manually performing the task, then write down a set of instructions so someone else could do that, and then write the program to follow those steps.
Seems to me an exhaustive search trying all combinations has to find the lowest SWR, but that would take time. You could perhaps first run through your smart search method and if it gets close enough stop there, and if not, try all values. If you could get an approximation of the complex impedance of the load (not exactly sure how to do that offhand) you could then calculate what is approximately needed to best match it, and search around there. I will be interested in reading the ideas of others on this topic! 73/72 - Mike WA8BXN -------Original Message------- From: Don A few months ago I maintained a brief correspondence with some on this list with an interest in a homebrew balanced autotuner. The project is nearing the point where I will be installing it into a K2 case. At the moment, though, I am having trouble coming up with a software algorithm that finds minimum swr and this message is a request for suggestions.