Пример #1
0
    } // end of resetAgents

    /*
     * loadfiles
     */
    void loadFilesInGame()
    {
        if (coadapt)
        {
            // load files for both
            preyStateArray.loadStates(fileManager.readFileStates(relativePath + "/Results/Prey/coadapt/states/", "preycoadaptStates"));
            preyQlearning.loadQTable(fileManager.readFileQ(relativePath + "/Results/Prey/coadapt/Qtable/", "preycoadaptQ"));
            predatorStateArray.loadStates(fileManager.readFileStates(relativePath + "/Results/Predator/coadapt/states/", "predatorcoadaptStates"));
            predatorQlearning.loadQTable(fileManager.readFileQ(relativePath + "/Results/Predator/coadapt/Qtable/", "predatorcoadaptQ"));
        }
        else if (preysolo)
        {
            // load files for prey
            preyStateArray.loadStates(fileManager.readFileStates(relativePath + "/Results/Prey/solotrain/states/", "preysoloStates"));
            preyQlearning.loadQTable(fileManager.readFileQ(relativePath + "/Results/Prey/solotrain/Qtable/", "preysoloQ"));
        }
        else if (predatorsolo)
        {
            // load files for predator
            preyStateArray.loadStates(fileManager.readFileStates(relativePath + "/Results/Predator/solotrain/states/", "predatorsoloStates"));
            preyQlearning.loadQTable(fileManager.readFileQ(relativePath + "/Results/Predator/solotrain/Qtable/", "predatorsoloQ"));
        }
    } // end of loadFilesInGame
Пример #2
0
 void loadFiles()
 {
     // load files for prey
     preyStateArray.loadStates(fileManager.readFileStates(relativePath + "/Results/Prey/solotrain/states/", "preysoloStates"));
     preyQlearning.loadQTable(fileManager.readFileQ(relativePath + "/Results/Prey/solotrain/Qtable/", "preysoloQ"));
 }