Example #1
0
        public void Update <Agent>(Agent agent)
        {
            StepDetails stepDetails = ai.GetStepDetails(agent);

            model = model.UpdateModel(stepDetails.currentState, stepDetails.action, stepDetails.nextState, stepDetails.reward);
            Planing.PlanningDetails details;
            details.cycleRate    = cycleRate;
            details.model        = model;
            details.currentState = stepDetails.currentState;
            details.nextState    = stepDetails.nextState;
            details.action       = stepDetails.action;
            details.reward       = stepDetails.reward;
            planing.Plan(details);
        }
Example #2
0
 public void UpdateActionValueFunction(StepDetails details)
 {
     UpdateActionValueFunction(details.currentState, details.nextState, details.action, details.reward);
 }
Example #3
0
        void AI.Update <Agent>(Agent agent)
        {
            StepDetails stepDetails = GetStepDetails(agent);

            UpdateActionValueFunction(stepDetails);
        }