示例#1
0
 public IOperator action(IState s)
 {
     if (rand.NextDouble() < epsilon)
     {
         int size = qLearning.Env.ApplicableOperators(s).Count();
         return(qLearning.Env.ApplicableOperators(s).ElementAt(rand.Next(size)));
     }
     else
     {
         return(qLearning.GetBestOp(s));
     }
 }
示例#2
0
 public IOperator action(IState s)
 {
     return(qLearning.GetBestOp(s));
 }