HAL Id: hal-01975416
https://hal.archives-ouvertes.fr/hal-01975416
Submitted on 17 Jan 2019
HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.
L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.
System
Mohammed Chennoufi, Fatima Bendella, Maroua Bouzid
To cite this version:
Mohammed Chennoufi, Fatima Bendella, Maroua Bouzid. Multi-Agent Simulation Collision Avoidance
of Complex System. International Journal of Ambient Computing and Intelligence, IGI Pub, 2018, 9
(1), pp.43-59. �10.4018/ijaci.2018010103�. �hal-01975416�
DOI: 10.4018/IJACI.2018010103
Copyright©2018,IGIGlobal.CopyingordistributinginprintorelectronicformswithoutwrittenpermissionofIGIGlobalisprohibited.
Multi-Agent Simulation Collision Avoidance of Complex System:
Application to Evacuation Crowd Behavior
Mohammed Chennoufi, Department of Computer Science, University of Science and Technology of Oran, Oran, Algeria Fatima Bendella, Department of Computer Science, University of Science and Technology of Oran, Oran, Algeria Maroua Bouzid, University of Caen, Normandy, France
ABSTRACT
Inthiswork,wepresentacollisionavoidancetechniqueforacrowdrobustnavigationofindividuals
inevacuationwhichisagoodexampleofacomplexsystem.Theproposedalgorithmisinspired
fromtheReynoldsmodel,withtheadditionofseveralindividuals’behavioralcriteriaaswellasa
microscopicperceptionoftheenvironment,whichaffectstheirtravelspeedsandemergingappeared
phenomena.OursystemismodeledbyagentandtestedbyaNetlogosimulation,severalmodulessuch
asA*planning,physicalandpsychologicalfactorsofagentshavebeenprogrammedandsuccessfully
insertedintoa3Denvironment.Ourapplicationcanbeusedasaframeworktosimulaterealsituations
(evacuationofastadium,abuilding...)inordertoarriveatstrategiestodecisionsupportofacomplex
system,whichisarealprobleminourdailylife.
KEywoRdS
A*, Agents, Behavior, Collision Avoidance, Crowd, Emergence, Obstacle, Path
INTRodUCTIoN
Ourworkconcernsthemicroscopiclevelofacomplexsystemandmorepreciselytheintercalations
betweencrowdindividualsinevacuation.Thecollisionavoidanceisaprimordialphaseinthe
interactionindividuals-environment,whethertheavoidanceofstatic(wall)ordynamicobstacles
(neighborhoodindividuals).
Wedistinguishseveralmicroscopicmodelsofcollisionavoidancesuchassocialforces(Helbing,
Farkas,&Vicsek,2000),rule-basedmodels(Reynolds,1987)andcellularautomatamodels(Chenney,
2004),(Suwais,2014).Thedifferencebetweenthemisinthediscretizationofspaceandtime.A
(virtual)socialforceisanalogoustorealforcesuchasrepulsiveinteraction,frictionforce,dissipation,
solvingmotionNewton’sequationsforeachindividual.Intherule-basedmodel,thedisplacementof
thecrowdisgovernedbybehavioralrulesoftheform“ifconditionthenaction”.Recentlytherehas
beenalotofworkoncrowdsandtheirbehaviorasmodelsthatcheckthecharacteristicsofcomplex
systems(Reynolds,1987;Lamarche&Donikian,2004).
ThefirstworkofReynolds(1987)ontheconceptofflockingdescribesthebehavioroftheunits
individuallyasagroupusingonlylocalrules,someyearafter,Reynolds(1999)introducesthenotion
ofautonomyforeachagenttofinditswaysoastoavoidcollisions.Thedisadvantageofthisapproach
isthatitoperatesonthebasisoflocalinformation,puttingindividualsincongestedenvironments.
TheworkofMusse(2000)istocreaterulesformanagingdirectlyasetofinformation,asa(Kirchner,
Namazi,Nishinari,&Schadschneider,2003)groupofpeopleoperatingintheenvironment.Butthis
approachhasthedisadvantageofspecializingthemodel,makingagainitsgeneralizationevenmore
difficult.
However,inmodelsofcellularautomata,thespaceisrepresentedbyagridofuniformcells;
eachcelltoalocalstatewhichdependsonasetofrulesdescribesthebehaviorofindividualsin
whichspaceandtimearediscrete(Chenney,2004)andinbehavioraldomainswecancitethework
ofHansandMarsland(2016),Roman,Nawaf,Darryl,andAbdallah,(2014)andFrancesca(2016).
MusseandThalmann(1997)focusedonbasiccollisionhandlingbyproposingtwotechniques
ofcollisionavoidance.Thefirstinvolvesintersectionoftwolinesanddistancebetweentwopointsin
ordertodetectpossiblecollisionevents.Iftwovirtualhumansarepotentiallycolliding,onlyonewill
beallowedtogoonfirstwithitspath.Thesecondmethodisstraightforwardanditdependsonthe
changeofdirections.Anintelligentvirtualhumancanavoidthecollisionbychangingitsdirections
throughangularchanges.Leitão,Vinhas,Machado,andCâmara(2014)proposedageneticalgorithm
withtwoscenariosforinverseshortestpathlengthproblems.
TheworkofFoudil,Noureddine,Sanza,andDuthen(2009)inspiredbytheReynoldsmodel
(1987)considersthreetypesofcollisionbetweentwoagents:
• Front collision:Occursifagentsmovetowardseachother;
• Away collision:Whentheagentisbehindanotheragent;
• Side collision:Occursiftowagentswalkalmostinthesamedirection.
AnothercollisiontechniquethatwecanuseforcrowdsystemisproposedbyLoscos,Marchal,
andMeyer(2003).Thistechniquepresentscollisiondetectionbetweenavatarandotherobjects(such
asbuilding).Thestrategyistousecollisionmapandgridsystem.Thetechniqueoutlinesthreetypes
ofcollisionstrategieswhicharefrontal,followingandperpendicular.Thetechniquecomparesthe
directionofeachagent,thevelocityfactorandthedistancebetweentheagents.Inordertodeviate
fromanappropriateangle,thereareafewwaystodecideeithertoslowdownortocompletelystop.
Haifa,Ayesh,andDaniel(2012)addedemotionsascognitivecharacteristicsofagentstothe
behaviorsofcrowdsandcellularautomatamodelsforcollisionavoidance.Silva,Urbano,and
Lyhne(2014)proposeandevaluateanovelapproachtotheonlinesynthesisofneuralcontrollersfor
autonomousrobots.TheworkofStephane,Gaud,Alves,andKoukam,(2013)presentsanewmodelof
collisionavoidanceallowingthedesignofrealisticandeffectivevirtualbehaviorsbetweenpedestrians
andcyclists.It’sbasedonaslidingforcetoallowgentleavoidanceofpotentialcollisionswhileallowing
thepedestriantocontinuetoprogresstowardshisgoalwiththeuseofdynamictimewindowsto
predictfuturepotentialcollisions(principleofleasteffort).Hughes,Ondrej,andDingliana(2014)
presentedaholonomiccollisionavoidancealgorithmforcrowdsimulationbasedonexperimental
data,whichallowedustoobserveboththeconditionsunderwhichholonomicinteractions,aswellas
thestrategiesthatwalkersuseduringtheseinteractionstoavoidthecollision,themaindisadvantage
isatthelevelofthediscretizationoftimeandthedynamicobstacles.Narang,Best,Curtis,and
Manocha(2015)proposedacrowdsimulationalgorithmbasedondensityfilterswhichdependon
thesensitivityofthelocalplanneratthepreferredspeedtogeneratehuman-likecrowdflowswhich
generatespedestriantrajectoriesandwhichpresentthespeed-densityrelationshipsexpressedbythe
fundamentaldiagram.Thisapproachisbasedonbiomechanicalprinciplesandpsychologicalfactors.
Thefactthatadaptationisdoneatthelocallevelimpliesthatdensityfiltersmayproveineffectivein
scenarioswherenavigationtechniquesdependentonglobaldensityaremoreappropriate.
Knowingthatthesecomplexsystemspossessanonlinearandanunstablebehaviorduringtheir
executionshencetheirmodelingisdifficultatahigherlevel,thusthesimulationremainsanefficient
waytotesttheproperfunctioningofthesystemandseetheemergenceatthemacroscopiclevelby
simpleinteractionsbetweenindividuals.Eachagenthasasimplebehaviorandcollectively,agents
canaccomplishacomplextaskwhosegoalisnottoswitchtochaos.
WeproposedacollisionavoidancealgorithminspiredbytheReynoldsmodel(1987),it’sbased
onsimpleruleswiththeadditionofseveralcriteria.Afterseeingtoplanthewayofourindividuals’
crowdtowardsthearrivaldestinationbyavoidingthestaticobstaclesbyasimpleA*,welaunchour
simulationofcrowdmovementbyactivatingthemoduleofcollisionavoidanceinrealtime,thelatter
isbasedonalocalperceptionoftheenvironment(Angleofvision,comfortdistance,density)and
aspeedofmovement(desiredspeed).Eachindividualinthecourseofhisorherpath,herealizes
oneoftheseinteractionstofollow,fleeoravoidsadynamiccollisionifitexistsbydecreasingor
increasingitsspeedandorbyaslightdeviationtotherightortotheleftthenareturntowardsits
planning.Thisonewillinfluenceinstantlyonitsinitialtrajectory.Oursimulationworksevenifthe
crowdisdense;wehaveaddedphysiologicalfactorsasagethathasadirectrelationwithvelocity.
Activationanddeactivationofthecollisionavoidancemoduleoccursduringthesimulationfora
goodvisualizationofthecollision.
Therestofthearticleisorganizedasfollows:thefirstsectiondescribescomplexsystemswhilea
collisionavoidancemodelispresentedinthesecondsection.Thethirdsectionpresentsasimulation
ofourmodelwithdiscussionsofemergingphenomena.Acomparativestudyispresentedinfourth
section.Finally,weendwithaconclusionandperspectives.
CoMPLEX SySTEM
Researchinthecomplexsystemsisbecomingincreasinglyimportant;Itpresentsitselfeverywherein
ourworldandinseveraldisciplineswhetherinbiology,economics,chemistry,physics,transportation,
internet,security…evenhumansocietyiscomplex.However,thereisnosingledefinitionofacomplex
system.Asafirstapproximation,complexsystemsaresystemscomposedofinteractingentitieswith
capacitytoevolveovertime;theyadoptanon-lineardynamicbehavior.Acomplexsystemcanbe
definedasalargenumberofinteractingcomponentsallowingthesystemtorestructureormodifythe
patternofinteractionbetweenitscomponents.Itisimpossibletopredictitsevolutionanditsfuture
behaviorbyasimplecalculationwithapossibilityofswitchingtochaos.Eveniftheinteractions
betweenthesecomponentsaresimple;thereemergesaglobalbehaviorthatwasnotdescribedfrom
theserulesofinteractionemerges.Inordertowillpredictthisbehaviorwellandtoknowtheevolution
ofthesystem,simulationandexperimentsareprimordial(Bar-yam,1997).Figure1showstwo
examplesofcomplexsystemsintwodifferentlevels.
Twolevelsaredistinguishedincomplexsystems:
• Amicroscopiclevel(lowlevel)whichrepresentsthelocalpropertiesbetweenthe,components
ofthesystem;
• Amacroscopiclevel(highlevel)whichrepresentsthewholesystemwithemergenceofthenew
properties.
Studyinginteractionsisnoteasybecausetheycanbedirect,indirect,withorwithoutfeedback
loops.Inthecaseofdirectinteractions,itisdifficulttofollowtheselinksovertimebetweentheentities
ofthesystem,imagineifweaddtheindirectcaseaswellasthedynamicsoftheenvironmentwhich
becomesmoreandmorecomplexanddifficult.Differentlevelsofinteractionobservationexist:the
interactionsbetweensystemsofthesamelevelandtheinteractionsbetweensystemsofdifferentlevels.
Intheliterature,severalscientistsdefinetheconceptofemergenceasbeingthewholeismore
thanthesumoftheparts.Thisconceptisfoundinthephilosophyofscienceandinothercomplex
adaptivesystemssuchastheneuralsystem,antcolonies(Vijver,1997;Prokopenko&Wang,2004).
Anotherapproachtoemergenceinvolvestheconceptofcausalitydescending.Acharacteristicis
emergingifithasakindofcausalpoweronlowerlevelentities.Whileweassumethatthese(lower
level)entitiesmusthaveanupwardcausalityonemergingcharacteristics,thisapproachassumesa
two-waycausalrelationship(Couture,2007).
Characteristics of Chaotic Systems
Chaostheoryhasapplicationsinmanyfields,includingnetworking,largedataanalyzes,fuzzylogic,
gametheoryandsystemicthinking(Radhwan,Kamel,Mohammed,&Hassanien,2015).Itisadomain
ofdeterministicdynamicsproposingthatrandomeventsmayresultfromnormalequationsbecause
ofthecomplexityofthesystemsinvolved.
Themaincharacteristicsofchaoticsystemsare:
• Chaosresultsfromadeterministicprocess;
• Itoccursonlyinnon-linearsystems;
• Itoccursinretroactivesystems;whereeventsofthepastaffectcurrenteventsandcurrentevents
affecteventsofthefuture;
• Thedetailsofthechaoticbehaviorarehypersensitivetothechangeoftheinitialconditions;
• Itcanoccurfromrelativelysimplesystems:-withdiscretetime;
• Informationoninitialconditionsisirretrievablylost;
• Itisnotyetpossibletodetermineinadvancetheparticularpaththatthedynamicprocesswill
followinordertomovetowardschaos(Williams,1997).
PRoPoSEd APPRoACH
Thissectiondescribesthemodelingofourapproachintreestep:
1. Step1isparamountinthenavigationprocess;itcontainsthecharacteristicsofBDIagents
(perceptionsandbeliefs);
2. Ourcontributionisinstep2morepreciselytomakeahybridizationbetweentheA*(seeAlgorithm
1),ourcollisionavoidancemodelandbehavioralfactorswhichavoidsreal-timecollisions;
3. Step3containsthesimulationpartwhichisanefficientwaytovalidateanonlinearsystemby
meansofseveralexperiments.
Mathematical Modeling of The Problem
Eachagentisrepresentedbyacircle(turtleinNetlogo)(seeFigure3)with:
• Position A x y
i( , ) :where x and y arethecoordinatesoftheagent A
iinthevirtualspace;
• s
init∈ S istheinitialstate(startingnode)foreach A
iwith S = { s s
1,
2,... s
i} ;
Figure 1. Example of complex systems: a) Transport networks, b) Emergency evacuation
• s
Exit∈ S isthefinalstate(Exitnode)forall A
i;
• h S
s∈ (Manhattandistance)istheheuristicfunctionwhichcomputestheapproximatedistance
fromthecurrentstatetothegoalstatedefinedas:
h
( )s= x x
s−
s'+ y
s− y
s'
ForfirstA*algorithmweusetheformula:
f x ( ) = g x h x ( ) + ( ) + δ
whichisthecurrentapproximationoftheshortestpathtothegoal,where:
• g x ( ) isthetotaldistancebetweentheinitialpositiontothecurrentposition;
• g As (
init) istheminimumcostoftheagent A
i;
• h As (
init) istheminimumheuristicofthesameagent;
• OpenListisanorderedlistofstates;thesearchhasbeengeneratedbuthasnotbeenexpandedyet;
• ClosedLististhesetofstates;thesearchhasbeenexpanded(itisusedtopreventre-expansion);
• h
iistheheuristicforagent A
itoexit.
Figure 2. BDI architecture of a cognitive agent
Thecongestionvalue δ toknowiftheclosestparttothepathoftheagentisfreeornotandto
guidetheagentintheleastpopulatedareasisdefinedinouralgorithmaccordingtothefollowing
function:
δ ϕ ϕ
ϕ
=
≥
− ≤ ≤
infini if NA
NA if NA
if NA
i
i i
i
max max
0
where:
• NA
iisthenumberofindividualspresentinacomfortzoneofanagent A
i;
• max istheMaximumnumberofpeopleoccupyingacomfortandariskzone;
• ϕ istheisthethresholdofcongestion,weoptedforonehalfofthe max ( 1 2 / * max ) ;
• Forthesecondalgorithmweuse;
• Acomfortdistance COD or d isthemaximumdistancebetweentwoagentstoavoidcollision;
• Ariskdistance RID COD = / 2 :istheminimumdistancebetweentwoagentstoavoidcollision;
• Direction:dependingonthedirectionoftheagent A
i,itupdatesitspositionrightorlefttoavoid
collision;
• Radiusofvision α :Customdomainofvision;
• Angleofdeviation β :theagentissteeringwithangleβfordeviation;
• Speed v
:thespeedvarieswiththestateofhealthandmobility,rangingfrom0(whenthehealth
ormobility=0)at4m/s(whenrunninginpanic);
• Thedensity D :Numberofindividualsinacomfortzone.
Collision Avoidance Model
Thecollisionavoidancemodulepresentedandexplainedinthispaper(seeAlgorithm2)isseenasan
importantactionintheoverallplanningsimulationprocessofouragent-basedshedinstep2ofFigure
2.Thisavoidingcollisionisacrucialphaseinthepathsofindividuals,thedetectionofcollisions
willdependontheshapeandsizeoffixedordynamicobstacles.Whenmakinganattempttoavoid
anobstacle,therearemanydecisionstomake.Thelatteronesdependontheavailablepaths,finding
thebestandtheshortestpathdependsonthealgorithmsused.
Inordertoeliminateanyriskofcollisionwithagents,weusetheinformationobtainedin
perceivingtheenvironment.Inourapproachweconsiderasinglecollisionthatencompassesallthe
casesinordertodecreasethetests,itisbasedonacomfortdistanced,Radiusofvisionα,Riskzone
(DZ),Comfortzone(CZ),adesiredspeed V
d,Apermissiblespeed V
ad,thedensityD(Numberof
individualsincomfortzone),Angleofdeviationβandaradiusofcomfort R = 2 * ( * tan( / )) d α 2 (seeFigure3).
Algorithm1:A*
Begin
//Initialization;
Current node = Starting node;
Repeat
For each element s of the list of neighbors do If ( s .state == free) and s ∉ closed list then f s ( ) = g s h s ( ) + ( ) + δ ; // δ is a congestion factor
End if
If s ∉ open list then
Add the node to the open list;
Put the current node as the parent of the node c;
Else
If the new cost is better then Update the open list;
Update the parent of node;
End if End if
End for
If the open list is empty then No solution;
Else
Current node = the best node in the open list;
Remove the best node from the open list;
Place it in the closed list;
End if
Until current node = destination node End.
Algorithm2:Collisionavoidance
Figure 3. Collision avoidance
Begin
For each frame do For each agent A
ido
Perception of the environment; // α = Radius of vision & d = comfort distance
If (𝝳 == 0) //
the path is free
Then The agent follows his A* path;
Else
If (𝝳== ( NA
i− ϕ )) // ∋ Agents in R Individual detects another within its radius R
Then
rt( β ); // Turn right with a β deviation (change direction)
lt ( β/4 ); // Turn left with a β/4 deviation (Instant return to its path)
Wating; // If the distance between the agent and the expected position of the Collision is sufficient.
Vd V D
I= ; // moving along A* path with desired speed = speed of individuals / density . Else
Vad V D
IN
i=
+ ξ ; // moving with A* as a function of N
ichronological
identification number of the crowd, ξ is threshold of speed ϵ [0 1]
End if End if
End for End for
End.
Fuzzy Controller
FuzzyLogic(Zimmermann,2001)isidealformodelingandcontrollingacrowdmovementinalarge
scaleforcollisionavoidance.Thisfuzzyisusedtorepresentanimprecisevaluebetweentrueand
false.Theinputvariablesoftheregulatoraretransformedintolinguisticvariableswiththedefinition
ofmembershipfunctions.Thus,thisoperationconsistsofdeterminingthedegreetoavaluetoafuzzy
setastheworkofSarkar,Banerjee,andHassanien(2015)andDeepakandJohn(2016).Forcustom
visiondomain,weobservetwodistances(COD:comfortdistance),(RID:riskdistance=COD/2)
andananglefromvisionα(SMV:smallvision),(GRV:Greatvision),seeFigure4.
Table1illustratesthefuzzifyingforclassifyingrealinputvariablesintodifferentsets,which
areillustratedinFigure5a,b.
Afterthattheruleshavebeenevaluated,weuseanaggregationcentre-of-gravityfunctionfor
velocitytomergetheoutputs.Toobtaintherealoutputdefuzzifiedvelocity,wetakethemembership
values(v)foreachfuzzyoutputset,multiplyeachbyitssetcentrevalue(vi),anddividethisbythe
sumofallofthecentrevaluesillustratedinFigure5c:
v
defuzz= ∑im=1( v v *
i) / ∑im=1v
i
v
i
withmwhichisthenumberofrulesandv,thecontrolvariable.
Similarly,therealoutputdefuzzifiedDeviationisobtainedbycentre-of-gravityfunction.
ThesurfacecontrolinFigure5erepresentsaseriesofrulesif-then.Theinferenceisbased
onminormaxoperationstomaketheruleinferenceandmaxoperatorfortheaggregationofrules.
NETLoGo SIMULATIoNS
OurNetlogosimulation(seeFigure6)isimplementedin3Dreal-timewithanHPcoreI3,2.40GHz
and4GBmemory.ThemotivationtochooseNetlogoasasimulationsysteminthisworkbecauseit
isverywelladaptedtothemodelingofcomplexsystemstoexploretheemergenceduetointeractions
betweenagents,anditiseasytousewithgooddocumentationsupport.
Figure 4. Illustration Fuzzy of collision avoidance with input distance and angle
Table 1. Fuzzy input definitions for avoidance collision
Real Fuzzy
Comfortdistance COD
Riskdistance RID
Smallvision SMV
Greatvision GRV
Programmingthespeedoftheagents(Accelerationandwaiting)hasagoodrelationwiththe
otherprogramclass(A*algorithm),aswellasfixedobstaclesprogrammedbypatchesanddynamic
ormobileagentsbyturtles.AnotheradvantageofNetlogoisitsflexibilitytochangethedirectionof
anagenttorightorleftbyaselectedangleβwithasimpleNetlogocommand“rt”or“lt.”
Thevirtualinterfaceofourevacuationseinecanbeeasilydesignedbytheuser,individualsare
randomlydispatched,theuserhasthepowertochoosedestinationandlocationsofobstaclesaswell
aschangespeed,sizeofagentsandthedensityofthecrowd.Thesimulationcanbestartedbyframe
ordirectandinterruptedatanytime.Foragoodvisualizationandcomprehensions,thecollision
avoidancemodulecanbeactivatedanddeactivatedatanytime.
Ourapplicationcanbeusedasaframeworktosimulaterealsituations(evacuationofabuilding,a
stadium,asupermarket,etc.)inordertoarriveatstrategiestodecisionsupportofacomplexsystem.
discussions
Thefiguresinthissectionshowtheexecutionofseveralscenarioswithandwithoutcollisionavoidance:
• Randommovementbehaviorofacrowd;
• Evacuationbehaviorofacrowd.
Scenario 1:Randommovementbehaviorofacrowd.
Figure7showsarandommovementofacrowdwithoutcollisionavoidancetotheleftandwith
collisionavoidancetotherightwheretheagentsarerepresentedwithchronologicallynumbered
circlesfordistinguishingbetweentheagentswhichareincollision(agent28,agent29,agent14,
agent8)ornot-collision(theagent11and17).
Figure 5. Fuzzy input set membership functions for classifying the distance (a) and angle (b) to the nearest obstacle in Fuzzy
terms, Fuzzy output value for obstacle avoidance desired speed (c) and deviation (d), surface viewer control (e)
Scenario 2:Evacuationbehaviorofacrowd.
Theagentsrepresentedbypersonsinthissecondscenarioarerandomlydividedintotwodifferent
places,withbluecolorontherightandyellowontheleftrepresentingdifferentbehavior(ages,stress,
panic.),theevacuationpathisprogrammedwithA*totheoutputlocatedbetweentwoparts,andthe
collisionavoidancemodulecanbeactivatedordeactivatedinanytime(seeFigure6).
Figure 6. Netlogo simulation
Figure 7. Crowd movements without collision avoidance in the left, and with collision avoidance in the right
Thissecondscenarioreproducesemergingphenomenaaslineandgroupformationbyinteractions
between100peoples,theagentperceivesitsenvironmentavoidingstaticanddynamicobstacles,
itisthesebehaviorsthatgeneratetheemergenceofthecomplexsystemwithactivationcollision
avoidancemodule.
Figure8showa3Dviewofcrowdevacuationbydeactivatingthecollisionavoidancemodule
whereitiscleartheoccurrenceofcollisionatthedoors,contraryinFigure9representingourapproach,
wefindappearanceofpeople’svoicesbyactivatingthemodule.
Theseemergingphenomenaappearedattheexitwhenthecollisionavoidancemoduleis
deactivatedand,contrarytotheabsenceofanytypeofcollisionwhenthecollisionavoidancemodule
isactivated.
Figure10illustratestherelationbetweenthedensityofthecrowdandtheevacuationtimeofour
simulationscene,wheretheroleofthecollisionavoidancemoduleisclearlyseenwhenthecrowd
isdense,forexamplefrom100agentsduringthetime,theexhaustisat300measurementunitwhen
thecollisionavoidancemoduleisactivatedand539intheeventthatitisdeactivated.
Temporal Complexity
Inordertocalculatethetimeofouralgorithmintermsofrelationofoccurrence,Iusedasimple
techniquecalledincrementedandcountedbycalculatingthenumberofelementaryinstructions
executedbythealgorithmtosolvethecomplexsystem,thiscomplexitydependsonaparameter n . OuralgorithmofcollisionavoidanceusesthebasicalgorithmA*tocalculatethepathtothe
outputwiththeavoidanceofstaticobstacles.
Thetime complexityofA*foroneagentdependsontheheuristicfunction h ,itmeetsthe
followingcondition:
Figure 8. Evacuation without collision avoidance in 3D
h n h n ( ) −
'( ) ≤ O (log ( )) h n
'
where h istheestimateddistanceand h
'istheoptimalheuristic.
Ifcostofadditionsandcomparisonsare O ( ) 1 complexity,thecomplexityofA*is:
Figure 9. Evacuation with collision avoidance in 3D
Figure 10. Execution time of crowd emergency
O n m ( + log( )) n
Foracrowdof k agentswehaveatemporalcomplexityfordynamiccollisionavoidanceinthe
worstcasescenariogivenbythefollowingapproximation:
O n ( ) ( ( ) O O ( ) O ( ) O ( ) O ( ) O n m ( log( ))) * n k (
+ = + + + + + +
= + + + +
1 1 1 1 1 1
1 1 1 1 1 1 5
5
+ +
= + +
= + +
O n m n k O n m n k
k k O n m n
( log( ))) * ( ( log( ))) *
* * ( log( ))
A CoMPARATIVE STUdy
Table2showsacomparisonbetweenourapproachanddifferentworksofpreviousyearsoncrowd
planningaccordingtothefollowingcriteria:environmentalmodeling;time/Space;Collisionavoidance;
resultsandreviews.
Table 2. A comparative study between our approach and some research work on evacuation crowd planning
Author/ Year EnvironmentalModeling Time / Space Collision
Avoidance Results Reviews