| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IProblem
Access to the information related to a given problem instance.
| Method Summary | |
|---|---|
 int[] | 
findModel()
Look for a model satisfying all the clauses available in the problem.  | 
 int[] | 
findModel(IVecInt assumps)
Look for a model satisfying all the clauses available in the problem.  | 
 boolean | 
isSatisfiable()
Check the satisfiability of the set of constraints contained inside the solver.  | 
 boolean | 
isSatisfiable(boolean globalTimeout)
Check the satisfiability of the set of constraints contained inside the solver.  | 
 boolean | 
isSatisfiable(IVecInt assumps)
Check the satisfiability of the set of constraints contained inside the solver.  | 
 boolean | 
isSatisfiable(IVecInt assumps,
              boolean globalTimeout)
Check the satisfiability of the set of constraints contained inside the solver.  | 
 int[] | 
model()
Provide a model (if any) for a satisfiable formula.  | 
 boolean | 
model(int var)
Provide the truth value of a specific variable in the model.  | 
 int | 
nConstraints()
To know the number of constraints currently available in the solver.  | 
 int | 
nVars()
To know the number of variables used in the solver.  | 
 void | 
printInfos(PrintWriter out,
           String prefix)
To print additional informations regarding the problem.  | 
| Method Detail | 
|---|
int[] model()
isSatisfiable(), 
isSatisfiable(IVecInt)boolean model(int var)
var - the variable id in Dimacs format
model()
boolean isSatisfiable()
                      throws TimeoutException
TimeoutException
boolean isSatisfiable(IVecInt assumps,
                      boolean globalTimeout)
                      throws TimeoutException
assumps - a set of literals (represented by usual non null integers
                in Dimacs format).globalTimeout - whether that call is part of a global process (i.e.
                optimization) or not. if (global), the timeout will not be
                reset between each call.
TimeoutException
boolean isSatisfiable(boolean globalTimeout)
                      throws TimeoutException
globalTimeout - whether that call is part of a global process (i.e.
                optimization) or not. if (global), the timeout will not be
                reset between each call.
TimeoutException
boolean isSatisfiable(IVecInt assumps)
                      throws TimeoutException
assumps - a set of literals (represented by usual non null integers
                in Dimacs format).
TimeoutException
int[] findModel()
                throws TimeoutException
     if (isSatisfiable()) {
     return model();
     }
     return null; 
     
null if no model is found
TimeoutException - if a model cannot be found within the given timeout.
int[] findModel(IVecInt assumps)
                throws TimeoutException
     if (isSatisfiable(assumpt)) {
     return model();
     }
     return null; 
     
null if no model is found
TimeoutException - if a model cannot be found within the given timeout.int nConstraints()
int nVars()
void printInfos(PrintWriter out,
                String prefix)
out - the place to print the informationprefix - the prefix to put in front of each line
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||