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); }
public void UpdateActionValueFunction(StepDetails details) { UpdateActionValueFunction(details.currentState, details.nextState, details.action, details.reward); }
void AI.Update <Agent>(Agent agent) { StepDetails stepDetails = GetStepDetails(agent); UpdateActionValueFunction(stepDetails); }