PARACOSM AGENTOS | API Reference v0.9.1202
Home Simulation API Docs GitHub npm
Home Simulation API Docs GitHub npm AgentOS Discord
paracosm - v0.9.1202
    Preparing search index...

    Function generateInitialPopulation

    • Build a run's roster: the key personnel, then generated people up to totalPopulation. With departments, the generated people work in those departments under their labels. Without them they come from Mars Genesis's own trades (DEPARTMENT_DISTRIBUTION, SPECIALIZATIONS). Ages are in years; yearsPerUnit (years in one unit of the scenario's time) places each birth time in the scenario's unit.

      Parameters

      • seed: number
      • startTime: number
      • keyPersonnel: KeyPersonnel[]
      • totalPopulation: number = 100
      • Optionaldepartments: readonly { id: string; label: string }[]
      • yearsPerUnit: number = 1

      Returns Agent[]