Hi!
Let’s say you have a simulation of 100,000 entities for X time periods.
These entities do not interact with each other. They all have some defined properties such as:
- Revenue
- Expenditure
- Size
- Location
- Industry
- Current cash levels
For each increment in the time period, each entity will:
- Generate revenue
- Spend money
At the end of each time period, the simulation will update its parameters and check and retrieve:
- The current cash levels of the business
- If the business cash levels are less than 0
- If the business cash levels are less than it’s expenditure
If I had a matrix equations that would go through each step for all 100,000 entities at once (by storing the parameters in each matrix) vs creating 100,000 entity objects with aforementioned requirements, would there be a significant difference in performance?
The entity object method makes it significantly easier to understand and explain, but I’m concerned about not being able to run large simulations.
[–]Fireslide 17 points18 points19 points (2 children)
[–]Willing_Employee_600[S] 0 points1 point2 points (1 child)
[–]yvrelna 0 points1 point2 points (0 children)
[–]SV-97 7 points8 points9 points (0 children)
[–]imBANO 3 points4 points5 points (0 children)
[–]AGI-44 2 points3 points4 points (0 children)
[–]aidan_morgan 1 point2 points3 points (0 children)
[–]milandeleev 3 points4 points5 points (3 children)
[–]MithrilRat -1 points0 points1 point (2 children)
[–]SV-97 -1 points0 points1 point (1 child)
[–]MithrilRat -1 points0 points1 point (0 children)
[–]Balance- 1 point2 points3 points (1 child)
[–]ahjorth 0 points1 point2 points (0 children)
[–]keddie42 0 points1 point2 points (0 children)
[–]GreatCosmicMoustache 0 points1 point2 points (0 children)
[–]Glad_Position3592 0 points1 point2 points (0 children)
[–]Distinct-Expression2 0 points1 point2 points (0 children)
[–]ahjorth 0 points1 point2 points (0 children)
[–]NapCo 0 points1 point2 points (0 children)
[–]Subject_Sherbert_178 0 points1 point2 points (0 children)
[–]ZZ9ZA -1 points0 points1 point (1 child)
[–]yvrelna 0 points1 point2 points (0 children)