%!PS Supplementary Data 1: Parameter values used for behavior simulations """Dynamic switching between escape and avoidance regimes reduces Caenorhabditis elegans exposure to noxious heat """ Schild L. C. and Glauser D. A. Parameter Thermal slope Defined function1 Variable name2 Temperature (°C) Type of simulation Full model (wild type) No strategy based on hysteresis or angle bias No speed thermal hysteresis No withdrawal thermal hysteresis No steering thermal hysteresis No withdrawal angle bias Only withdrawal thermal hysteresis Only speed thermal hysteresis Only steering thermal hysteresis Only withdrawal angle bias No dynamic tuning No withdrawal dynamic tuning No speed dynamic tuning No steering dynamic tuning osm-9 ocr-2 npr-1 Speed (mm/s) Heating S MaxHeating (T) Sp_Heat21 21 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.175 0.1 0.175 0.1 0.1 0.13 Sp_Heat25 23 0.11 0.12 0.12 0.11 0.11 0.11 0.12 0.11 0.12 0.12 0.175 0.11 0.175 0.11 0.1 0.15 Sp_Heat28 28 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.175 0.23 0.175 0.23 0.13 0.23 Sp_Heat32 32 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.175 0.25 0.175 0.25 0.16 0.25 Constant S Tconst (T) Sp_Const21 21 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.18 0.1 0.18 0.1 0.1 0.1 Sp_Const25 23 0.12 0.12 0.12 0.12 0.12 0.12 0.12 0.12 0.12 0.12 0.18 0.12 0.18 0.12 0.1 0.14 Sp_Const28 28 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.18 0.23 0.18 0.23 0.12 0.23 Sp_Const32 32 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.18 0.25 0.18 0.25 0.15 0.25 Cooling S MaxCooling (T) Sp_Cool21 21 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.185 0.1 0.185 0.1 0.1 0.1 Sp_Cool25 23 0.14 0.12 0.12 0.14 0.14 0.14 0.12 0.14 0.12 0.12 0.185 0.14 0.185 0.14 0.1 0.14 Sp_Cool28 28 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.185 0.23 0.185 0.23 0.11 0.23 Sp_Cool32 32 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.185 0.25 0.185 0.25 0.13 0.25 Withdrawal rate (s-1) Heating Pw MaxHeating (T) W_Heat21 21 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.015 0.015 0.005 0.005 0.005 0.005 W_Heat23 25 0.01 0.005 0.01 0.005 0.01 0.01 0.01 0.005 0.005 0.005 0.015 0.015 0.01 0.01 0.005 0.005 W_Heat3 28 0.015 0.005 0.015 0.005 0.015 0.015 0.015 0.005 0.005 0.005 0.015 0.015 0.015 0.015 0.01 0.015 W_Heat32 32 0.04 0.02 0.04 0.02 0.04 0.04 0.04 0.02 0.02 0.02 0.015 0.015 0.04 0.04 0.02 0.04 Constant Pw Tconst (T) W_Const21 21 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.006 0.006 0.005 0.005 0.005 0.005 W_Const23 25 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.006 0.006 0.005 0.005 0.005 0.005 W_Const28 28 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.006 0.006 0.005 0.005 0.005 0.005 W_Const32 32 0.02 0.02 0.02 0.02 0.02 0.02 0.02 0.02 0.02 0.02 0.006 0.006 0.02 0.02 0.02 0.02 Cooling Pw MaxCooling (T) W_Cool21 21 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.006 0.006 0.005 0.005 0.005 0.005 W_Cool23 25 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.006 0.006 0.005 0.005 0.005 0.005 W_Cool28 28 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.005 0.006 0.006 0.005 0.005 0.005 0.005 W_Cool32 32 0.02 0.02 0.02 0.02 0.02 0.02 0.02 0.02 0.02 0.02 0.006 0.006 0.02 0.02 0.02 0.02 Steering rate (s-1) Heating Ps MaxHeating (T) St_Heat21 21 0.34 0.34 0.34 0.34 0.34 0.34 0.34 0.34 0.34 0.34 0.27 0.34 0.34 0.27 0.34 0.34 St_Heat23 23 0.36 0.25 0.36 0.36 0.25 0.36 0.25 0.25 0.36 0.25 0.27 0.36 0.36 0.27 0.36 0.28 St_Heat28 28 0.2 0.16 0.2 0.2 0.16 0.2 0.16 0.16 0.2 0.16 0.27 0.2 0.2 0.27 0.3 0.2 St_Heat32 32 0.26 0.23 0.26 0.26 0.23 0.26 0.23 0.23 0.26 0.23 0.27 0.26 0.26 0.27 0.26 0.26 Constant Ps Tconst (T) St_Const21 21 0.34 0.34 0.34 0.34 0.34 0.34 0.34 0.34 0.34 0.34 0.24 0.34 0.34 0.24 0.34 0.34 St_Const23 23 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.24 0.25 0.25 0.24 0.3 0.25 St_Const28 28 0.16 0.16 0.16 0.16 0.16 0.16 0.16 0.16 0.16 0.16 0.24 0.16 0.16 0.24 0.14 0.16 St_Const32 32 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.24 0.23 0.23 0.24 0.23 0.23 Cooling Ps MaxCooling (T) St_Cool21 21 0.34 0.34 0.34 0.34 0.34 0.34 0.34 0.34 0.34 0.34 0.23 0.33 0.33 0.23 0.34 0.34 St_Cool23 23 0.2 0.25 0.2 0.2 0.25 0.2 0.25 0.25 0.2 0.25 0.23 0.2 0.2 0.23 0.28 0.2 St_Cool28 28 0.14 0.16 0.14 0.14 0.16 0.14 0.16 0.16 0.14 0.16 0.23 0.14 0.14 0.23 0.14 0.14 St_Cool32 32 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 0.23 1 See Supplementary Methods 2 The definition of these variables is presented in Supplementary Fig. S8