Java Code Examples for kodkod.engine.satlab.SATFactory#plingeling()

The following examples show how to use kodkod.engine.satlab.SATFactory#plingeling() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NativeSolverTest.java    From kodkod with MIT License 4 votes vote down vote up
@Test(expected=IllegalArgumentException.class)
public void testPlingelingBadThreadInput() {
	final SATFactory pl = SATFactory.plingeling(0, true);
	solveWith(pl); 
}
 
Example 2
Source File: NativeSolverTest.java    From kodkod with MIT License 4 votes vote down vote up
@Test
public void testPlingelingOneThread() {
	final SATFactory pl = SATFactory.plingeling(1,null);
	assertEquals(Outcome.UNSATISFIABLE, solveWith(pl));
}
 
Example 3
Source File: NativeSolverTest.java    From kodkod with MIT License 4 votes vote down vote up
@Test
public void testPlingelingPortfolio() {
	final SATFactory pl = SATFactory.plingeling(null,true);
	assertEquals(Outcome.UNSATISFIABLE, solveWith(pl));
}
 
Example 4
Source File: NativeSolverTest.java    From kodkod with MIT License 4 votes vote down vote up
@Test
public void testPlingelingThreeThreadsPortfolio() {
	final SATFactory pl = SATFactory.plingeling(3,true);
	assertEquals(Outcome.UNSATISFIABLE, solveWith(pl));
}