use of gvglink.EvalBattleGame in project SimpleAsteroids by ljialin.
the class BattleTestEA method main.
public static void main(String[] args) {
// the number of bandits is equal to the size of the array
int nTrials = 10;
int nFitnessEvals = 100;
EvoAlg ea = new MBanditEA();
ea = new SimpleRMHC(1);
int nDims = 10;
int mValues = 2;
// SolutionEvaluator evaluator = new EvalMaxM(nDims, mValues);
SolutionEvaluator evaluator = new EvalBattleGame();
// ea = new NTupleBanditEA();
System.out.println("Best fitness stats:");
System.out.println(runTrials(ea, evaluator, nTrials, nFitnessEvals));
// evaluator.
}
Aggregations