protected SarsaAgent makeAgent(List<? extends Option> optionPool) {
qf = TabularQFunction.getInstance(optionPool.size());
SarsaAgent a = new QLearningAgent(qf, 1, optionPool);
//a.setLearnRate(new DecayingLearningRate(1, optionPool.size(), 0.8));
a.setLearnRate( new FixedLearningRate(0.2) );
Policy pi = new EGreedyPolicy(qf, 0.05, optionPool);
a.setPolicy(pi);
a.setSMDPMode(true);
a.setLearnStateValueFunction(false);
a.setInterruptOptions(false);
return a;