From 9e978daa44d7e38e0828a796318bf9f440f0ade3 Mon Sep 17 00:00:00 2001 From: Jeremy B Date: Mon, 27 Jul 2026 11:54:05 -0500 Subject: [PATCH] BiddingMarket: Fix BehaviorSpace example experiment --- .../Economics/Bidding Market.nlogox | 63 ++++++++++--------- 1 file changed, 33 insertions(+), 30 deletions(-) diff --git a/Sample Models/Social Science/Economics/Bidding Market.nlogox b/Sample Models/Social Science/Economics/Bidding Market.nlogox index 9501688de..d5fb3ac51 100644 --- a/Sample Models/Social Science/Economics/Bidding Market.nlogox +++ b/Sample Models/Social Science/Economics/Bidding Market.nlogox @@ -340,6 +340,14 @@ to-report check-for-min-price [ value ] report precision ifelse-value value < min-price [min-price] [value] 2 end +to-report guarded-metric [ metric-op agents ] + report ifelse-value count agents > 0 [ + (runresult metric-op agents) + ] [ + "" + ] +end + ; Copyright 2017 Uri Wilensky. ; See Info tab for full copyright and license.]]> @@ -1393,7 +1401,7 @@ To inquire about commercial licenses for either NetLogo or specific models from setup repeat 75 [ go ] - + setup go @@ -1401,43 +1409,38 @@ To inquire about commercial licenses for either NetLogo or specific models from average-price sum [money] of buyers sum [money] of sellers - 0]]]> - 0]]]> - 0]]]> - 0]]]> - 0]]]> - 0]]]> + mean [asking-price] of ts] (sellers with [items-for-sale > 0])]]> + min [asking-price] of ts] (sellers with [items-for-sale > 0])]]> + max [asking-price] of ts] (sellers with [items-for-sale > 0])]]> + mean [willing-to-pay] of ts] (buyers with [want-to-buy > 0])]]> + min [willing-to-pay] of ts] (buyers with [want-to-buy > 0])]]> + max [willing-to-pay] of ts] (buyers with [want-to-buy > 0])]]> - - - - - - - - - - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - -