Open jamesturner246 opened 1 year ago
Another in the update phase: should height be updated before weight?
Height depends on weight, which itself depends on height...
Same in kevin hall initialisation: it goes weight, then, height, then kevin hall params (glycogen, ECF, etcetera)...
Kevin Hall Framework.pdf – this might contain the answer?
A few places in
EnergyBalanceModel::simulate_person
compute new state variables from other initial state variables, where they should probably be computed from other new state. For example,delta
(used inEE
) is computed usingBW_0
, when it should probably be computed usingBW
:Untangling this is non-trivial, since the new
BW
is currently indirectly a function ofdelta
, but this just doesn't feel right. A possible solution (unverified) would be to recomputedelta
afterBW
is computed, and beforeEE
is computed.Will require liaison with the modelling team to discuss intention and solutions.