[{"data":1,"prerenderedAt":254},["ShallowReactive",2],{"/dict/max-n-of":3,"/dict/max-n-of-surround":243},{"id":4,"title":5,"body":6,"description":210,"extension":211,"meta":212,"navigation":230,"path":239,"seo":240,"stem":241,"__hash__":242},"content/dict/max-n-of.md","NetLogo Dictionary: max-n-of",{"type":7,"value":8,"toc":199},"minimark",[9],[10,11,16,35,67,85,174],"div",{"className":12,"id":14,"role":15},[13],"dict_entry","max-n-of","region",[17,18,20],"h3",{"id":19},"max-n-of40",[21,22,26,27],"a",{"href":23,"role":24,"ariaLabel":25},"#max-n-of","doc-noteref","Reference to max-n-of","\nmax-n-of\n",[28,29,34],"span",{"className":30,"role":32,"ariaLabel":33},[31],"since","note","Since version","\n4.0\n",[36,37,41],"h4",{"id":38,"className":39},"max-n-of-number-agentset-reporter",[40],"section-heading",[21,42,46],{"className":43,"href":45},[44],"section-anchor","#max-n-of-number-agentset-reporter",[28,47,50],{"className":48},[49],"prim_example",[51,52,53,54,58,59,58,62],"p",{},"max-n-of ",[55,56,57],"em",{},"number"," ",[55,60,61],{},"agentset",[28,63,64],{},[55,65,66],{},"reporter",[51,68,69,70,72,73,75,76,78,79,81,82,84],{},"Reports an agentset containing ",[55,71,57],{}," agents from ",[55,74,61],{}," with the highest values of ",[55,77,66],{},". The\nagentset is built by finding all the agents with the highest\nvalue of ",[55,80,66],{},", if there are not ",[55,83,57],{}," agents\nwith that value then agents with the second highest value are\nfound, and so on. At the end, if there is a tie that would make\nthe resulting agentset too large, the tie is broken randomly.",[86,87,88],"pre",{},[89,90,91,97,100,58,105,58,108,58,112,116,117,121,122,124,128,130,58,133,58,136,58,139,58,142,116,146,58,150,58,154,158,159,121,162,164,168,170],"code",{},[28,92,96],{"className":93},[94,95],"token","comment",";; assume the world is 11 x 11",[98,99],"br",{},[28,101,104],{"className":102},[94,103],"command","show",[28,106,14],{"className":107},[94,66],[28,109,111],{"className":110},[94,57],"5",[28,113,115],{"className":114},[94,66],"patches"," [",[28,118,120],{"className":119},[94,66],"pxcor","]",[98,123],{},[28,125,127],{"className":126},[94,95],";; shows 5 patches with pxcor = max-pxcor",[98,129],{},[28,131,104],{"className":132},[94,103],[28,134,14],{"className":135},[94,66],[28,137,111],{"className":138},[94,57],[28,140,115],{"className":141},[94,66],[28,143,145],{"className":144},[94,66],"with",[28,147,149],{"className":148},[94,66],"pycor",[28,151,153],{"className":152},[94,66],"=",[28,155,157],{"className":156},[94,57],"0","] [",[28,160,120],{"className":161},[94,66],[98,163],{},[28,165,167],{"className":166},[94,95],";; shows an agentset containing:",[98,169],{},[28,171,173],{"className":172},[94,95],";; (patch 1 0) (patch 2 0) (patch 3 0) (patch 4 0) (patch 5 0)",[51,175,176,177,189,190,198],{},"See also ",[178,179,181],"primitive",{"displayText":180,"permalink":180},"max-one-of",[21,182,180],{"className":183,"dataDisplayText":180,"href":185,"rel":186,"target":188,"title":180},[184],"netlogo-wiki-link","/dictionary#max-one-of",[187],"noopener","_self",", ",[178,191,193],{"displayText":192,"permalink":192},"with-max",[21,194,192],{"className":195,"dataDisplayText":192,"href":196,"rel":197,"target":188,"title":192},[184],"/dictionary#with-max",[187],".",{"title":200,"searchDepth":201,"depth":202,"links":203},"",5,3,[204],{"id":19,"depth":202,"text":205,"children":206},"\nmax-n-of\n\n4.0\n",[207],{"id":38,"depth":208,"text":209},4,"max-n-of number agentset reporter","Documentation for the max-n-of primitive.","md",{"source":213,"metadataOutputPath":214,"projectConfig":215,"language":222,"inheritFrom":231,"output":230,"version":216,"layout":232,"dictionaryDisplayName":233,"dictionaryHomeDirectory":234,"indexFileURI":235,"currentItemId":14,"currentItemLabel":14,"primRoot":236,"icon":237,"assetsRoot":238},"autogen/dict/max-n-of.md","content/dict/max-n-of.metadata.yaml",{"version":216,"projectRoot":198,"scanRoot":217,"outputRoot":218,"defaults":219,"engine":225,"partials":226,"dedupeIdenticalDiskWrites":230},"7.0.4","autogen","content",{"inheritFrom":220,"language":222,"output":223,"extension":211,"title":224,"version":216},[221],0,"en",false,"NetLogo User Manual","handlebars",{"directoryPaths":227,"extensions":228},[198],[229,211],"mustache",true,[221],"catalog","NetLogo Dictionary","/dictionary.html","/_index/dict.txt","dict","i-lucide-square-code","/home/runner/work/Helio/Helio/apps/docs/autogen","/dict/max-n-of",{"title":5,"description":210},"dict/max-n-of","nJG2ilVeUHZBFcnLd103nt4E8ornWkQw6y9t5iKBSvs",[244,249],{"title":245,"path":246,"stem":247,"description":248},"NetLogo Dictionary: max","/dict/max","dict/max","Documentation for the max primitive.",{"title":250,"path":251,"stem":252,"description":253},"NetLogo Dictionary: max-one-of","/dict/max-one-of","dict/max-one-of","Documentation for the max-one-of primitive.",1777657821107]