5. Compute Totals

<< Click to Display Table of Contents >>

Navigation:  Examples  > Exercises - Start Here >

5. Compute Totals

Previous pageReturn to chapter overviewNext page
Show/Hide Hidden Text

In the first run of the cow model, cows ate grass, but the grass height did not decrease as a result. Before our second run, we will compute the total grass consumption in each pasture by using collections of cow entities. We will then use that information in the pasture entity definition to reduce grass height.

 

This exercise (along with the previous and next) are featured in this video:

 

Getting Started with Ventity - Relate Entities

 

Stages of Ventity™ Modeling

In this run, we will ...

Stage 1 - Define entity types
Design the kinds of entities

 

Create a collection of cows partitioned by pasture, and calculate the total grass consumption in each pasture. Then we will reduce grass height in the pasture by a commensurate amount.

 

Stage 2 - Initialize the model
Specify how many entities and their individual characteristics

 

(no changes from previous run)

 

Stage 3 - Run the model

Configure time settings and perform calculations

 

(no changes from previous run)

 

Stage 4 - Examine results

See model behavior in graphs and tables

 

Graph the grass heights over time in each pasture, now including the effects of total grazing in each pasture.

 

 

hmtoggle_arrow1Stage 1: Defining Entity Types

 

hmtoggle_arrow1Stage 2: Initialization

 

hmtoggle_arrow1Stage 3: Run the model

 

hmtoggle_arrow1Stage 4: Examine Results