-
Enhancement
-
Resolution: Unresolved
-
Minor
-
6.3.0.CR2
-
NEW
-
NEW
it's fine to set acceptor type from code like this:
localSearchPhaseConfig.setAcceptorConfig(new AcceptorConfig());
localSearchPhaseConfig.getAcceptorConfig().setAcceptorTypeList(
Collections.singletonList(AcceptorType.SIMULATED_ANNEALING));
throws exception:
Exception in thread "main" java.lang.NullPointerException
at org.optaplanner.core.api.score.AbstractScore.parseLevelStrings(AbstractScore.java:48)
at org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore.parseScore(HardSoftScore.java:36)
at org.optaplanner.core.impl.score.buildin.hardsoft.HardSoftScoreDefinition.parseScore(HardSoftScoreDefinition.java:46)
at org.optaplanner.core.impl.score.buildin.hardsoft.HardSoftScoreDefinition.parseScore(HardSoftScoreDefinition.java:25)
at org.optaplanner.core.config.localsearch.decider.acceptor.AcceptorConfig.buildAcceptor(AcceptorConfig.java:374)
at org.optaplanner.core.config.localsearch.LocalSearchPhaseConfig.buildDecider(LocalSearchPhaseConfig.java:112)
at org.optaplanner.core.config.localsearch.LocalSearchPhaseConfig.buildPhase(LocalSearchPhaseConfig.java:93)
at org.optaplanner.core.config.localsearch.LocalSearchPhaseConfig.buildPhase(LocalSearchPhaseConfig.java:46)
at org.optaplanner.core.config.solver.SolverConfig.buildSolver(SolverConfig.java:205)
at org.jboss.qa.brms.performance.Dummy.main(Dummy.java:71)
- is related to
-
PLANNER-345 Simulated Annealing should also work without any parameters (so without power tweaking).
- Open