Search in sources :

Example 1 with ConflictAnalysisResult

use of at.ac.tuwien.kr.alpha.solver.GroundConflictNoGoodLearner.ConflictAnalysisResult in project Alpha by alpha-asp.

the class BerkMinTest method learnNoGood.

@Test
public void learnNoGood() {
    NoGood learnedNoGood = new NoGood(1, 2);
    int backjumpLevel = 1;
    boolean clearLastGuessAfterBackjump = true;
    Set<NoGood> noGoodsResponsibleForConflict = Collections.emptySet();
    berkmin.analyzedConflict(new ConflictAnalysisResult(learnedNoGood, backjumpLevel, clearLastGuessAfterBackjump, noGoodsResponsibleForConflict, false));
    assertEquals(learnedNoGood, berkmin.getCurrentTopClause());
}
Also used : NoGood(at.ac.tuwien.kr.alpha.common.NoGood) ConflictAnalysisResult(at.ac.tuwien.kr.alpha.solver.GroundConflictNoGoodLearner.ConflictAnalysisResult) Test(org.junit.Test)

Aggregations

NoGood (at.ac.tuwien.kr.alpha.common.NoGood)1 ConflictAnalysisResult (at.ac.tuwien.kr.alpha.solver.GroundConflictNoGoodLearner.ConflictAnalysisResult)1 Test (org.junit.Test)1