11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <model version =" NetLogo 7.0.0-beta0 " snapToGrid =" true" >
2+ <model version =" NetLogo 7.0.0-beta1 " snapToGrid =" true" >
33 <code ><![CDATA[ globals [
44 ; these are setup-only variables, used to make changing the model easier
55 min-price
@@ -344,10 +344,41 @@ end
344344; Copyright 2017 Uri Wilensky.
345345; See Info tab for full copyright and license.]]> </code >
346346 <widgets >
347- <view x =" 245" wrappingAllowedX =" false" y =" 10" frameRate =" 30.0" minPycor =" -14" height =" 555" showTickCounter =" true" patchSize =" 19.0" fontSize =" 10" wrappingAllowedY =" false" width =" 555" tickCounterLabel =" ticks" maxPycor =" 14" updateMode =" 1" maxPxcor =" 14" minPxcor =" -14" ></view >
348- <button x =" 10" y =" 260" height =" 33" disableUntilTicks =" false" forever =" false" kind =" Observer" display =" setup" width =" 66" sizeVersion =" 0" >setup</button >
349- <button x =" 80" y =" 260" height =" 33" disableUntilTicks =" true" forever =" false" kind =" Observer" display =" go-once" width =" 82" sizeVersion =" 0" >go</button >
350- <plot x =" 810" autoPlotX =" true" yMax =" 100.0" autoPlotY =" true" y =" 10" xMin =" 0.0" height =" 150" legend =" false" xMax =" 10.0" yMin =" 0.0" display =" Seller Asking Prices (min, average, max)" width =" 375" sizeVersion =" 0" >
347+ <view x =" 270" wrappingAllowedX =" false" y =" 7" frameRate =" 30.0" minPycor =" -14" height =" 555" showTickCounter =" true" patchSize =" 19.0" fontSize =" 10" wrappingAllowedY =" false" width =" 555" tickCounterLabel =" ticks" maxPycor =" 14" updateMode =" 1" maxPxcor =" 14" minPxcor =" -14" ></view >
348+ <slider x =" 5" step =" 25" y =" 7" max =" 500" width =" 260" display =" starting-money" height =" 50" min =" 0" direction =" Horizontal" default =" 500.0" variable =" starting-money" ></slider >
349+ <chooser x =" 5" y =" 60" height =" 60" variable =" supply-amount" current =" 0" width =" 120" display =" supply-amount" >
350+ <choice type =" string" value =" high" ></choice >
351+ <choice type =" string" value =" low" ></choice >
352+ </chooser >
353+ <chooser x =" 130" y =" 60" height =" 60" variable =" supply-distribution" current =" 1" width =" 135" display =" supply-distribution" >
354+ <choice type =" string" value =" concentrated" ></choice >
355+ <choice type =" string" value =" even" ></choice >
356+ </chooser >
357+ <chooser x =" 5" y =" 125" height =" 60" variable =" demand-amount" current =" 1" width =" 120" display =" demand-amount" >
358+ <choice type =" string" value =" low" ></choice >
359+ <choice type =" string" value =" high" ></choice >
360+ </chooser >
361+ <chooser x =" 130" y =" 125" height =" 60" variable =" demand-distribution" current =" 1" width =" 135" display =" demand-distribution" >
362+ <choice type =" string" value =" concentrated" ></choice >
363+ <choice type =" string" value =" even" ></choice >
364+ </chooser >
365+ <chooser x =" 50" y =" 190" height =" 60" variable =" seller-behavior" current =" 0" width =" 165" display =" seller-behavior" >
366+ <choice type =" string" value =" normal" ></choice >
367+ <choice type =" string" value =" desperate" ></choice >
368+ <choice type =" string" value =" random" ></choice >
369+ <choice type =" string" value =" mix of all" ></choice >
370+ </chooser >
371+ <button x =" 90" y =" 330" height =" 35" disableUntilTicks =" true" forever =" false" kind =" Observer" width =" 82" display =" go-once" >go</button >
372+ <button x =" 175" y =" 330" height =" 35" disableUntilTicks =" true" forever =" true" kind =" Observer" width =" 64" display =" go" >go</button >
373+ <chooser x =" 50" y =" 255" height =" 60" variable =" buyer-behavior" current =" 0" width =" 165" display =" buyer-behavior" >
374+ <choice type =" string" value =" normal" ></choice >
375+ <choice type =" string" value =" desperate" ></choice >
376+ <choice type =" string" value =" random" ></choice >
377+ <choice type =" string" value =" mix of all" ></choice >
378+ </chooser >
379+ <switch x =" 20" y =" 375" height =" 37" on =" false" variable =" sellers-ignore-full-buyers?" width =" 220" display =" sellers-ignore-full-buyers?" ></switch >
380+ <switch x =" 80" y =" 420" height =" 37" on =" true" variable =" stars?" width =" 103" display =" stars?" ></switch >
381+ <plot x =" 830" autoPlotX =" true" yMax =" 100.0" autoPlotY =" true" y =" 7" xMin =" 0.0" height =" 150" legend =" false" xMax =" 10.0" yMin =" 0.0" width =" 375" display =" Seller Asking Prices (min, average, max)" >
351382 <setup ></setup >
352383 <update ><![CDATA[ let top (floor ifelse-value average-price = 0 [max [asking-price] of sellers] [average-price * 2])
353384set-plot-y-range 0 ifelse-value top < 1 [1] [top]]]> </update >
@@ -373,27 +404,7 @@ ifelse (count ss = 0)
373404[ plot max [asking-price] of ss ]]]> </update >
374405 </pen >
375406 </plot >
376- <button x =" 165" y =" 260" height =" 34" disableUntilTicks =" true" forever =" true" kind =" Observer" display =" go" width =" 64" sizeVersion =" 0" >go</button >
377- <plot x =" 812" autoPlotX =" true" yMax =" 10.0" autoPlotY =" true" y =" 317" xMin =" 0.0" height =" 166" legend =" true" xMax =" 10.0" yMin =" 0.0" display =" Items" width =" 373" sizeVersion =" 0" >
378- <setup ></setup >
379- <update ></update >
380- <pen interval =" 1.0" mode =" 0" display =" items-for-sale" color =" -13345367" legend =" true" >
381- <setup ></setup >
382- <update >plot sum [items-for-sale] of sellers</update >
383- </pen >
384- <pen interval =" 1.0" mode =" 0" display =" want-to-buy" color =" -5825686" legend =" true" >
385- <setup ></setup >
386- <update >plot sum [want-to-buy] of buyers</update >
387- </pen >
388- <pen interval =" 1.0" mode =" 0" display =" total-sales" color =" -7500403" legend =" true" >
389- <setup ></setup >
390- <update >plot total-sales</update >
391- </pen >
392- </plot >
393- <slider x =" 39" step =" 25" y =" 11" max =" 500" display =" starting-money" height =" 33" min =" 0" direction =" Horizontal" default =" 500.0" variable =" starting-money" width =" 173" sizeVersion =" 0" ></slider >
394- <monitor x =" 823" precision =" 2" y =" 493" height =" 45" fontSize =" 11" display =" Average Sale Price $" width =" 136" sizeVersion =" 0" >average-price</monitor >
395- <monitor x =" 963" precision =" 1" y =" 493" height =" 45" fontSize =" 11" display =" % of Starting Money Used" width =" 167" sizeVersion =" 0" >percent-money-taken</monitor >
396- <plot x =" 811" autoPlotX =" true" yMax =" 100.0" autoPlotY =" true" y =" 163" xMin =" 0.0" height =" 151" legend =" false" xMax =" 10.0" yMin =" 0.0" display =" Buyer Willing-to-Pay (min, average, max)" width =" 374" sizeVersion =" 0" >
407+ <plot x =" 830" autoPlotX =" true" yMax =" 100.0" autoPlotY =" true" y =" 160" xMin =" 0.0" height =" 151" legend =" false" xMax =" 10.0" yMin =" 0.0" width =" 374" display =" Buyer Willing-to-Pay (min, average, max)" >
397408 <setup ></setup >
398409 <update ><![CDATA[ let top floor ifelse-value average-price = 0 [max [asking-price] of sellers] [average-price * 2]
399410set-plot-y-range 0 ifelse-value top < 1 [1] [top]]]> </update >
@@ -419,36 +430,25 @@ ifelse (count bs = 0)
419430[ plot min [willing-to-pay] of bs ]]]> </update >
420431 </pen >
421432 </plot >
422- <chooser x =" 3" y =" 52" height =" 45" variable =" supply-amount" current =" 0" display =" supply-amount" width =" 111" sizeVersion =" 0" >
423- <choice type =" string" value =" high" ></choice >
424- <choice type =" string" value =" low" ></choice >
425- </chooser >
426- <chooser x =" 121" y =" 52" height =" 45" variable =" supply-distribution" current =" 1" display =" supply-distribution" width =" 118" sizeVersion =" 0" >
427- <choice type =" string" value =" concentrated" ></choice >
428- <choice type =" string" value =" even" ></choice >
429- </chooser >
430- <chooser x =" 3" y =" 98" height =" 45" variable =" demand-amount" current =" 1" display =" demand-amount" width =" 111" sizeVersion =" 0" >
431- <choice type =" string" value =" low" ></choice >
432- <choice type =" string" value =" high" ></choice >
433- </chooser >
434- <chooser x =" 121" y =" 98" height =" 45" variable =" demand-distribution" current =" 1" display =" demand-distribution" width =" 118" sizeVersion =" 0" >
435- <choice type =" string" value =" concentrated" ></choice >
436- <choice type =" string" value =" even" ></choice >
437- </chooser >
438- <chooser x =" 42" y =" 152" height =" 45" variable =" seller-behavior" current =" 0" display =" seller-behavior" width =" 159" sizeVersion =" 0" >
439- <choice type =" string" value =" normal" ></choice >
440- <choice type =" string" value =" desperate" ></choice >
441- <choice type =" string" value =" random" ></choice >
442- <choice type =" string" value =" mix of all" ></choice >
443- </chooser >
444- <chooser x =" 42" y =" 199" height =" 45" variable =" buyer-behavior" current =" 0" display =" buyer-behavior" width =" 159" sizeVersion =" 0" >
445- <choice type =" string" value =" normal" ></choice >
446- <choice type =" string" value =" desperate" ></choice >
447- <choice type =" string" value =" random" ></choice >
448- <choice type =" string" value =" mix of all" ></choice >
449- </chooser >
450- <switch x =" 5" y =" 350" height =" 33" on =" true" variable =" stars?" display =" stars?" width =" 103" sizeVersion =" 0" ></switch >
451- <switch x =" 5" y =" 310" height =" 33" on =" false" variable =" sellers-ignore-full-buyers?" display =" sellers-ignore-full-buyers?" width =" 226" sizeVersion =" 0" ></switch >
433+ <plot x =" 830" autoPlotX =" true" yMax =" 10.0" autoPlotY =" true" y =" 315" xMin =" 0.0" height =" 166" legend =" true" xMax =" 10.0" yMin =" 0.0" width =" 373" display =" Items" >
434+ <setup ></setup >
435+ <update ></update >
436+ <pen interval =" 1.0" mode =" 0" display =" items-for-sale" color =" -13345367" legend =" true" >
437+ <setup ></setup >
438+ <update >plot sum [items-for-sale] of sellers</update >
439+ </pen >
440+ <pen interval =" 1.0" mode =" 0" display =" want-to-buy" color =" -5825686" legend =" true" >
441+ <setup ></setup >
442+ <update >plot sum [want-to-buy] of buyers</update >
443+ </pen >
444+ <pen interval =" 1.0" mode =" 0" display =" total-sales" color =" -7500403" legend =" true" >
445+ <setup ></setup >
446+ <update >plot total-sales</update >
447+ </pen >
448+ </plot >
449+ <monitor x =" 1005" precision =" 1" y =" 490" height =" 60" fontSize =" 11" width =" 167" display =" % of Starting Money Used" >percent-money-taken</monitor >
450+ <monitor x =" 865" precision =" 2" y =" 490" height =" 60" fontSize =" 11" width =" 136" display =" Average Sale Price $" >average-price</monitor >
451+ <button x =" 20" y =" 330" height =" 35" disableUntilTicks =" false" forever =" false" kind =" Observer" width =" 66" display =" setup" >setup</button >
452452 </widgets >
453453 <info ><![CDATA[ ## WHAT IS IT?
454454
0 commit comments