Martin McCormick wrote: > > I thought that the concept of fuzzy logic was simply that the rules > for solving a problem change based on inputs from the environment. As an > example, we are in a time of year when some heating is required to make the > house comfortable. The problem is that there is a great variation from day > to day as to current weather conditions so that if one uses a timer-based or > set-back thermostat to turn up the heat in the morning, one runs the risk of > having heat on when the outside temperature is not cold. A fuzzy thermostat > controller would have a set-back schedule in it just like the non-fuzzy kind, > but it would also have a thermistor outside to read the current temperature > and would not apply any heat if that were above a certain set point. The > fuzzy controller might get input from pin switches in window frames to see > if the residents of the house had opened a window or two during the night > since it would be stupid to turn on any heat if that were the case. Earlier today I posted a fuzzy code fragment for a home control system similar to what you are suggesting. It has linguistic variables for the time of day. (morning, day, evening, night) as well as for inside and outside temperatures. It also has some "green" rules that will not turn on the furnace if the outside temperature is hotter than the inside the oposite for airconditioning. In fuzzy's style all the rules are evaluated and a weighted result is produced. Walter Banks