Page 1 of 1

Floating point error- cant fix it, pls HELP

Posted: Sat Sep 16, 2023 3:28 pm
by ngtrang
I have had a floating point error with the model. I tried to fix it but it doesnt work. I appear not to understand this kind of error well. Then I upload the model for your support. Please help me to fix it. Thank you.

Re: Floating point error- cant fix it, pls HELP

Posted: Sat Sep 16, 2023 8:20 pm
by Administrator
"Formerly collected" goes to value of approximately 2000.

"Informally collected" then goes negative which is one of the causes of the problems. Things quickly go exponential and so you get values that are too large to be stored by the computer, that causes the floating point error.

"Informally collected" has (1-"formally collected" in it's equation, that would indicate that "formally collected" should be between 0 and 1 (which it is not). This causes "Informally collected" to go negative which is one of the causes of the problems. Things quickly go exponential and so you get values that are too


I would start by fixing the unit errors as these often show up errors in equation formulation (as shown by the equation for "Informally collected").

Re: Floating point error- cant fix it, pls HELP

Posted: Sun Sep 17, 2023 12:13 am
by ngtrang
Administrator wrote: Sat Sep 16, 2023 8:20 pm "Formerly collected" goes to value of approximately 2000.

"Informally collected" then goes negative which is one of the causes of the problems. Things quickly go exponential and so you get values that are too large to be stored by the computer, that causes the floating point error.

"Informally collected" has (1-"formally collected" in it's equation, that would indicate that "formally collected" should be between 0 and 1 (which it is not). This causes "Informally collected" to go negative which is one of the causes of the problems. Things quickly go exponential and so you get values that are too


I would start by fixing the unit errors as these often show up errors in equation formulation (as shown by the equation for "Informally collected").
I fixed it. I am very grateful, thank you so much.