Class BatchSimulator

java.lang.Object
  |
  +--BatchSimulator

public class BatchSimulator
extends java.lang.Object

This class implements the main loop. It sets the initial vector of random parameters for each run and asks AgentsPopulations to run the simulation with these parameters.


Field Summary
private static XCSConstants cons
          Stores the relevant constants for XCS.
private static int MAXPROBLEMS
          The number of problems
private static int nbRuns
          Number of simulations in the batch
private static java.io.File outFile1
          File to store results
private static java.util.Random R
          Random generator
private static double SAVEPROB
          The probability of saving the results of each problem
 
Constructor Summary
BatchSimulator()
          Constructor
 
Method Summary
static void main(java.lang.String[] args)
          The main loop.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

R

private static java.util.Random R
Random generator


cons

private static XCSConstants cons
Stores the relevant constants for XCS.

See Also:
XCSConstants

nbRuns

private static int nbRuns
Number of simulations in the batch


SAVEPROB

private static double SAVEPROB
The probability of saving the results of each problem


MAXPROBLEMS

private static int MAXPROBLEMS
The number of problems


outFile1

private static java.io.File outFile1
File to store results

Constructor Detail

BatchSimulator

public BatchSimulator()
Constructor

Method Detail

main

public static void main(java.lang.String[] args)
The main loop. Initialization of the vector of key parameters and of the output file and run of the simulation.

See Also:
AgentsPopulations.run(), AgentsPopulations#AgentsPopulations(int, double, double, int, int, int, int, String, int, double, File, int), XCSConstants