Decision making in Vensim
Posted: Mon Jun 25, 2007 9:43 am
Hello,
I am currenlty encountering some problems related to functions in converting a Ithink model to a vensim model.
I am buidling a model about sea fishery fleet dynamics, more precise: How fishermen allocate their fishing efforts and how they invest.
In allocating their effort, fishermen are searching the BEST place to fish. Presently, in my model that best place is where they catch the most fish (= the highest Catch per unit of effort CPUE).
This CPUE is a function of the vessel type their using combined with the fishing ground they are choosing (= a two-dimensional array).
So, now I am searching a function in Vensim which allows me to 'scan' this matrix, and give me for each vessel type (row) the ID (of the colom) of the fishing ground witch is the best (= highest CPUE). In Ithink there is a build-in function ARRAYMAXID which makes that possible.
I have a second question about functions: I have integrated fish quota as stocks in my model. These stocks are declining over the year due to catches of the fishermen. But, after 365 days these quota need to be set again to the level of their initial value. Is their an easy way to do this? In Ithink, I used a pulse function in combination with a counter. The counter counted to 366 days. On 365 days, the quota where resetted to 0 fish, and on 366, the new quota where launched (by pulse) in the stock (quota).
If someone can help me out, it would mean al lot to me.
Kinds,
Hendrik Stouten
I am currenlty encountering some problems related to functions in converting a Ithink model to a vensim model.
I am buidling a model about sea fishery fleet dynamics, more precise: How fishermen allocate their fishing efforts and how they invest.
In allocating their effort, fishermen are searching the BEST place to fish. Presently, in my model that best place is where they catch the most fish (= the highest Catch per unit of effort CPUE).
This CPUE is a function of the vessel type their using combined with the fishing ground they are choosing (= a two-dimensional array).
So, now I am searching a function in Vensim which allows me to 'scan' this matrix, and give me for each vessel type (row) the ID (of the colom) of the fishing ground witch is the best (= highest CPUE). In Ithink there is a build-in function ARRAYMAXID which makes that possible.
I have a second question about functions: I have integrated fish quota as stocks in my model. These stocks are declining over the year due to catches of the fishermen. But, after 365 days these quota need to be set again to the level of their initial value. Is their an easy way to do this? In Ithink, I used a pulse function in combination with a counter. The counter counted to 366 days. On 365 days, the quota where resetted to 0 fish, and on 366, the new quota where launched (by pulse) in the stock (quota).
If someone can help me out, it would mean al lot to me.
Kinds,
Hendrik Stouten