Pharo /
AnnouncementsTutorialSimulationWhat is being simulatedThe code in Sandbox110421 simulates a sensor that regulates the temperature. The situation starts with a preferred temperature and a current temperature. The temperature randomly changes. When it gets below a certain temperature, the heater starts. When the temperature gets a little above the preferred temperature, the heater turns off. If the temperature gets above a certain temperature, the cooler starts. It stays on until the temperature is slightly below the preferred temperature. In the model, you can adjust the current temp, preferred temp, at what temperatures the heater and cooler turn on and off, the effect of the heater being on, the effect of the cooler being on, and you can set a fudge factor, to skew the adjustment |