Yeah, I think I have to add at least cost per watt since people have different costs. The wattage should be calculated from the frequency and mode. At max stable frequency of 700Mhz, each unit (5 grid chips) consumes: 21watts (BTC mode), 22.8 watts (dual mode) and 2.2 watts (scrypt mode). So the I think the only thing that will be required is knowing the cost per watt (or Kw) of electricity. The rest is calculated.
The main idea is that cgminer could then select which of the 3 modes to use to maximize mining profit, without user intervention.
I am not sure I am following this, can you give me some more? Couldn't this be fixed by creating a server/deamon that provides a feed for a fictitious coin? The fictitious coin would have whatever attributes are required (to account for LOT style coins for example where an "average" may not be representative without taking into account variance). I was thinking that taking that part out of cgminer would be a good idea so that server feeds for new coins could easily be incoporated without having to mess with the cgminer code any further. Or am I missing your point?
I thought about doing something for solo mining, but the coding would be too much for right now; you would have to create a database of all alt-coins and be able to keep price/difficulty curves up to date for all of the coins . it would also make running on a low power embedded device like an rPi a real challenge. I would love to do this project, but I know my limits!