TheVeggydude / MARL-lockdown

A Multi-Agent Reinforcement Learning project that learns to solve the Coordinated Lockdown problem.
MIT License
3 stars 0 forks source link

Create `Agent` method that emigrates portion of populace. #9

Closed TheVeggydude closed 3 years ago

TheVeggydude commented 3 years ago

Should return a new state object with the desired population slice. The input should be a fraction (0.0-1.0) denoting the size of the emigration.

The steps are: 1) compute slice - we assume the emigrants are a slice of the original population, so they have the same distribution of categories. Remember to floor/truncate the number of emigrants. 2) reduce the population by the emigrating population.