Package com.artelys.kalis
Class KMax
- java.lang.Object
-
- com.artelys.kalis.KConstraint
-
- com.artelys.kalis.KMax
-
public class KMax extends KConstraint
This class creates a vMax = max(X1,X2,...,Xn) constraint
Example :
KIntVarArray X(...); KIntVar maxOfX(...); // ... problem.post(KMax("maxOfX=max(X)", maxOfX, X));
- Since:
- 2016.1
- See Also:
KConstraint
-
-
Field Summary
-
Fields inherited from class com.artelys.kalis.KConstraint
swigCMemOwn
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
KMax(long cPtr, boolean cMemoryOwn)
KMax(KMax toCopy)
Copy ConstructorKMax(java.lang.String name, KIntVar vMax, KIntVarArray vars)
Primary constructor of vMax = max(X1,X2,...,Xn)KMax(java.lang.String name, KIntVar vMax, KIntVarArray vars, boolean boundConsistency)
Primary constructor of vMax = max(X1,X2,...,Xn)KMax(java.lang.String name, KNumVar vMax, KNumVarArray vars)
Primary constructor of vMax = max(X1,X2,...,Xn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
protected void
finalize()
com.artelys.kalis.SWIGTYPE_p_void
getConstraintIPtr()
protected static long
getCPtr(KMax obj)
-
Methods inherited from class com.artelys.kalis.KConstraint
askIfEntailed, getArity, getCopyPtr, getCPtr, getInstance, getInstanceCopyPtr, getLinearRelaxation, getLinearRelaxation, getName, getPriority, getProblem, getTag, getTypeInfo, isGetLinearRelaxationImplemented, print, print, setName, setPriority, setTag
-
-
-
-
Constructor Detail
-
KMax
protected KMax(long cPtr, boolean cMemoryOwn)
-
KMax
public KMax(java.lang.String name, KIntVar vMax, KIntVarArray vars, boolean boundConsistency)
Primary constructor of vMax = max(X1,X2,...,Xn)- Parameters:
vMax
- variable to be the max of varsvars
- variable array whose maximum is seeked
-
KMax
public KMax(java.lang.String name, KIntVar vMax, KIntVarArray vars)
Primary constructor of vMax = max(X1,X2,...,Xn)- Parameters:
vMax
- variable to be the max of varsvars
- variable array whose maximum is seeked
-
KMax
public KMax(java.lang.String name, KNumVar vMax, KNumVarArray vars)
Primary constructor of vMax = max(X1,X2,...,Xn)- Parameters:
vMax
- variable to be the max of varsvars
- variable array whose maximum is seeked
-
KMax
public KMax(KMax toCopy)
Copy Constructor
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KMax obj)
-
finalize
protected void finalize()
- Overrides:
finalize
in classKConstraint
-
delete
public void delete()
- Overrides:
delete
in classKConstraint
-
getConstraintIPtr
public com.artelys.kalis.SWIGTYPE_p_void getConstraintIPtr()
-
-