Generate undetermined multiple sets of random values

Use this forum to post Vensim related questions.
Post Reply
bin_zhou
Newbie
Posts: 1
Joined: Fri May 12, 2006 3:31 am

Generate undetermined multiple sets of random values

Post by bin_zhou »

Hi,

I would like to use Vensim to model a optimization issue as the following scenario.

Each time period, the system will randomly generate a random number of project proposals which each has three characteristics, number of features, cost to implement, and how it is aligned with the organization's goal. Then I will have a simple optimization rule to pick some sub set as potential candidates for further review.

My issue is how to generate three sets of random numbers and link them together. If you are familar with C/C++ or Java, such data structure can be done through a random number generator and a multiple dementional array. I can first use the random number generator to find how many projects to propose for each period; then declare a three dimentional dynamic array; finally for each element, use the random number generator again to assign values.

Is there a way to perform this in Vensim DSS 5. 5d? If it is possible, how to loop through them when I perform the optimization later?

Thanks and appreciate your time and help.

Bin
Bin
LAUJJL
Senior Member
Posts: 1427
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

project generator

Post by LAUJJL »

Hi

Here is joined an example of what could be done.
Regards.
JJ
Attachments
project_generator.mdl
(3.33 KiB) Downloaded 322 times
Post Reply