src/demo/TSP.java
public void commitAction(Agent agent, int action) {
        tour.addVisitedCity(action + 1);
        updateState();
        setReward(agent);
    }
/**
     * Takes specific action.
     *
     * @param agent  agent that is taking action.
     * @param action action to be taken.
     */
Takes specific action.
@param agent  agent that is taking action.
@param action action to be taken.
Takes specific action . @param agent agent that is taking action . @param action action to be taken .
public void commitAction(Agent agent, int action) {
        tour.addVisitedCity(action + 1);
        updateState();
        setReward(agent);
    }
public void commitAction ( Agent agent , int action ) { tour . addVisitedCity ( action + 1 ) ; updateState ( ) ; setReward ( agent ) ; }
Takes specific action.
Takes specific action .