nextState = new State();
nextState.discrete = true;
nextState.discreteState = id(result);
}
Action vanactions[] = new Action[2];
vanactions[0] = new Action();
vanactions[0].discreteAction = id(action);
vanactions[0].discrete = true;
vanactions[1] = new Action();
vanactions[1].discreteAction = previous_action;
vanactions[1].discrete = true;
previous_action = id(action);
double learning_rat[] = new double[2];