[{"data":1,"prerenderedAt":197},["ShallowReactive",2],{"/ls/create-models":3,"/ls/create-models-surround":186},{"id":4,"title":5,"body":6,"description":152,"extension":153,"meta":154,"navigation":172,"path":182,"seo":183,"stem":184,"__hash__":185},"content/ls/create-models.md","LevelSpace Extension Dictionary: create-models",{"type":7,"value":8,"toc":141},"minimark",[9],[10,11,15,16,15,26,61,74,81,134],"div",{"className":12,"id":14},[13],"dict_entry","create-models","\n  ",[17,18,20,21,15],"h3",{"id":19},"lscreate-models","\n    ",[22,23,25],"a",{"href":24},"#create-models","ls:create-models",[27,28,32],"h4",{"id":29,"className":30},"lscreate-models-netlogo-number-path-lscreate-models-netlogo-number-path-command",[31],"section-heading",[22,33,20,37,20,51,15],{"className":34,"href":36},[35],"section-anchor","#----lscreate-models-netlogo-number-path----lscreate-models-netlogo-number-path-command--",[38,39,42,43,47,48],"span",{"className":40},[41],"prim_example","ls:create-models ",[44,45,46],"i",{},"netlogo-number"," ",[44,49,50],{},"path",[38,52,42,54,47,56,47,58],{"className":53},[41],[44,55,46],{},[44,57,50],{},[44,59,60],{},"command",[62,63,64,65,69,70,73],"p",{},"Create the specified number of instances of the given model.  The path can be absolute, or relative to the main model. Compared with ",[66,67,68],"code",{},"ls:create-interactive-models",", this primitive creates lightweight models that are hidden by default. You should use this primitive if you plan on having many instances of the given model. The models may be shown using ",[66,71,72],{},"ls:show","; when visible, they will have a view and command center, but no other widgets, e.g. plots or monitors.",[62,75,76,77,80],{},"If given a command, LevelSpace will call the command after loading each instance of the model with the ",[66,78,79],{},"model-id"," as the argument. This allows you to easily store model ids in a variable or list when loading models, or do other initialization. For example, to store a model id in a variable, you can do:",[82,83,84],"pre",{},[66,85,86,47,91,47,95,100,103,104,47,107,112,113,117,118,47,123,47,127,47,130,133],{},[38,87,90],{"className":88},[89,60],"token","let",[38,92,79],{"className":93},[89,94],"variable",[38,96,99],{"className":97},[89,98],"number","0",[101,102],"br",{},"(",[38,105,25],{"className":106},[89,94],[38,108,111],{"className":109},[89,110],"string","\"My-Model.nlogox\""," [ [",[38,114,116],{"className":115},[89,94],"id","] ",[38,119,122],{"className":120},[89,121],"reporter","->",[38,124,126],{"className":125},[89,60],"set",[38,128,79],{"className":129},[89,94],[38,131,116],{"className":132},[89,94]," ])",[62,135,136,137,140],{},"Child model RNGs are seeded from the parent models RNG when they are created.\nThus, if you seed the parent’s model RNG before child model before child models are created, the simulation as a whole will be reproducible.\nUse the ",[66,138,139],{},"ls:random-seed"," primitive to seed the model system’s RNGs after child models have been created.",{"title":142,"searchDepth":143,"depth":144,"links":145},"",5,3,[146],{"id":19,"depth":144,"text":147,"children":148},"\n    ls:create-models\n  ",[149],{"id":29,"depth":150,"text":151},4,"\n    ls:create-models netlogo-number path\n    ls:create-models netlogo-number path command\n  ","Documentation for the create-models primitive.","md",{"source":155,"metadataOutputPath":156,"projectConfig":157,"language":165,"inheritFrom":173,"output":172,"version":158,"layout":174,"dictionaryDisplayName":175,"dictionaryHomeDirectory":176,"indexFileURI":177,"currentItemId":14,"currentItemLabel":25,"primRoot":178,"icon":179,"extensionName":180,"assetsRoot":160},"../../external/extensions/ls/ls/create-models.md","content/ls/create-models.metadata.yaml",{"version":158,"projectRoot":159,"scanRoot":160,"outputRoot":161,"defaults":162,"engine":168,"partials":169,"dedupeIdenticalDiskWrites":172},"7.0.4",".","/home/runner/work/Helio/Helio/external/extensions/ls","content",{"inheritFrom":163,"language":165,"output":166,"extension":153,"title":167,"version":158},[164],0,"en",false,"NetLogo User Manual","mustache",{"directoryPaths":170,"extensions":171},[159],[168,153],true,[164],"catalog","LevelSpace Extension Dictionary","/ls.html","/_index/extensions/ls.txt","ls","i-si-flow-parallel-duotone",{"shortName":178,"fullName":181},"LevelSpace","/ls/create-models",{"title":5,"description":152},"ls/create-models","XozujVLmM24cRhG9FTf4hgl_eHCZMm19uC_FlkT0LMg",[187,192],{"title":188,"path":189,"stem":190,"description":191,"children":-1},"LevelSpace Extension Dictionary: create-interactive-models","/ls/create-interactive-models","ls/create-interactive-models","Documentation for the create-interactive-models primitive.",{"title":193,"path":194,"stem":195,"description":196,"children":-1},"LevelSpace Extension Dictionary: dictionary","/ls/dictionary","ls/dictionary","Documentation for the dictionary primitive.",1777657771306]