Search in sources :

Example 1 with NoGoodStoreAlphaRoaming

use of at.ac.tuwien.kr.alpha.core.solver.NoGoodStoreAlphaRoaming 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 NoGoodStoreAlphaRoaming

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

the class VSIDSTest method setUp.

@BeforeEach
public void setUp() {
    atomStore = new AtomStoreImpl();
    TestUtils.fillAtomStore(atomStore, 4);
    assignment = new TrailAssignment(atomStore);
    assignment.growForMaxAtomId();
    noGoodStore = new NoGoodStoreAlphaRoaming(assignment);
    this.vsids = new VSIDS(assignment, new PseudoChoiceManager(assignment, noGoodStore), null);
}
Also used : 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 3 with NoGoodStoreAlphaRoaming

use of at.ac.tuwien.kr.alpha.core.solver.NoGoodStoreAlphaRoaming 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)

Example 4 with NoGoodStoreAlphaRoaming

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

the class ReplayHeuristicTest method setUp.

@BeforeEach
public void setUp() {
    AtomStore atomStore = new AtomStoreImpl();
    WritableAssignment assignment = new TrailAssignment(atomStore);
    NoGoodStore store = new NoGoodStoreAlphaRoaming(assignment, debugInternalChecks);
    this.choiceManager = new PseudoChoiceManager(assignment, store);
}
Also used : 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)4 NoGoodStoreAlphaRoaming (at.ac.tuwien.kr.alpha.core.solver.NoGoodStoreAlphaRoaming)4 TrailAssignment (at.ac.tuwien.kr.alpha.core.solver.TrailAssignment)4 BeforeEach (org.junit.jupiter.api.BeforeEach)4 AtomStore (at.ac.tuwien.kr.alpha.core.common.AtomStore)2 ChoiceManager (at.ac.tuwien.kr.alpha.core.solver.ChoiceManager)2 NoGoodStore (at.ac.tuwien.kr.alpha.core.solver.NoGoodStore)2 WritableAssignment (at.ac.tuwien.kr.alpha.core.solver.WritableAssignment)2