From 90a22d69be5036cbece425c062dcd105e80b693e Mon Sep 17 00:00:00 2001 From: Tortar <68152031+Tortar@users.noreply.github.com> Date: Thu, 5 Oct 2023 22:12:38 +0200 Subject: [PATCH] Update CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 447e378e3f..51b093476f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,9 @@ _We tried to deprecate every major change, resulting in practically no breakage ## New features - Two new functions `random_id_in_position` and `random_agent_in_position` can be used to select a random id/agent in a position in discrete spaces (even with filtering). +- A new function `swap_agents` can be used to swap an agents couple in a discrete space. - A new argument `alloc` can be used to select a more performant version in relation to the expensiveness of the filtering for all random methods selecting ids/agents/positions. +- The `random_agent` function is now much faster than before. - The `sample!` function is up to 2x faster than before. - Grid and continuous spaces support boundaries with mixed periodicity, specified by tuples with a `Bool` value for each dimension, e.g. `GridSpace((5,5); periodic=(true,false))` is periodic along the first dimension but not along the second.