Search in sources :

Example 1 with EvalBattleGame

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.
}
Also used : SimpleRMHC(ga.SimpleRMHC) EvalBattleGame(gvglink.EvalBattleGame) MBanditEA(bandits.MBanditEA)

Aggregations

MBanditEA (bandits.MBanditEA)1 SimpleRMHC (ga.SimpleRMHC)1 EvalBattleGame (gvglink.EvalBattleGame)1