You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say that the VOI is defined in seconds in a component called environment and that a state , x expressed in metres, has its rate computed in a component called main using the VOI expressed in milliseconds. Right now, our code generator would generate something like:
rate[0] =0.001*...;
while it should generate something like:
rate[0] =1000.0*...;
Indeed, the rate of x in main is expressed in metres per milliseconds, but to compute the model we need it to be expressed in metres per seconds, hence we need to multiply the calculation of the rate of x by 1000.0 and not by 0.001.
To multiply by 0.001 would be needed if x had been expressed in kiloseconds (!!).
The text was updated successfully, but these errors were encountered:
Say that the VOI is defined in seconds in a component called
environment
and that a state ,x
expressed in metres, has its rate computed in a component calledmain
using the VOI expressed in milliseconds. Right now, our code generator would generate something like:while it should generate something like:
Indeed, the rate of
x
inmain
is expressed in metres per milliseconds, but to compute the model we need it to be expressed in metres per seconds, hence we need to multiply the calculation of the rate ofx
by 1000.0 and not by 0.001.To multiply by 0.001 would be needed if
x
had been expressed in kiloseconds (!!).The text was updated successfully, but these errors were encountered: