public class ConstraintSatisfactionProblem extends HashSet<Statement>
| Constructor and Description |
|---|
ConstraintSatisfactionProblem()
Creates a new and empty csp.
|
ConstraintSatisfactionProblem(Collection<? extends Statement> statements)
Creates a new csp with the given statements
|
| Modifier and Type | Method and Description |
|---|---|
ConstraintSatisfactionProblem |
clone() |
void |
collapseAssociativeOperations()
This method collapses all associative operations appearing
in the target function and the constraints, e.g.
|
Set<Minimum> |
getMinimums()
Returns all minimums appearing in this problem.
|
Set<Variable> |
getVariables()
Returns all variables of this problem.
|
boolean |
isInteger()
Checks whether this problem is integer, i.e.
|
boolean |
isLinear()
Checks whether every constraint of this problem is linear.
|
boolean |
isMinimumFree()
Checks whether this problem uses no minimum function.
|
void |
resolveMaximums()
Resolves all occurrences of maximums by substituting
a maximum "max{a,b}" by "0.5 a + 0.5 b + abs(a-b)".
|
void |
resolveMinimums()
Resolves all occurrences of minimums by substituting
a minimum "min{a,b}" by "0.5 a + 0.5 b - abs(a-b)".
|
ConstraintSatisfactionProblem |
toNormalizedForm()
Normalizes this problem, i.e.
|
String |
toString() |
add, clear, contains, isEmpty, iterator, remove, size, spliteratorequals, hashCode, removeAlladdAll, containsAll, retainAll, toArray, toArrayfinalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArrayparallelStream, removeIf, streampublic ConstraintSatisfactionProblem()
public ConstraintSatisfactionProblem(Collection<? extends Statement> statements)
statements - a collection of statements.public ConstraintSatisfactionProblem toNormalizedForm()
public boolean isLinear()
public boolean isInteger()
public boolean isMinimumFree()
public void resolveMinimums()
public void resolveMaximums()
public Set<Variable> getVariables()
public Set<Minimum> getMinimums()
public void collapseAssociativeOperations()
public String toString()
toString in class AbstractCollection<Statement>public ConstraintSatisfactionProblem clone()
Copyright © 2018. All rights reserved.