Bob, thank you very much for your help. The VECTOR ELM MAP is rather a tricky function, but I feel I am finally getting closer to understand it. Attached is a model that illustrates the solution. Again thank you very much for your help.
Jozef
Search found 8 matches
- Tue Apr 26, 2005 6:15 pm
- Forum: Vensim
- Topic: Is there a function to match a code with a value and return
- Replies: 3
- Views: 3997
- Mon Apr 25, 2005 9:18 pm
- Forum: Vensim
- Topic: Is there a function to match a code with a value and return
- Replies: 3
- Views: 3997
- Mon Apr 25, 2005 9:16 pm
- Forum: Vensim
- Topic: Is there a function to match a code with a value and return
- Replies: 3
- Views: 3997
Is there a function to match a code with a value and return
I want to calculate “Plant Fuel Cost” from two arrays: “Plant Fuel Type” and “Area Fuel Prices”. The first array (Plant Fuel Type) lists the fuel codes for all power plants, while the second array (Area Fuel Prices) list the actual fuel prices in an area for the next 10 time periods. I wonder is the...
- Thu Apr 21, 2005 8:43 pm
- Forum: Vensim
- Topic: Allocate by priority
- Replies: 13
- Views: 15780
- Thu Apr 21, 2005 2:25 pm
- Forum: Vensim
- Topic: Allocate by priority
- Replies: 13
- Views: 15780
Thank You
Foremost “Thank You” for every comment I got on this problem. Not only you help me to solve the problem, but also you showed me more interesting things, which will come handy in the future. J.J. Lauble’, I have downloaded the 1dim_2dim file, but it seems to be the same as the former 2dim_1dim file. ...
- Wed Apr 20, 2005 7:18 pm
- Forum: Vensim
- Topic: Allocate by priority
- Replies: 13
- Views: 15780
J.J. Lauble', that is a cool way to change the array to a vector. This is very helpful. Is there a way back to take the vector and make the same array? Looking at the equation of “Vector Elm Map” I assume that the array’s “n1” and “m1” are the first members of the subscript. I see “subscript3” is th...
- Wed Apr 20, 2005 2:37 pm
- Forum: Vensim
- Topic: Allocate by priority
- Replies: 13
- Views: 15780
Thanks Tony and Jeroen. Your help is really appreciated. From your comments, I was able to make the function work. The attachment has a simple example of the corrected function with two subscripts [PowerRegions] and [PowerPlants]. The allocation logic is executed on the last script [PowerPlants] or ...
- Tue Apr 19, 2005 4:21 am
- Forum: Vensim
- Topic: Allocate by priority
- Replies: 13
- Views: 15780
Allocate by priority
I am having a hard time with the "allocate by priority fnction" with multiple subscripts. I am building a power model, in which for each region I have a subscript for different efficiency and different fuels. So there are three subscripts (Region,Efficiency,Fuel). The plants with the least...