net.sourceforge.jasa.agent.strategy
Class RandomConstrainedStrategy
java.lang.Object
AbstractStrategy
net.sourceforge.jasa.agent.strategy.AbstractTradingStrategy
net.sourceforge.jasa.agent.strategy.FixedQuantityStrategyImpl
net.sourceforge.jasa.agent.strategy.FixedDirectionStrategy
net.sourceforge.jasa.agent.strategy.RandomConstrainedStrategy
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, FixedQuantityStrategy, TradingStrategy, MarketEventListener
public class RandomConstrainedStrategy
- extends FixedDirectionStrategy
- implements java.io.Serializable
A trading strategy that in which we bid a different random markup on our
agent's private value in each market round. This strategy is often referred
to as Zero Intelligence Constrained (ZI-C) in the literature.
Parameters
base.maxmarkup
double >= 0 |
(the maximum markup to bid for) |
-
-
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
markupDistribution
protected AbstractContinousDistribution markupDistribution
RandomConstrainedStrategy
public RandomConstrainedStrategy()
RandomConstrainedStrategy
public RandomConstrainedStrategy(AbstractTradingAgent agent)
modifyShout
public boolean modifyShout(Order shout)
- Overrides:
modifyShout
in class FixedDirectionStrategy
onRoundClosed
public void onRoundClosed(Market auction)
toString
public java.lang.String toString()
getMarkupDistribution
public AbstractContinousDistribution getMarkupDistribution()
setMarkupDistribution
public void setMarkupDistribution(AbstractContinousDistribution markupDistribution)