Temperature control in buildings is a dynamic resource allocation problem, which can be approached using nonlinear methods based on population dynamics (i.e., replicator dynamics). A mathematical model of the proposed control technique is shown, including a stability analysis using passivity concepts for an interconnection of a linear multivariable plant driven by a nonlinear control system. In order to illustrate our control strategy, some simulations are performed, and we compare our proposed technique with another control strategy (conventional PI) in a model with a fixed structure.