• Ei tuloksia

Rules of flocking Rules of flocking

N/A
N/A
Info
Lataa
Protected

Academic year: 2022

Jaa "Rules of flocking Rules of flocking"

Copied!
2
0
0

Kokoteksti

(1)

1 Flocking

Flocking

„

„C. W. Reynolds: “Flocks, herds, and schools: A C. W. Reynolds: “Flocks, herds, and schools: A distributed behavioral model” (1987)

distributed behavioral model” (1987)

„

„a flock seems to react as autonomous entity a flock seems to react as autonomous entity although it is a collection of individual beings although it is a collection of individual beings

„

„flocking algorithm emulates this phenomenonflocking algorithm emulates this phenomenon

„

„results resemble various natural group results resemble various natural group movements

movements

„

„boid = an autonomous agent in a flockboid = an autonomous agent in a flock

Rules of flocking Rules of flocking

1.

1. Separation: Do not crowd flockmates.Separation: Do not crowd flockmates.

2.2. Alignment: Move in the same direction as Alignment: Move in the same direction as flockmates.

flockmates.

3.3. Cohesion: Stay close to flockmates.Cohesion: Stay close to flockmates.

4.4. Avoidance: Avoid obstacles and enemies.Avoidance: Avoid obstacles and enemies.

→ boid’s behavioural urges

→ boid’s behavioural urges

Observations Observations

„

„stateless algorithmstateless algorithm

„

„no information needs to be maintainedno information needs to be maintained

„„boid reboid re-- evaluates the environment on each update evaluates the environment on each update cycle

cycle

„

„no centralized controlno centralized control

„

„emergent behaviouremergent behaviour

Other uses for flocking Other uses for flocking

„

„swarm algorithmsswarm algorithms

„

„solution candidate = boidsolution candidate = boid

„„solution space = flying spacesolution space = flying space

„

„separation prevents crowding the local optimaseparation prevents crowding the local optima

„

„obstacle avoidance in path findingobstacle avoidance in path finding

„

„steer away from obstacles along the pathsteer away from obstacles along the path

Influence maps Influence maps

„„discrete representation of the synthetic player’s discrete representation of the synthetic player’s knowledge of the world

knowledge of the world

„„strategic and tactical informationstrategic and tactical information

„„frontiers, control points, weaknessesfrontiers, control points, weaknesses

„„influenceinfluence

„„typetype

„

„repulsiveness/alluringnessrepulsiveness/alluringness

„

„recall path finding and terrain generationrecall path finding and terrain generation

Assumptions Assumptions

„„a regular grid over the game worlda regular grid over the game world

„

„each tile holds numeric information of the each tile holds numeric information of the corresponding area

corresponding area

„„positive values: alluringness positive values: alluringness

„

„negative values: repulsivenessnegative values: repulsiveness

(2)

2 Construction

Construction

1.

1. initializationinitialization

„

„ assign values to the tiles where the influence existsassign values to the tiles where the influence exists 2.

2. propagationpropagation

„

„ spread the effect to the neighbouring tilesspread the effect to the neighbouring tiles

„„ linear or exponential falllinear or exponential fall-- offoff

„

„ cutcut-- off pointoff point

Aggregation Aggregation

„„influence map can be combinedinfluence map can be combined

„

„the same (or compatible) granularitythe same (or compatible) granularity

„

„exampleexample

„

„map 1 = my troopsmap 1 = my troops

„„map 2 = enemy’s troopsmap 2 = enemy’s troops

„„map 3 = map 1 + map2 = battlefieldmap 3 = map 1 + map2 = battlefield

„

„aggregationaggregation

„

„operator: sum, productoperator: sum, product

„

„weights: to balance the effectsweights: to balance the effects

Evaluation Evaluation

„

„static features: compute beforehandstatic features: compute beforehand

„

„periodical updatesperiodical updates

„

„categorize the maps based on the rate of changecategorize the maps based on the rate of change

„

„lazy evaluationlazy evaluation

Key questions for synthetic players Key questions for synthetic players

„

„how to achieve real-how to achieve real-time response?time response?

„

„how to distribute the synthetic players in a how to distribute the synthetic players in a network?

network?

„

„how autonomous the synthetic players should how autonomous the synthetic players should be?

be?

„

„how to communicate with other synthetic how to communicate with other synthetic players?

players?

Viittaukset

LIITTYVÄT TIEDOSTOT

Jos valaisimet sijoitetaan hihnan yläpuolelle, ne eivät yleensä valaise kuljettimen alustaa riittävästi, jolloin esimerkiksi karisteen poisto hankaloituu.. Hihnan

Vuonna 1996 oli ONTIKAan kirjautunut Jyväskylässä sekä Jyväskylän maalaiskunnassa yhteensä 40 rakennuspaloa, joihin oli osallistunut 151 palo- ja pelastustoimen operatii-

Since both the beams have the same stiffness values, the deflection of HSS beam at room temperature is twice as that of mild steel beam (Figure 11).. With the rise of steel

The proposed scientific approach, “the global change science”, consists of the (physical) earth system science (e.g., Schellnhuber 1999) and the socio-economic (human) system plus

One of the most central examples is the Youth Barometer, which is im- plemented every year jointly by the State Youth Council and the Finnish Youth Research Net- work to measure

The problem is that the popu- lar mandate to continue the great power politics will seriously limit Russia’s foreign policy choices after the elections. This implies that the

The US and the European Union feature in multiple roles. Both are identified as responsible for “creating a chronic seat of instability in Eu- rope and in the immediate vicinity

Te transition can be defined as the shift by the energy sector away from fossil fuel-based systems of energy production and consumption to fossil-free sources, such as wind,