示例#1
0
 public static IProblem <NQueensBoard, QueenAction> createIncrementalFormulationProblem(int boardSize)
 {
     return(new GeneralProblem <NQueensBoard, QueenAction>(new NQueensBoard(boardSize),
                                                           NQueensFunctions.getIFActionsFunction(),
                                                           NQueensFunctions.getResultFunction(),
                                                           NQueensFunctions.testGoal));
 }
示例#2
0
 public static IProblem <NQueensBoard, QueenAction> createCompleteStateFormulationProblem
     (int boardSize, NQueensBoard.Config config)
 {
     return(new GeneralProblem <NQueensBoard, QueenAction>(new NQueensBoard(boardSize, config),
                                                           NQueensFunctions.getCSFActionsFunction(),
                                                           NQueensFunctions.getResultFunction(),
                                                           NQueensFunctions.testGoal));
 }