uk.ac.liv.auction.zi
Class ZIPExperiment

java.lang.Object
  extended byuk.ac.liv.auction.MarketSimulation
      extended byuk.ac.liv.auction.zi.ZIPExperiment
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable

public class ZIPExperiment
extends MarketSimulation

An implementation of Cliff's symetric supply and demand ZIP experiment. See:

"Minimal Intelligence Agents for Bargaining Behaviours in Market-based Environments" Dave Cliff 1997

Work is currently in progress to attempt a full replication of the results in the above paper. Currently JASA is not able to replicate these results.

Version:
$Revision: 1.15 $
Author:
Steve Phelps
See Also:
Serialized Form

Field Summary
protected  boolean console
           
protected  boolean gatherStats
           
protected  DailyStatsReport marketData
           
protected  int numBuyers
           
protected  int numDays
           
protected  int numSamples
           
protected  int numSellers
           
static java.lang.String P_DAYS
           
static java.lang.String P_GATHER_STATS
           
static java.lang.String P_NUMBUYERS
           
static java.lang.String P_NUMSAMPLES
           
static java.lang.String P_NUMSELLERS
           
static java.lang.String P_PRIVVALUEINCREMENT
           
static java.lang.String P_PRIVVALUERANGEMIN
           
static java.lang.String P_SIMULATION
           
static java.lang.String P_STATS
           
protected  double privValueIncrement
           
protected  double privValueRangeMin
           
protected  long prngSeed
           
protected  AuctionReport stats
           
protected  int tradeEntitlement
           
protected  CummulativeDistribution[] transPriceMean
           
protected  CummulativeDistribution[] transPriceStdDev
           
 
Fields inherited from class uk.ac.liv.auction.MarketSimulation
auction, iterations, P_AUCTION, P_ITERATIONS, P_WRITER, resultsFile
 
Constructor Summary
ZIPExperiment()
           
 
Method Summary
protected static void fatalError(java.lang.String message)
           
protected  void initialiseAgents()
           
static void main(java.lang.String[] args)
           
 void report()
           
 void run()
           
protected  void setSupplyAndDemand()
           
 void setup(ec.util.ParameterDatabase parameters, ec.util.Parameter base)
           
 
Methods inherited from class uk.ac.liv.auction.MarketSimulation
finalReport, gnuMessage, recordResults, runBatchExperiment, runSingleExperiment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

marketData

protected DailyStatsReport marketData

stats

protected AuctionReport stats

gatherStats

protected boolean gatherStats

prngSeed

protected long prngSeed

tradeEntitlement

protected int tradeEntitlement

privValueRangeMin

protected double privValueRangeMin

privValueIncrement

protected double privValueIncrement

numDays

protected int numDays

numSellers

protected int numSellers

numBuyers

protected int numBuyers

numSamples

protected int numSamples

transPriceMean

protected CummulativeDistribution[] transPriceMean

transPriceStdDev

protected CummulativeDistribution[] transPriceStdDev

console

protected boolean console

P_SIMULATION

public static final java.lang.String P_SIMULATION
See Also:
Constant Field Values

P_STATS

public static final java.lang.String P_STATS
See Also:
Constant Field Values

P_GATHER_STATS

public static final java.lang.String P_GATHER_STATS
See Also:
Constant Field Values

P_PRIVVALUERANGEMIN

public static final java.lang.String P_PRIVVALUERANGEMIN
See Also:
Constant Field Values

P_PRIVVALUEINCREMENT

public static final java.lang.String P_PRIVVALUEINCREMENT
See Also:
Constant Field Values

P_NUMBUYERS

public static final java.lang.String P_NUMBUYERS
See Also:
Constant Field Values

P_NUMSELLERS

public static final java.lang.String P_NUMSELLERS
See Also:
Constant Field Values

P_DAYS

public static final java.lang.String P_DAYS
See Also:
Constant Field Values

P_NUMSAMPLES

public static final java.lang.String P_NUMSAMPLES
See Also:
Constant Field Values
Constructor Detail

ZIPExperiment

public ZIPExperiment()
Method Detail

main

public static void main(java.lang.String[] args)

setup

public void setup(ec.util.ParameterDatabase parameters,
                  ec.util.Parameter base)
Overrides:
setup in class MarketSimulation

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class MarketSimulation

report

public void report()

fatalError

protected static void fatalError(java.lang.String message)

initialiseAgents

protected void initialiseAgents()

setSupplyAndDemand

protected void setSupplyAndDemand()