Search in sources :

Example 1 with ChoiceManager

use of at.ac.tuwien.kr.alpha.core.solver.ChoiceManager in project Alpha by alpha-asp.

the class HeapOfActiveAtomsTest method setUp.

@BeforeEach
public void setUp() {
    atomStore = new AtomStoreImpl();
    assignment = new TrailAssignment(atomStore);
    noGoodStore = new NoGoodStoreAlphaRoaming(assignment);
    ChoiceManager choiceManager = new PseudoChoiceManager(assignment, noGoodStore);
    this.vsids = new VSIDS(assignment, choiceManager, MOMs.DEFAULT_STRATEGY);
}
Also used : ChoiceManager(at.ac.tuwien.kr.alpha.core.solver.ChoiceManager) NoGoodStoreAlphaRoaming(at.ac.tuwien.kr.alpha.core.solver.NoGoodStoreAlphaRoaming) AtomStoreImpl(at.ac.tuwien.kr.alpha.core.common.AtomStoreImpl) TrailAssignment(at.ac.tuwien.kr.alpha.core.solver.TrailAssignment) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with ChoiceManager

use of at.ac.tuwien.kr.alpha.core.solver.ChoiceManager in project Alpha by alpha-asp.

the class BranchingHeuristicFactoryTest method setUp.

@BeforeEach
public void setUp() {
    AtomStore atomStore = new AtomStoreImpl();
    WritableAssignment assignment = new TrailAssignment(atomStore);
    NoGoodStore store = new NoGoodStoreAlphaRoaming(assignment, debugInternalChecks);
    this.choiceManager = new ChoiceManager(assignment, store);
}
Also used : ChoiceManager(at.ac.tuwien.kr.alpha.core.solver.ChoiceManager) AtomStore(at.ac.tuwien.kr.alpha.core.common.AtomStore) NoGoodStoreAlphaRoaming(at.ac.tuwien.kr.alpha.core.solver.NoGoodStoreAlphaRoaming) NoGoodStore(at.ac.tuwien.kr.alpha.core.solver.NoGoodStore) AtomStoreImpl(at.ac.tuwien.kr.alpha.core.common.AtomStoreImpl) WritableAssignment(at.ac.tuwien.kr.alpha.core.solver.WritableAssignment) TrailAssignment(at.ac.tuwien.kr.alpha.core.solver.TrailAssignment) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

AtomStoreImpl (at.ac.tuwien.kr.alpha.core.common.AtomStoreImpl)2 ChoiceManager (at.ac.tuwien.kr.alpha.core.solver.ChoiceManager)2 NoGoodStoreAlphaRoaming (at.ac.tuwien.kr.alpha.core.solver.NoGoodStoreAlphaRoaming)2 TrailAssignment (at.ac.tuwien.kr.alpha.core.solver.TrailAssignment)2 BeforeEach (org.junit.jupiter.api.BeforeEach)2 AtomStore (at.ac.tuwien.kr.alpha.core.common.AtomStore)1 NoGoodStore (at.ac.tuwien.kr.alpha.core.solver.NoGoodStore)1 WritableAssignment (at.ac.tuwien.kr.alpha.core.solver.WritableAssignment)1