osmose.engine.simulate¶
Main simulation loop for the Python OSMOSE engine.
- Follows Java’s SimulationStep.step() ordering:
incoming_flux -> reset -> resources.update -> movement -> mortality (interleaved) -> growth -> aging_mortality -> reproduction -> collect_outputs -> compact
Functions
|
Credit this step's fishing catch to fleets, and split revenue among vessels. |
|
Create the initial population. |
|
Convert per-cause death COUNTS to additive instantaneous rates for ONE step. |
|
Run the OSMOSE simulation loop. |
Classes
|
Per-simulation mutable state -- replaces module-level globals. |
|
Aggregated output for a single simulation timestep. |
|
Per-species summary statistics for one genetic trait at one timestep. |