411 REFERENCE · Wikibooks
Simulation with AnyLogic/Agent-Based Modeling/Step 9. Adding the Product Consumption Logic
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Step 9. Adding the Product Consumption Logic
The model we have created does not capture situations where the product is consumed, discarded, or upgraded, all of which lead to repeat purchases. We will model repeat purchase behavior by assuming that adopters becomes potential adopters when their first unit is discarded or consumed. Assume that the average duration of active use of our product is 1 year.
Modify the statechart
Open the Person class diagram by double-clicking the Person item in the Project view.
Add the transition from the Adopter state to the PotentialAdopter state. This transition should be taken after one time unit, so leave the default transition's properties (triggered by Timeout equal to 1).File:Step_9._Adding_the_Product_Consumption 1.png
We have finished modeling replacement product purchases.Now we want to study the diffusion process over a long period of time, therefore configure the model to work infinitely.
Remove the model stop condition
In the Project view, click the Simulation:Main experiment item.
On the Model Time tab of the Properties window, clear the Stop model at specified time check box.
Run the model and study the product diffusion process with the chart. You can see that the market saturation is not reached in this model.
File:Step_9._Adding_the_Product_Consumption2.png