The frugal greenhouse
Can you keep seedlings alive through a freezing night on the least energy?
The brief
Tune the greenhouse controller so the seedlings spend no more than 30 minutes outside 16–24 °C, never drop below 15.5 °C, and the heater relay is not worn out by constant switching, using as little energy as possible.
You start from
A 10 m² glass greenhouse with a 3 kW heater, a noisy thermometer (σ = 0.4 °C) and a proportional controller aiming for 18 °C. As delivered, someone leaves the vent open from 22:00, and the seedlings spend hours too cold.
Constraints
Time outside 16–24 °C ≤ 30 min
Seedlings tolerate brief excursions; hours outside the band stunt them.
Coldest inside ≥ 15.50 °C
Below about 15 °C these seedlings suffer chill damage (illustrative threshold).
Heater on/off switches ≤ 100
Every switch wears the heater relay; constant chatter shortens its life.
Worst case counts: every design runs on 3 test seeds and each constraint is judged on the worst one.
The lab
Runs in your browser · Greenhouse through a cold night
1 · Change the design
A higher target is safer for the plants but loses more heat all night.
More gain reacts harder to cold, but amplifies thermometer noise into heater switching.
Integral action removes the leftover offset of proportional control.
A bigger heater recovers faster but costs more to buy.
Ventilation lets moisture out; an open vent roughly doubles the heat loss.
Averaging readings calms the noise but delays the controller's view of the temperature.
Fixed by the brief: Thermometer noise σ = 0.4000 °C.
Live check against the constraints
- Time outside 16–24 °C✗ miss · 686 ≤ 30 min
- Coldest inside✗ miss · 12.91 ≥ 15.50 °C
- Heater on/off switches✓ pass · 21 ≤ 100
3 · Your attempts
No designs recorded yet. Run the starting design first: it is your baseline.
What does your chosen design give up compared with your other valid designs, and why is that the right trade? Quote numbers.
Name two assumptions of the model that could change your decision in the real world, and how you would test one.
6 · Submit
Choose a design in the attempts table. Saving needs an account; every attempt is re-run on the server and your work stays private to you.
Experiments to try
1. Shut the vent
Change only the vent time from 3 h to 0 h. How much of the cold time disappears, and what does it cost in energy?
2. Gain versus chatter
Double Kp three times. Record energy, coldest temperature and switches. Where does extra gain stop helping?
3. Filter the noise
With a high Kp, raise the moving-average window from 1 to 5. Why do the switches fall, and what happens to the coldest temperature?
The trade-offs
- A higher target temperature buys safety margin above 15.5 °C but every extra degree costs energy all night.
- High gain holds the temperature tightly but turns thermometer noise into relay chatter; filtering helps, at the price of lag.
What to submit
- Your chosen design (one of your attempts; the server re-runs it).
- Every attempt you made, so the server can check your exploration.
- A trade-off justification: what your design gives up and why (100–300 words).
- A technical reflection: two model assumptions that could change your decision.
Rubric
Meets every constraintObjective · re-checked on the server
The submitted design meets every constraint when the server re-runs the model on every challenge seed.
Engineering design
Explored the design spaceObjective · re-checked on the server
At least five distinct designs were tried, so the choice is informed rather than lucky.
Experimental reasoning
Found more than one valid designObjective · re-checked on the server
At least two distinct designs meet every constraint, so there is a real choice to justify.
Engineering design
Stretch: frugalObjective · re-checked on the server
The chosen design meets every constraint on at most 16.3 kWh.
Mathematical modelling
Justifies the trade-offNeeds a qualified reviewer
Explains, with numbers from the attempts, what the chosen design gives up compared with the other valid designs, and why that is the right trade for the stated user.
Engineering design
Knows the model's limitsNeeds a qualified reviewer
Names at least two assumptions of the model that could change the decision in the real world, and how one could be tested.
Conceptual understanding
Communicates clearlyNeeds a qualified reviewer
A stranger could repeat the reasoning from the write-up: units on every number, one idea per sentence, the decision stated first.
Independent inquiry
Lessons that help
The model
Greenhouse through a cold night: a simplified educational model, not a digital twin.
- One well-mixed air volume (a single temperature).
- Heat capacity and loss coefficient are illustrative values for a ~10 m² glass greenhouse, not measurements.
- Outdoor temperature follows a smooth daily curve (11 °C at 15:00, 1 °C at 03:00).
- PI controller with conditional-integration anti-windup; heater power is continuous between 0 and its rating.
Open it on the full Experiment Bench · Simulation OS · Greenhouse
Content status: technically checked (automated checks only). Not yet reviewed by an educator.