Class RandomJointLocationChoiceAlgorithm
- java.lang.Object
-
- org.matsim.contrib.socnetsim.jointactivities.replanning.modules.randomlocationchoice.RandomJointLocationChoiceAlgorithm
-
- All Implemented Interfaces:
GenericPlanAlgorithm<GroupPlans>
public class RandomJointLocationChoiceAlgorithm extends Object implements GenericPlanAlgorithm<GroupPlans>
Randomly mutates activity locations, with a high probability that social contacts go to the same location. It uses the following random local search method:- group agents with random social contacts from the replanning group
- for each of those group, choose a random flexible type to mutate
- choose a random activity of this type (if any) for each agent
- mutate the location of those activities to the same random location
- compute the center of gravity of the current locations of the activities
- choose a random direction
- sample a distance from a normal distribution, to that in 95% of the case, it falls bellow the upperBound95 parameter of the config group
- choose the facility closest to the corresponding point.
- Author:
- thibautd
-
-
Constructor Summary
Constructors Constructor Description RandomJointLocationChoiceAlgorithm(RandomJointLocationChoiceConfigGroup config, org.matsim.facilities.ActivityFacilities facilities, SocialNetwork socialNetwork)
-
-
-
Constructor Detail
-
RandomJointLocationChoiceAlgorithm
public RandomJointLocationChoiceAlgorithm(RandomJointLocationChoiceConfigGroup config, org.matsim.facilities.ActivityFacilities facilities, SocialNetwork socialNetwork)
-
-
Method Detail
-
run
public void run(GroupPlans plan)
- Specified by:
run
in interfaceGenericPlanAlgorithm<GroupPlans>
-
-