Grasshopper

algorithmic modeling for Rhino

Dear all,

I ported a simple system dynamics example to Grasshopper - the sheep and wolves polulation dynamics:http://ccl.northwestern.edu/netlogo/models/WolfSheepPredation(SystemDynamics)

Using the wonderful anemone loop component it works in principle. The result seems to be ok, but is different from the expected outcome compared e.g. with a NetLogo simulation:

NetLogo:

Grasshopper (red = sheep, blue = wolves):

The differnce is obvious, but I don't understand where it comes from. I used the expression component for modeling the individual aspects. Could it be some numerical problem (rounding)?

Thanks for some hints.

Best regards

Reinhard

Views: 640

Attachments:

Replies are closed for this discussion.

Replies to This Discussion

Very cool.  I don't now if your model is correct (though it looks very simple), but I can modify input values to produce a more similar result by decreasing 'Sheep Birth Rate' and increasing wolf 'Predation Rate' and 'Predator Efficiency' values.  Are you sure you're using the same initial assumptions?

Thanks. I checked all parameters and formulas, but they are the same as in the NetLogo simulation. I also implemented the whole thing with a C# script (attached) to ensure that also the sequence is the same, but the dynamics are still different to the original NetLogo one...

Attachments:

Apologize to all who spend some time looking into this. After writing the last response I checked again the sequence of all depencencies and finally found the issue there. Now, it works as expected. Corrected files are attached.

Best regards

Reinhard

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service