【发布时间】:2014-12-16 13:19:19
【问题描述】:
我的卖家使用此代码设置 trade_Price:
ask buyers [ ask sellers [if any? buyers-here [ if seller_Price <= [buyer_Price] of myself
[ set trade_Price seller_Price + random ([buyer_Price] of myself - seller_Price) ]]]]
如果我的买家在同一补丁中有卖家,我希望他们也采用相同的 trade_Price。(如果有的话?卖家在这里)。我这样编码:
ask sellers [ ask buyers [if any? sellers-here [set trade_Price ( [trade_Price] of myself )]]]
我认为它的代码错误,因为我从我的代理夫妇那里得到了不同的 trade_Price 。 你知道我该如何设置吗? 最好的问候
【问题讨论】: