您好,欢迎访问三七文档
当前位置:首页 > 行业资料 > 国内外标准规范 > EcoLab Documentation
EcoLabDocumentationRussellK.StandishOctober8,1999AbstractEcoLabisasystemthatimplementsanabstractecologymodel.[3]ItiswrittenasasetofTcl/Tk[2]commandssothatthemodelparameterscaneasilybechangedonthe ybymeansofeditingascript.Thisdocumentdescribestheclasslibrariesthatimplementthedynamicarraystructures,andtheinterfacetotheTclinterpreter,aswellalltheTclcommandsandvariablesthatarede nedintheEcoLabsystem.YoushouldalsoexaminethesampleEcoLabscript(ecolab.tcl)providedwiththepacakge,andthesampleproblemscripts,e.gpred-prey.tclandlifetime.tcl.Contents1TheModel31.1Lotka-VolterraDynamics......................31.2Mutation...............................42StructureoftheEcolabSimulationSystem63MakingEcolab84Constructinganexperiment84.1InputParameters...........................94.2Themainbuttonbar.........................94.3Instrumentation............................104.3.1Plot..............................104.3.2Histogram...........................104.3.3Display............................104.3.4Connectplot.........................114.4AuxilliaryCommands........................114.4.1getglobalvars/dataserver.................114.4.2checkpoint/restart......................114.5EcolabModelcommands.......................124.5.1generate............................1214.5.2condense...........................124.5.3mutate.............................124.5.4migrate............................134.5.5maxeig.............................134.5.6lifetimes............................134.5.7get...............................135CreatingNewInstruments146CreatingaNewModel157SpatialVariation167.1ParallelExecution..........................168tcl++188.1GlobalVariables...........................188.2CreatingaTclcommand.......................188.3tclvar.................................198.4tclcmd.................................208.5tclreturn................................218.6tclindex................................229arrays239.1arrayandiarray...........................239.1.1IndexingandGather/Scatter................269.1.2Rounding...........................269.2sparsemat..............................269.3Globalfunctions...........................279.3.1Reductionfunctions.....................289.3.2Arrayfunctions........................289.3.3Randomnumberfunctions..................289.3.4StreamFunctions.......................2810initarraysmodule2911Globalsclass3112Analysis3412.1newwin................................3412.2ReductionFunctions.........................3412.3PaletteVariable............................3412.4displaystub..............................3412.5connectstub.............................3521TheModelWestartwithageneralisedformoftheLotka-Volterraequation_n=r n+n n:(1)Herenisthepopulationdensity,thecomponentnibeingthenumberofindi-vidualsofspeciesi,risthedi erencebetweenreproductionanddeath, istheinteractionmatrix,with ijbeingtheinteractionbetweenspeciesiandj,*referringtoelementwisemultiplicationandmutateisthemutationoperator.1.1Lotka-VolterraDynamicsThemostobviousthingaboutequation(1)isits xedpoint^n= 1r;(2)where_n=0.Forthispointtobebiologicallymeaningful,allcomponentsof^nmustbepositive,givingrisetothefollowinginequalities:^ni= 1r i0;8i(3)Thestabilityofthispointisrelatedtothenegativede nitenessofderivativeof_nat^n.Thecomponentsofthederivativearegivenby@_ni@nj= ijri+Xk iknk!+ ijni(4)Substitutingeq(2)gives@_ni@nj ^n= ij 1r i(5)Stabilityofthe xedpointrequiresthatthismatrixshouldbenegativede -nite.Sincethe 1r iareallnegativebyvirtueof(3),eachminordeterminantofthismatrixisequaltoaminordeterminantof multipliedbyapositivenum-ber,stabilityoftheequilibriumisequivalentto beingnegativede nite.Aweakerconditionistorequirethatthesystemremainboundedwithtime:Xi_ni=r n+n n0;8n:XiniN9N(6)Asnbecomeslargeinanydirection,thisfunctionalisdominatedbythequadraticterm,sothisimpliesthatn n 08n:ni0.Negativede -nitenessof issu cient,butnotnecessaryforthiscondition.Forexample,thepredator-preyrelations(heavilynormalised)havethefollowingmatrixas :3 = 12 20 whichhaseigenvalues3=2; 5=2.Ifweletn=(x;y);x;y 0,thenn n= 2x2,whichisclearlynon-positiveforallnonpositivex.Consideraddinganewrowandcolumnto .Whatisconditionisthenewrowandcolumnrequiredtosatisfysuchthatequation(6)issatis ed.Breakup inthefollowingway:0BBBB@...A......B... C D1CCCCA0BBBB@...n1...n21CCCCACondition(6)becomes:n1 An1+n1 (B+C)n2+Dn22 0(7)Leta=maxn=1n An;andb=maxiBi+Ci:Thenasu cientbutnotnecessaryconditionforcondition(7)isan21+bn1n2+Dn22 0Themaximumvaluewithrespectton2isan21 (bn1)2=4D,sothisrequiresthatb2pad(8)1.2MutationWithmutation,equation(1)reads_n=r n+n n+mutate( ;r;n):(9)Thedi cultywithaddingmutationtothismodelishowtode nethemap-pingbetweengenotypespaceandphenotypespace,orinotherwords,whatde nestheembryology.Afewstudies,includingRay’sTierraworld,dothiswithanexplicitmappingfromthegenotypetotosomeparticularorganismproperty(e.g.interpretedasmachinelanguageinstructions,orasweightinaneuralnet).Theseorganismstheninteractwithoneanothertodeterminethepopulationdynamics.Inthismodel,howe
本文标题:EcoLab Documentation
链接地址:https://www.777doc.com/doc-4069248 .html