Page 1 of 1

I'm having the following problem

Posted: Thu Jul 29, 2021 10:47 am
by kong17
Hello everyone,

In one part of my model, I need to use the Find Zero Function. Because too many variables are calculated, I use subscripts to simplify the model, but an error occurs during runtime (Floating point overflow - saving to time 0.00000). The attachment is a simple example. I was wondering how to solve it?
Thank you for your help!
FIND ZERO.mdl
(5.77 KiB) Downloaded 143 times

Re: I'm having the following problem

Posted: Thu Jul 29, 2021 12:14 pm
by Administrator
That model runs fine for me. Have you uploaded the correct model?

Re: I'm having the following problem

Posted: Thu Jul 29, 2021 12:14 pm
by tomfid
I don't get an error. What version are you using?

Re: I'm having the following problem

Posted: Thu Jul 29, 2021 12:30 pm
by kong17
Thank you for your reply.
My version is DSS.
It stills get an error.
Untitled.png
Untitled.png (82.86 KiB) Viewed 4564 times

Re: I'm having the following problem

Posted: Thu Jul 29, 2021 2:06 pm
by Administrator
Can you try it in double precision version of Vensim?

Re: I'm having the following problem

Posted: Thu Jul 29, 2021 2:16 pm
by kong17
Administrator wrote: Thu Jul 29, 2021 2:06 pm Can you try it in double precision version of Vensim?
Hi, Thank you for your reply.
I was wondering what is the double-precision version? Do I need to redownload?

Re: I'm having the following problem

Posted: Thu Jul 29, 2021 2:20 pm
by kong17
tomfid wrote: Thu Jul 29, 2021 12:14 pm I don't get an error. What version are you using?
Thank you for your reply.
My version is DSS.
It stills get an error.
Untitled.png
Untitled.png (82.86 KiB) Viewed 4555 times

Re: I'm having the following problem

Posted: Thu Jul 29, 2021 2:32 pm
by kong17
Administrator wrote: Thu Jul 29, 2021 2:06 pm Can you try it in double precision version of Vensim?
Hi, I download the double precision.
It doesn't get an error anymore.
But, I was wondering why some results are only shown one subscript?
2.png
2.png (39.06 KiB) Viewed 4553 times
FIND ZERO.mdl
(5.83 KiB) Downloaded 138 times

Re: I'm having the following problem

Posted: Thu Jul 29, 2021 2:40 pm
by kong17
Administrator wrote: Thu Jul 29, 2021 2:06 pm Can you try it in double precision version of Vensim?
Hi, I try to open my model in double precision that I download the new version. But, it said 'Syntax Error'.
I can open it in the prevision version (Vensim 7.3.5 single precision).
I was wondering what's wrong with it?
Thank you for your help.

Re: I'm having the following problem

Posted: Thu Jul 29, 2021 5:12 pm
by tomfid
You have "size n" = 1. It should be set to the ELMCOUNT(commod) normally.

Re: I'm having the following problem

Posted: Thu Jul 29, 2021 5:13 pm
by tomfid
If you're getting a syntax error in double precision, after successfully opening it earlier, the file is probably corrupted somehow. The version you posted here works fine for me, especially after the ELMCOUNT change.

Re: I'm having the following problem

Posted: Thu Jul 29, 2021 5:31 pm
by kong17
tomfid wrote: Thu Jul 29, 2021 5:13 pm If you're getting a syntax error in double precision, after successfully opening it earlier, the file is probably corrupted somehow. The version you posted here works fine for me, especially after the ELMCOUNT change.
Thanks, it works very well.
By the way, If I try to solve the syntax error, which means I have to rebuild the model in double precision if I want to run it.
Is it correct?

Re: I'm having the following problem

Posted: Thu Jul 29, 2021 6:04 pm
by tomfid
There shouldn't be any difference between single and double precision with respect to syntax. Not knowing what the specific error is, it's hard to say more.

Re: I'm having the following problem

Posted: Thu Jul 29, 2021 7:41 pm
by kong17
tomfid wrote: Thu Jul 29, 2021 6:04 pm There shouldn't be any difference between single and double precision with respect to syntax. Not knowing what the specific error is, it's hard to say more.
Ok, I see.
Thank you for your help.

Re: I'm having the following problem

Posted: Tue Aug 03, 2021 6:45 pm
by kong17
tomfid wrote: Thu Jul 29, 2021 6:04 pm There shouldn't be any difference between single and double precision with respect to syntax. Not knowing what the specific error is, it's hard to say more.
I might find why I couldn't open my model in the double precision. I copy the ALLOCATE BY PRIORITY function in my single precision to double precision. It gets errors '' Missing a closing parenthesis on a lookup table call'', but it works in the single precision.
And, when I try to use the ALLOCATE BY PRIORITY in the Functions list (double precision), the software crashed and directly quit.
I even tried to create a new model, but as long as I clicked on the ALLOCATE BU PRIORITY from the functions list, the software must be crashed.
I don't know why. Many thanks for your help.
11.png
11.png (38.99 KiB) Viewed 4474 times

Re: I'm having the following problem

Posted: Tue Aug 03, 2021 7:45 pm
by Administrator
Can you upload the model?

Is one of the parameters (max capacity..., effect of gener..... or capacty for CM a lookup table?

Re: I'm having the following problem

Posted: Tue Aug 03, 2021 8:24 pm
by kong17
Administrator wrote: Tue Aug 03, 2021 7:45 pm Can you upload the model?

Is one of the parameters (max capacity..., effect of gener..... or capacty for CM a lookup table?
Thank you for your reply. I only uploaded the part that was reported the error in my model.
I have tested it, the same structure, it works in the single precision.
I also download the example about ALLOCATION BY PRIORITY in the VENSIM HELP.
When I want to change to Sketch, it also reported a Syntax error.
Is it because my license has expired, and some functions of the downloaded double precision version are missing?
Looking forward to your reply, thank you.
simple model.mdl
(2.27 KiB) Downloaded 135 times

Re: I'm having the following problem

Posted: Tue Aug 03, 2021 8:45 pm
by Administrator
No, it's not because your licence has expired.

That model opens fine for me. What is the exact version of Vensim you are using and I'll try that.

Re: I'm having the following problem

Posted: Tue Aug 03, 2021 8:52 pm
by kong17
Administrator wrote: Tue Aug 03, 2021 8:45 pm No, it's not because your licence has expired.

That model opens fine for me. What is the exact version of Vensim you are using and I'll try that.
Thank you for your reply.
The following figure shows the version that I used.
2.png
2.png (7.7 KiB) Viewed 4466 times
Thank you for your help.

Re: I'm having the following problem

Posted: Tue Aug 03, 2021 9:01 pm
by Administrator
The model you uploaded loads fine for me in 8.1.0 as well.

If the big model is sensitive, you can send it to vensim@vensim.com and I can take a look. It may be that the error is pointing to a different parameter.

Re: I'm having the following problem

Posted: Tue Aug 03, 2021 9:39 pm
by kong17
Administrator wrote: Tue Aug 03, 2021 9:01 pm The model you uploaded loads fine for me in 8.1.0 as well.

If the big model is sensitive, you can send it to vensim@vensim.com and I can take a look. It may be that the error is pointing to a different parameter.
Thank you. I will send it later. But I think the model is fine. The error seems to have nothing to do with the model.
I build a new model (only one Variable). When I want to click ALLOCATE BY PRIORITY in the Equations from Functions. The software is directly closed. The ALLOCA P and ALLOCATE AVAILABLE can be clicked.
I also test it on my laptop, same problem.
I try to download the software again. Does the existence of single precision (7.3.5) and double precision (8.1.0) in the computer have any effect?
3.png
3.png (29.48 KiB) Viewed 4465 times