got it working.threshhold + high num of agents and capacity fixes cycling caused by discreteness