Update homeostatic_regulator.m