Hi, i'm building a model, but the simultaneous equations problem is unsolvable to me. I was trying to the simultaneous and fin zero functions, but did not work. The problem is (I think), that I use one variable (IVT car ij) to calculate a loop with many others, so I don't know where is the starting (or ending). Can you help me??
I would be very grateful.
The model is attached
Simultaneous equations impossible to solve
-
- Member
- Posts: 42
- Joined: Wed Apr 06, 2011 8:20 am
Simultaneous equations impossible to solve
- Attachments
-
- Energy.xlsx
- excel data 2
- (1.63 MiB) Downloaded 901 times
-
- Data.xlsx
- excel data 1
- (1.77 MiB) Downloaded 786 times
-
- simultaneous.mdl
- vensim model
- (46.94 KiB) Downloaded 621 times
-
- Super Administrator
- Posts: 4838
- Joined: Wed Mar 05, 2003 3:10 am
Re: Simultaneous equations impossible to solve
I cannot check the model at the moment, it's complaining about "Sheet #Trb TM opeak not found in data.xlsx.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
-
- Member
- Posts: 42
- Joined: Wed Apr 06, 2011 8:20 am
Re: Simultaneous equations impossible to solve
Sorry! here it goes again...
- Attachments
-
- simultaneous.mdl
- vensim model
- (46.78 KiB) Downloaded 677 times
-
- Super Administrator
- Posts: 4838
- Joined: Wed Mar 05, 2003 3:10 am
Re: Simultaneous equations impossible to solve
There is nothing I can suggest here. Things like "ivt car ij" mean nothing to me (no units or description either to give a clue to what it is).
Check your formulation. There has to be a delay somewhere in the system, or a level.
Check your formulation. There has to be a delay somewhere in the system, or a level.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: Simultaneous equations impossible to solve
I can't really tell what's going on without informative variable names, but your "tcur increases" which is (tcur ij[i,J,ToD]/"tcur ij t-1"[i,J,ToD]) is strongly suggestive of a stock adjustment process.
I think if you reformulate that as tcur = INTEG( change in tcur, initial tcur ) with change in tcur = f(whatever), you might be OK.
I think if you reformulate that as tcur = INTEG( change in tcur, initial tcur ) with change in tcur = f(whatever), you might be OK.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
-
- Junior Member
- Posts: 13
- Joined: Wed Jun 24, 2015 3:15 pm
- Vensim version: DSS
simultaneous initial value equations
Hi Guys,
I have a loop in my model, and I can't figure out how I should remove the "simultaneous initial value" error.
In order to break the loop, I used "active initial" for one of the rates in the model, and it solved the error, but now, this initial value is influencing all the other stocks and rates in the model. For instance, in time 0, all the other rates starts removing some amount from the stocks and make them negative. I can use a switch for those rates that shouldn't work at time 0, but then all the rates and stocks get to zero.
Do you have any suggestion?
I have a loop in my model, and I can't figure out how I should remove the "simultaneous initial value" error.
In order to break the loop, I used "active initial" for one of the rates in the model, and it solved the error, but now, this initial value is influencing all the other stocks and rates in the model. For instance, in time 0, all the other rates starts removing some amount from the stocks and make them negative. I can use a switch for those rates that shouldn't work at time 0, but then all the rates and stocks get to zero.
Do you have any suggestion?
-
- Super Administrator
- Posts: 4838
- Joined: Wed Mar 05, 2003 3:10 am
Re: Simultaneous equations impossible to solve
You'll need to upload your model so we can take a look.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
-
- Junior Member
- Posts: 13
- Joined: Wed Jun 24, 2015 3:15 pm
- Vensim version: DSS
Re: Simultaneous equations impossible to solve
Here you are.
I used "active initial" for the input of eggs.
I used "active initial" for the input of eggs.
Last edited by naserprs87 on Thu Jun 23, 2016 4:43 pm, edited 1 time in total.
-
- Super Administrator
- Posts: 4838
- Joined: Wed Mar 05, 2003 3:10 am
Re: Simultaneous equations impossible to solve
I'd suggest that "adults laying eggs" should be a level, it's a count of the number of adults laying eggs.
"Eggs" is probably not right either. I'd call it "unhatched eggs", the rate this increases is "adults * number of eggs per adult", it decreases based on how long they take to hatch (birth rate).
Hope this helps you get moving again.
"Eggs" is probably not right either. I'd call it "unhatched eggs", the rate this increases is "adults * number of eggs per adult", it decreases based on how long they take to hatch (birth rate).
Hope this helps you get moving again.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
-
- Junior Member
- Posts: 13
- Joined: Wed Jun 24, 2015 3:15 pm
- Vensim version: DSS
Re: Simultaneous equations impossible to solve
Thank you so much