Class CheatingNQueensPhaseCommand
- java.lang.Object
-
- org.optaplanner.core.impl.phase.custom.AbstractCustomPhaseCommand<NQueens>
-
- org.optaplanner.examples.nqueens.solver.solution.CheatingNQueensPhaseCommand
-
- All Implemented Interfaces:
org.optaplanner.core.impl.phase.custom.CustomPhaseCommand<NQueens>
public class CheatingNQueensPhaseCommand extends org.optaplanner.core.impl.phase.custom.AbstractCustomPhaseCommand<NQueens>
Because N Queens is not NP-complete or NP-hard, it can be cheated. For this reason, N queens should not be used for benchmarking purposes.This class solves any N Queens instance using a polynomial time algorithm (explicit solutions algorithm).
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description CheatingNQueensPhaseCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeWorkingSolution(org.optaplanner.core.impl.score.director.ScoreDirector<NQueens> scoreDirector)
-
-
-
Method Detail
-
changeWorkingSolution
public void changeWorkingSolution(org.optaplanner.core.impl.score.director.ScoreDirector<NQueens> scoreDirector)
-
-