Package org.xcsp.parser.callbacks
Class SolutionChecker
- java.lang.Object
-
- org.xcsp.parser.callbacks.SolutionChecker
-
- All Implemented Interfaces:
XCallbacks,XCallbacks2
public final class SolutionChecker extends Object implements XCallbacks2
This class allows us to check solutions and bounds obtained for XCSP3 instances.- Author:
- Gilles Audemard and Christophe Lecoutre
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.xcsp.parser.callbacks.XCallbacks
XCallbacks.Implem, XCallbacks.XCallbacksParameters
-
-
Field Summary
Fields Modifier and Type Field Description List<String>invalidObjsThe list of ids of invalid objectives (for the current solution).List<String>violatedCtrsThe list of ids of violated constraints (for the current solution).
-
Constructor Summary
Constructors Constructor Description SolutionChecker(boolean competitionMode, String fileName, InputStream solutionStream)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildCtrAllDifferent(String id, XNode<XVariables.XVarInteger>[] trees)voidbuildCtrAllDifferent(String id, XVariables.XVarInteger[] list)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrAllDifferent(String id, XVariables.XVarSymbolic[] list)voidbuildCtrAllDifferentExcept(String id, XNode<XVariables.XVarInteger>[] trees, int[] except)voidbuildCtrAllDifferentExcept(String id, XVariables.XVarInteger[] list, int[] except)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrAllDifferentList(String id, XVariables.XVarInteger[][] lists)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrAllDifferentList(String id, XVariables.XVarInteger[][] lists, int[][] except)voidbuildCtrAllDifferentMatrix(String id, XVariables.XVarInteger[][] matrix)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrAllDifferentMatrix(String id, XVariables.XVarInteger[][] matrix, int[] except)voidbuildCtrAllEqual(String id, XNode<XVariables.XVarInteger>[] trees)voidbuildCtrAllEqual(String id, XVariables.XVarInteger[] list)Callback method for building a constraintallEqual.voidbuildCtrAllEqualExcept(String id, XNode<XVariables.XVarInteger>[] trees, int[] except)voidbuildCtrAllEqualExcept(String id, XVariables.XVarInteger[] list, int[] except)voidbuildCtrBinPacking(String id, XVariables.XVarInteger[] list, int[] sizes, int[] capacities, boolean loads)voidbuildCtrBinPacking(String id, XVariables.XVarInteger[] list, int[] sizes, Condition condition)voidbuildCtrBinPacking(String id, XVariables.XVarInteger[] list, int[] sizes, Condition[] conditions, int startIndex)voidbuildCtrBinPacking(String id, XVariables.XVarInteger[] list, int[] sizes, XVariables.XVarInteger[] capacities, boolean loads)voidbuildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, int[] values, int[] occurs)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, int[] values, int[] occursMin, int[] occursMax)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, int[] values, XVariables.XVarInteger[] occurs)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, XVariables.XVarInteger[] values, int[] occurs)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, XVariables.XVarInteger[] values, int[] occursMin, int[] occursMax)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, XVariables.XVarInteger[] values, XVariables.XVarInteger[] occurs)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrChannel(String id, XVariables.XVarInteger[] list, int startIndex)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrChannel(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger value)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrChannel(String id, XVariables.XVarInteger[] list1, int startIndex1, XVariables.XVarInteger[] list2, int startIndex2)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCircuit(String id, XVariables.XVarInteger[] list, int startIndex)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCircuit(String id, XVariables.XVarInteger[] list, int startIndex, int size)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCircuit(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger size)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrClause(String id, XVariables.XVarInteger[] pos, XVariables.XVarInteger[] neg)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCount(String id, XNode<XVariables.XVarInteger>[] trees, int[] values, Condition condition)voidbuildCtrCount(String id, XVariables.XVarInteger[] list, int[] values, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCount(String id, XVariables.XVarInteger[] list, XVariables.XVarInteger[] values, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCumulative(String id, XVariables.XVarInteger[] origins, int[] lengths, int[] heights, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCumulative(String id, XVariables.XVarInteger[] origins, int[] lengths, XVariables.XVarInteger[] ends, int[] heights, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCumulative(String id, XVariables.XVarInteger[] origins, int[] lengths, XVariables.XVarInteger[] heights, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCumulative(String id, XVariables.XVarInteger[] origins, int[] lengths, XVariables.XVarInteger[] ends, XVariables.XVarInteger[] heights, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCumulative(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, int[] heights, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCumulative(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, XVariables.XVarInteger[] ends, int[] heights, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCumulative(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, XVariables.XVarInteger[] heights, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrCumulative(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, XVariables.XVarInteger[] ends, XVariables.XVarInteger[] heights, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrElement(String id, int[][] matrix, int startRowIndex, XVariables.XVarInteger rowIndex, int startColIndex, XVariables.XVarInteger colIndex, Condition condition)voidbuildCtrElement(String id, int[] list, int startIndex, XVariables.XVarInteger index, Types.TypeRank rank, Condition condition)voidbuildCtrElement(String id, XVariables.XVarInteger[][] matrix, int startRowIndex, XVariables.XVarInteger rowIndex, int startColIndex, XVariables.XVarInteger colIndex, Condition condition)voidbuildCtrElement(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger index, Types.TypeRank rank, Condition condition)voidbuildCtrElement(String id, XVariables.XVarInteger[] list, Condition condition)voidbuildCtrExtension(String id, XVariables.XVarInteger[] list, int[][] tuples, boolean positive, Set<Types.TypeFlag> flags)Callback method for building a (non-unary) extensional constraint.voidbuildCtrExtension(String id, XVariables.XVarInteger[] list, AbstractTuple[] tuples, boolean positive, Set<Types.TypeFlag> flags)voidbuildCtrExtension(String id, XVariables.XVarInteger x, int[] values, boolean positive, Set<Types.TypeFlag> flags)Callback method for building a unary extensional constraint.voidbuildCtrExtension(String id, XVariables.XVarSymbolic[] list, String[][] tuples, boolean positive, Set<Types.TypeFlag> flags)voidbuildCtrExtension(String id, XVariables.XVarSymbolic x, String[] values, boolean positive, Set<Types.TypeFlag> flags)voidbuildCtrFlow(String id, XVariables.XVarInteger[] list, int[] balance, int[][] arcs)voidbuildCtrFlow(String id, XVariables.XVarInteger[] list, int[] balance, int[][] arcs, int[] weights, Condition condition)voidbuildCtrInstantiation(String id, XVariables.XVarInteger[] list, int[] values)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrIntension(String id, XVariables.XVarInteger[] scope, XNodeParent<XVariables.XVarInteger> tree)Callback method for building a constraintintensionfrom the specified syntactic tree.voidbuildCtrIntension(String id, XVariables.XVarSymbolic[] scope, XNodeParent<XVariables.XVarSymbolic> tree)voidbuildCtrKnapsack(String id, XVariables.XVarInteger[] list, int[] weights, Condition wcondition, int[] profits, Condition pcondition)voidbuildCtrLex(String id, XVariables.XVarInteger[][] lists, Types.TypeOperatorRel operator)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrLex(String id, XVariables.XVarInteger[] list, int[] limit, Types.TypeOperatorRel operator)voidbuildCtrLexMatrix(String id, XVariables.XVarInteger[][] matrix, Types.TypeOperatorRel operator)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrMaximum(String id, XNode<XVariables.XVarInteger>[] trees, Condition condition)voidbuildCtrMaximum(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger index, Types.TypeRank rank, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrMaximum(String id, XVariables.XVarInteger[] list, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrMaximumArg(String id, XNode<XVariables.XVarInteger>[] trees, Types.TypeRank rank, Condition condition)voidbuildCtrMaximumArg(String id, XVariables.XVarInteger[] list, Types.TypeRank rank, Condition condition)voidbuildCtrMDD(String id, XVariables.XVarInteger[] list, Transition[] transitions)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrMinimum(String id, XNode<XVariables.XVarInteger>[] trees, Condition condition)voidbuildCtrMinimum(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger index, Types.TypeRank rank, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrMinimum(String id, XVariables.XVarInteger[] list, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrMinimumArg(String id, XNode<XVariables.XVarInteger>[] trees, Types.TypeRank rank, Condition condition)voidbuildCtrMinimumArg(String id, XVariables.XVarInteger[] list, Types.TypeRank rank, Condition condition)voidbuildCtrNoOverlap(String id, XVariables.XVarInteger[][] origins, int[][] lengths, boolean zeroIgnored)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrNoOverlap(String id, XVariables.XVarInteger[][] origins, XVariables.XVarInteger[][] lengths, boolean zeroIgnored)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrNoOverlap(String id, XVariables.XVarInteger[] origins, int[] lengths, boolean zeroIgnored)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrNoOverlap(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, boolean zeroIgnored)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrNValues(String id, XNode<XVariables.XVarInteger>[] trees, Condition condition)voidbuildCtrNValues(String id, XVariables.XVarInteger[] list, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrNValuesExcept(String id, XVariables.XVarInteger[] list, int[] except, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrOrdered(String id, XVariables.XVarInteger[] list, int[] lengths, Types.TypeOperatorRel operator)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrOrdered(String id, XVariables.XVarInteger[] list, Types.TypeOperatorRel operator)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrOrdered(String id, XVariables.XVarInteger[] list, XVariables.XVarInteger[] lengths, Types.TypeOperatorRel operator)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrPrecedence(String id, XVariables.XVarInteger[] list)voidbuildCtrPrecedence(String id, XVariables.XVarInteger[] list, int[] values, boolean covered)voidbuildCtrRegular(String id, XVariables.XVarInteger[] list, Transition[] transitions, String startState, String[] finalStates)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrStretch(String id, XVariables.XVarInteger[] list, int[] values, int[] widthsMin, int[] widthsMax)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrStretch(String id, XVariables.XVarInteger[] list, int[] values, int[] widthsMin, int[] widthsMax, int[][] patterns)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrSum(String id, XNode<XVariables.XVarInteger>[] trees, int[] coeffs, Condition condition)voidbuildCtrSum(String id, XNode<XVariables.XVarInteger>[] trees, Condition condition)voidbuildCtrSum(String id, XNode<XVariables.XVarInteger>[] trees, XVariables.XVarInteger[] coeffs, Condition condition)voidbuildCtrSum(String id, XVariables.XVarInteger[] list, int[] coeffs, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrSum(String id, XVariables.XVarInteger[] list, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildCtrSum(String id, XVariables.XVarInteger[] list, XVariables.XVarInteger[] coeffs, Condition condition)Full information about the constraint (this form) in the specifications (Chapter 4).voidbuildObjToMaximize(String id, XNodeParent<XVariables.XVarInteger> tree)voidbuildObjToMaximize(String id, Types.TypeObjective type, XNode<XVariables.XVarInteger>[] trees)voidbuildObjToMaximize(String id, Types.TypeObjective type, XNode<XVariables.XVarInteger>[] trees, int[] coeffs)voidbuildObjToMaximize(String id, Types.TypeObjective type, XVariables.XVarInteger[] list)voidbuildObjToMaximize(String id, Types.TypeObjective type, XVariables.XVarInteger[] list, int[] coeffs)voidbuildObjToMaximize(String id, XVariables.XVarInteger x)voidbuildObjToMinimize(String id, XNodeParent<XVariables.XVarInteger> tree)voidbuildObjToMinimize(String id, Types.TypeObjective type, XNode<XVariables.XVarInteger>[] trees)voidbuildObjToMinimize(String id, Types.TypeObjective type, XNode<XVariables.XVarInteger>[] trees, int[] coeffs)voidbuildObjToMinimize(String id, Types.TypeObjective type, XVariables.XVarInteger[] list)voidbuildObjToMinimize(String id, Types.TypeObjective type, XVariables.XVarInteger[] list, int[] coeffs)voidbuildObjToMinimize(String id, XVariables.XVarInteger x)Methods to be implemented for managing objectivesvoidbuildVarInteger(XVariables.XVarInteger x, int[] values)Callback method for building in the solver an integer variable whose domain is given by the specified array.voidbuildVarInteger(XVariables.XVarInteger x, int minValue, int maxValue)Callback method for building in the solver an integer variable whose domain contains all integer values between the two specified bounds.voidbuildVarSymbolic(XVariables.XVarSymbolic x, String[] values)Methods to be implemented on symbolic variables/constraintsprotected voidcheckCondition(int value, Condition condition)protected voidcontrolConstraint(boolean condition)protected voidcontrolObjective(BigInteger computedCost)voidendInstance()Method called at the end of the process of loading the XCSP3 instance.protected booleanevaluateCondition(int value, Condition condition)XCallbacks.Implemimplem()Returns the object that implements necessary data structures during the loading process.voidloadConstraints(XParser parser)Loads all elements that are contained in the element <constraints> of the XCSP3 instance, which have been parsed by the specified parser object.voidloadCtr(XConstraints.XCtr c)Loads the specified constraint.voidloadObj(XObjectives.XObj o)Loads the specified objective.voidloadObjectives(XParser parser)Loads all elements that are contained in the elementof the XCSP3 instance, which have been parsed by the specified parser object. voidloadVariables(XParser parser)Loads all elements that are contained in the element <variables> of the XCSP3 instance, which have been parsed by the specified parser object.static voidmain(String[] args)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.xcsp.parser.callbacks.XCallbacks
buildCtrFalse, buildCtrTrue, loadAnn, loadAnnotations, loadArray, loadBlock, loadConstraints, loadCtrs, loadDocument, loadGroup, loadInstance, loadInstance, loadLogic, loadSlide, loadVar, repost
-
Methods inherited from interface org.xcsp.parser.callbacks.XCallbacks2
beginAnnotations, beginArray, beginBlock, beginConstraints, beginGroup, beginInstance, beginLogic, beginObjectives, beginSlide, beginVariables, buildAnnotationDecision, buildAnnotationValHeuristicStatic, buildCtrAdhoc, buildCtrAmong, buildCtrAmong, buildCtrAtLeast, buildCtrAtMost, buildCtrExactly, buildCtrExactly, buildCtrLogic, buildCtrLogic, buildCtrLogic, buildCtrLogic, buildCtrNoOverlap, buildCtrNotAllEqual, buildCtrPrimitive, buildCtrPrimitive, buildCtrPrimitive, buildCtrPrimitive, buildCtrPrimitive, buildCtrPrimitive, buildCtrPrimitive, buildCtrPrimitive, endAnnotations, endArray, endBlock, endConstraints, endGroup, endLogic, endObjectives, endSlide, endVariables, unimplementedCase
-
-
-
-
Constructor Detail
-
SolutionChecker
public SolutionChecker(boolean competitionMode, String fileName, InputStream solutionStream) throws Exception- Throws:
Exception
-
-
Method Detail
-
implem
public XCallbacks.Implem implem()
Description copied from interface:XCallbacksReturns the object that implements necessary data structures during the loading process. In your class implementing XCallbacks, you should simply write something like:Implem implem = new Implem(this); @Override public Implem implem() { return implem; }- Specified by:
implemin interfaceXCallbacks- Returns:
- the object that implements some data structures used during the loading process
-
controlConstraint
protected void controlConstraint(boolean condition)
-
controlObjective
protected void controlObjective(BigInteger computedCost)
-
loadVariables
public void loadVariables(XParser parser)
Description copied from interface:XCallbacksLoads all elements that are contained in the element <variables> of the XCSP3 instance, which have been parsed by the specified parser object. Except for some advanced uses, this method should not be overridden.- Specified by:
loadVariablesin interfaceXCallbacks- Parameters:
parser- the object used to parse the element
-
loadConstraints
public void loadConstraints(XParser parser)
Description copied from interface:XCallbacksLoads all elements that are contained in the element <constraints> of the XCSP3 instance, which have been parsed by the specified parser object. Except for some advanced uses, this method should not be overridden.- Specified by:
loadConstraintsin interfaceXCallbacks- Parameters:
parser- the object used to parse the element
-
loadCtr
public void loadCtr(XConstraints.XCtr c)
Description copied from interface:XCallbacksLoads the specified constraint. One callback function (for example, builCtrIntension or buildCtrAllDifferent) is called when this method is executed. Except for some advanced uses, this method should not be overridden.- Specified by:
loadCtrin interfaceXCallbacks- Parameters:
c- the constraint to be loaded
-
loadObjectives
public void loadObjectives(XParser parser)
Description copied from interface:XCallbacksLoads all elements that are contained in the elementof the XCSP3 instance, which have been parsed by the specified parser object. Except for some advanced uses, this method should not be overridden. - Specified by:
loadObjectivesin interfaceXCallbacks- Parameters:
parser- the object used to parse the element
-
loadObj
public void loadObj(XObjectives.XObj o)
Description copied from interface:XCallbacksLoads the specified objective. One callback function (for example, builObjToMinimize or buildObjToMaximize) is called when this method is executed. Except for some advanced uses, this method should not be overridden.- Specified by:
loadObjin interfaceXCallbacks- Parameters:
o- the objective to be loaded
-
endInstance
public void endInstance()
Description copied from interface:XCallbacksMethod called at the end of the process of loading the XCSP3 instance. Implement (or redefine) this method (if you implement XCallbacks2) in case you want some special operation to be executed (for example, for debugging).- Specified by:
endInstancein interfaceXCallbacks- Specified by:
endInstancein interfaceXCallbacks2
-
buildVarInteger
public void buildVarInteger(XVariables.XVarInteger x, int minValue, int maxValue)
Description copied from interface:XCallbacksCallback method for building in the solver an integer variable whose domain contains all integer values between the two specified bounds.- Specified by:
buildVarIntegerin interfaceXCallbacks- Specified by:
buildVarIntegerin interfaceXCallbacks2- Parameters:
x- an integer variable built by the parserminValue- the minimum value of the domain of xmaxValue- the maximum value of the domain of x
-
buildVarInteger
public void buildVarInteger(XVariables.XVarInteger x, int[] values)
Description copied from interface:XCallbacksCallback method for building in the solver an integer variable whose domain is given by the specified array.- Specified by:
buildVarIntegerin interfaceXCallbacks- Specified by:
buildVarIntegerin interfaceXCallbacks2- Parameters:
x- an integer variable built by the parservalues- the values in the domain of x
-
buildCtrIntension
public void buildCtrIntension(String id, XVariables.XVarInteger[] scope, XNodeParent<XVariables.XVarInteger> tree)
Description copied from interface:XCallbacksCallback method for building a constraintintensionfrom the specified syntactic tree. Variables of the specified array of variables are exactly those that are present in the tree.- Specified by:
buildCtrIntensionin interfaceXCallbacks- Specified by:
buildCtrIntensionin interfaceXCallbacks2- Parameters:
id- the id of the constraintscope- the list of integer variables of the constrainttree- the root of a syntactic tree representing the predicate associated with the constraint
-
buildCtrExtension
public void buildCtrExtension(String id, XVariables.XVarInteger x, int[] values, boolean positive, Set<Types.TypeFlag> flags)
Description copied from interface:XCallbacksCallback method for building a unary extensional constraint. Values are supports (accepted by the constraint) iff the specified Boolean is true, otherwise they are conflicts (not accepted by the constraint). The flag STARRED_TUPLES cannot appear in the specified set (because this is a unary constraint). The flag UNCLEAN_TUPLES, if present, indicates that all specified values do not necessarily belong to the (initial) domain of the specified variable. More information in the specifications (Chapter 4). Quick information available at XCSP3 website (Tab Specifications).- Specified by:
buildCtrExtensionin interfaceXCallbacks- Specified by:
buildCtrExtensionin interfaceXCallbacks2- Parameters:
id- the id of the constraintx- an integer variablevalues- supports or conflictspositive- values are supports iff this value is trueflags- set of flags giving information about the values
-
buildCtrExtension
public void buildCtrExtension(String id, XVariables.XVarInteger[] list, int[][] tuples, boolean positive, Set<Types.TypeFlag> flags)
Description copied from interface:XCallbacksCallback method for building a (non-unary) extensional constraint. Tuples are supports (accepted by the constraint) iff the specified Boolean is true, otherwise they are conflicts (not accepted by the constraint). The flag STARRED_TUPLES indicates if the symbol * (denoted by Constants.STAR_INT, whose value is Integer.MAX_VALUE - 1) is present in some tuple(s). The flag UNCLEAN_TUPLES, if present, indicates that all specified tuples do not necessarily belong to the (initial) domains of the specified variables. More information in the specifications (Chapter 4). Quick information available at XCSP3 website (Tab Specifications).- Specified by:
buildCtrExtensionin interfaceXCallbacks- Specified by:
buildCtrExtensionin interfaceXCallbacks2- Parameters:
id- the id of the constraintlist- the scope of the constrainttuples- supports or conflictspositive- tuples are supports iff this value is trueflags- set of flags giving information about the tuples
-
buildCtrExtension
public void buildCtrExtension(String id, XVariables.XVarInteger[] list, AbstractTuple[] tuples, boolean positive, Set<Types.TypeFlag> flags)
- Specified by:
buildCtrExtensionin interfaceXCallbacks- Specified by:
buildCtrExtensionin interfaceXCallbacks2
-
buildCtrRegular
public void buildCtrRegular(String id, XVariables.XVarInteger[] list, Transition[] transitions, String startState, String[] finalStates)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrRegularin interfaceXCallbacks- Specified by:
buildCtrRegularin interfaceXCallbacks2
-
buildCtrMDD
public void buildCtrMDD(String id, XVariables.XVarInteger[] list, Transition[] transitions)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrMDDin interfaceXCallbacks- Specified by:
buildCtrMDDin interfaceXCallbacks2
-
buildCtrAllDifferent
public void buildCtrAllDifferent(String id, XVariables.XVarInteger[] list)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrAllDifferentin interfaceXCallbacks- Specified by:
buildCtrAllDifferentin interfaceXCallbacks2
-
buildCtrAllDifferent
public void buildCtrAllDifferent(String id, XNode<XVariables.XVarInteger>[] trees)
- Specified by:
buildCtrAllDifferentin interfaceXCallbacks- Specified by:
buildCtrAllDifferentin interfaceXCallbacks2
-
buildCtrAllDifferentExcept
public void buildCtrAllDifferentExcept(String id, XVariables.XVarInteger[] list, int[] except)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrAllDifferentExceptin interfaceXCallbacks- Specified by:
buildCtrAllDifferentExceptin interfaceXCallbacks2
-
buildCtrAllDifferentExcept
public void buildCtrAllDifferentExcept(String id, XNode<XVariables.XVarInteger>[] trees, int[] except)
- Specified by:
buildCtrAllDifferentExceptin interfaceXCallbacks- Specified by:
buildCtrAllDifferentExceptin interfaceXCallbacks2
-
buildCtrAllDifferentList
public void buildCtrAllDifferentList(String id, XVariables.XVarInteger[][] lists)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrAllDifferentListin interfaceXCallbacks- Specified by:
buildCtrAllDifferentListin interfaceXCallbacks2
-
buildCtrAllDifferentList
public void buildCtrAllDifferentList(String id, XVariables.XVarInteger[][] lists, int[][] except)
- Specified by:
buildCtrAllDifferentListin interfaceXCallbacks- Specified by:
buildCtrAllDifferentListin interfaceXCallbacks2
-
buildCtrAllDifferentMatrix
public void buildCtrAllDifferentMatrix(String id, XVariables.XVarInteger[][] matrix)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrAllDifferentMatrixin interfaceXCallbacks- Specified by:
buildCtrAllDifferentMatrixin interfaceXCallbacks2
-
buildCtrAllDifferentMatrix
public void buildCtrAllDifferentMatrix(String id, XVariables.XVarInteger[][] matrix, int[] except)
- Specified by:
buildCtrAllDifferentMatrixin interfaceXCallbacks- Specified by:
buildCtrAllDifferentMatrixin interfaceXCallbacks2
-
buildCtrAllEqual
public void buildCtrAllEqual(String id, XVariables.XVarInteger[] list)
Description copied from interface:XCallbacksCallback method for building a constraintallEqual.- Specified by:
buildCtrAllEqualin interfaceXCallbacks- Specified by:
buildCtrAllEqualin interfaceXCallbacks2- Parameters:
id- the id of the constraintlist- the list of variables of the constraint
-
buildCtrAllEqual
public void buildCtrAllEqual(String id, XNode<XVariables.XVarInteger>[] trees)
- Specified by:
buildCtrAllEqualin interfaceXCallbacks- Specified by:
buildCtrAllEqualin interfaceXCallbacks2
-
buildCtrAllEqualExcept
public void buildCtrAllEqualExcept(String id, XVariables.XVarInteger[] list, int[] except)
- Specified by:
buildCtrAllEqualExceptin interfaceXCallbacks- Specified by:
buildCtrAllEqualExceptin interfaceXCallbacks2
-
buildCtrAllEqualExcept
public void buildCtrAllEqualExcept(String id, XNode<XVariables.XVarInteger>[] trees, int[] except)
- Specified by:
buildCtrAllEqualExceptin interfaceXCallbacks- Specified by:
buildCtrAllEqualExceptin interfaceXCallbacks2
-
buildCtrOrdered
public void buildCtrOrdered(String id, XVariables.XVarInteger[] list, Types.TypeOperatorRel operator)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrOrderedin interfaceXCallbacks- Specified by:
buildCtrOrderedin interfaceXCallbacks2
-
buildCtrOrdered
public void buildCtrOrdered(String id, XVariables.XVarInteger[] list, int[] lengths, Types.TypeOperatorRel operator)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrOrderedin interfaceXCallbacks- Specified by:
buildCtrOrderedin interfaceXCallbacks2
-
buildCtrOrdered
public void buildCtrOrdered(String id, XVariables.XVarInteger[] list, XVariables.XVarInteger[] lengths, Types.TypeOperatorRel operator)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrOrderedin interfaceXCallbacks- Specified by:
buildCtrOrderedin interfaceXCallbacks2
-
buildCtrLex
public void buildCtrLex(String id, XVariables.XVarInteger[] list, int[] limit, Types.TypeOperatorRel operator)
- Specified by:
buildCtrLexin interfaceXCallbacks- Specified by:
buildCtrLexin interfaceXCallbacks2
-
buildCtrLex
public void buildCtrLex(String id, XVariables.XVarInteger[][] lists, Types.TypeOperatorRel operator)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrLexin interfaceXCallbacks- Specified by:
buildCtrLexin interfaceXCallbacks2
-
buildCtrLexMatrix
public void buildCtrLexMatrix(String id, XVariables.XVarInteger[][] matrix, Types.TypeOperatorRel operator)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrLexMatrixin interfaceXCallbacks- Specified by:
buildCtrLexMatrixin interfaceXCallbacks2
-
buildCtrPrecedence
public void buildCtrPrecedence(String id, XVariables.XVarInteger[] list)
- Specified by:
buildCtrPrecedencein interfaceXCallbacks- Specified by:
buildCtrPrecedencein interfaceXCallbacks2
-
buildCtrPrecedence
public void buildCtrPrecedence(String id, XVariables.XVarInteger[] list, int[] values, boolean covered)
- Specified by:
buildCtrPrecedencein interfaceXCallbacks- Specified by:
buildCtrPrecedencein interfaceXCallbacks2
-
evaluateCondition
protected boolean evaluateCondition(int value, Condition condition)
-
checkCondition
protected void checkCondition(int value, Condition condition)
-
buildCtrSum
public void buildCtrSum(String id, XVariables.XVarInteger[] list, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrSumin interfaceXCallbacks- Specified by:
buildCtrSumin interfaceXCallbacks2
-
buildCtrSum
public void buildCtrSum(String id, XVariables.XVarInteger[] list, int[] coeffs, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrSumin interfaceXCallbacks- Specified by:
buildCtrSumin interfaceXCallbacks2
-
buildCtrSum
public void buildCtrSum(String id, XVariables.XVarInteger[] list, XVariables.XVarInteger[] coeffs, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrSumin interfaceXCallbacks- Specified by:
buildCtrSumin interfaceXCallbacks2
-
buildCtrSum
public void buildCtrSum(String id, XNode<XVariables.XVarInteger>[] trees, Condition condition)
- Specified by:
buildCtrSumin interfaceXCallbacks- Specified by:
buildCtrSumin interfaceXCallbacks2
-
buildCtrSum
public void buildCtrSum(String id, XNode<XVariables.XVarInteger>[] trees, int[] coeffs, Condition condition)
- Specified by:
buildCtrSumin interfaceXCallbacks- Specified by:
buildCtrSumin interfaceXCallbacks2
-
buildCtrSum
public void buildCtrSum(String id, XNode<XVariables.XVarInteger>[] trees, XVariables.XVarInteger[] coeffs, Condition condition)
- Specified by:
buildCtrSumin interfaceXCallbacks- Specified by:
buildCtrSumin interfaceXCallbacks2
-
buildCtrCount
public void buildCtrCount(String id, XVariables.XVarInteger[] list, int[] values, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCountin interfaceXCallbacks- Specified by:
buildCtrCountin interfaceXCallbacks2
-
buildCtrCount
public void buildCtrCount(String id, XNode<XVariables.XVarInteger>[] trees, int[] values, Condition condition)
- Specified by:
buildCtrCountin interfaceXCallbacks- Specified by:
buildCtrCountin interfaceXCallbacks2
-
buildCtrCount
public void buildCtrCount(String id, XVariables.XVarInteger[] list, XVariables.XVarInteger[] values, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCountin interfaceXCallbacks- Specified by:
buildCtrCountin interfaceXCallbacks2
-
buildCtrNValuesExcept
public void buildCtrNValuesExcept(String id, XVariables.XVarInteger[] list, int[] except, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrNValuesExceptin interfaceXCallbacks- Specified by:
buildCtrNValuesExceptin interfaceXCallbacks2
-
buildCtrNValues
public void buildCtrNValues(String id, XVariables.XVarInteger[] list, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrNValuesin interfaceXCallbacks- Specified by:
buildCtrNValuesin interfaceXCallbacks2
-
buildCtrNValues
public void buildCtrNValues(String id, XNode<XVariables.XVarInteger>[] trees, Condition condition)
- Specified by:
buildCtrNValuesin interfaceXCallbacks- Specified by:
buildCtrNValuesin interfaceXCallbacks2
-
buildCtrCardinality
public void buildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, int[] values, int[] occurs)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCardinalityin interfaceXCallbacks- Specified by:
buildCtrCardinalityin interfaceXCallbacks2
-
buildCtrCardinality
public void buildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, int[] values, XVariables.XVarInteger[] occurs)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCardinalityin interfaceXCallbacks- Specified by:
buildCtrCardinalityin interfaceXCallbacks2
-
buildCtrCardinality
public void buildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, XVariables.XVarInteger[] values, XVariables.XVarInteger[] occurs)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCardinalityin interfaceXCallbacks- Specified by:
buildCtrCardinalityin interfaceXCallbacks2
-
buildCtrCardinality
public void buildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, XVariables.XVarInteger[] values, int[] occurs)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCardinalityin interfaceXCallbacks- Specified by:
buildCtrCardinalityin interfaceXCallbacks2
-
buildCtrCardinality
public void buildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, int[] values, int[] occursMin, int[] occursMax)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCardinalityin interfaceXCallbacks- Specified by:
buildCtrCardinalityin interfaceXCallbacks2
-
buildCtrCardinality
public void buildCtrCardinality(String id, XVariables.XVarInteger[] list, boolean closed, XVariables.XVarInteger[] values, int[] occursMin, int[] occursMax)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCardinalityin interfaceXCallbacks- Specified by:
buildCtrCardinalityin interfaceXCallbacks2
-
buildCtrMaximum
public void buildCtrMaximum(String id, XVariables.XVarInteger[] list, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrMaximumin interfaceXCallbacks- Specified by:
buildCtrMaximumin interfaceXCallbacks2
-
buildCtrMaximum
public void buildCtrMaximum(String id, XNode<XVariables.XVarInteger>[] trees, Condition condition)
- Specified by:
buildCtrMaximumin interfaceXCallbacks- Specified by:
buildCtrMaximumin interfaceXCallbacks2
-
buildCtrMinimum
public void buildCtrMinimum(String id, XVariables.XVarInteger[] list, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrMinimumin interfaceXCallbacks- Specified by:
buildCtrMinimumin interfaceXCallbacks2
-
buildCtrMinimum
public void buildCtrMinimum(String id, XNode<XVariables.XVarInteger>[] trees, Condition condition)
- Specified by:
buildCtrMinimumin interfaceXCallbacks- Specified by:
buildCtrMinimumin interfaceXCallbacks2
-
buildCtrMaximum
public void buildCtrMaximum(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger index, Types.TypeRank rank, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrMaximumin interfaceXCallbacks- Specified by:
buildCtrMaximumin interfaceXCallbacks2
-
buildCtrMinimum
public void buildCtrMinimum(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger index, Types.TypeRank rank, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrMinimumin interfaceXCallbacks- Specified by:
buildCtrMinimumin interfaceXCallbacks2
-
buildCtrMaximumArg
public void buildCtrMaximumArg(String id, XVariables.XVarInteger[] list, Types.TypeRank rank, Condition condition)
- Specified by:
buildCtrMaximumArgin interfaceXCallbacks- Specified by:
buildCtrMaximumArgin interfaceXCallbacks2
-
buildCtrMaximumArg
public void buildCtrMaximumArg(String id, XNode<XVariables.XVarInteger>[] trees, Types.TypeRank rank, Condition condition)
- Specified by:
buildCtrMaximumArgin interfaceXCallbacks- Specified by:
buildCtrMaximumArgin interfaceXCallbacks2
-
buildCtrMinimumArg
public void buildCtrMinimumArg(String id, XVariables.XVarInteger[] list, Types.TypeRank rank, Condition condition)
- Specified by:
buildCtrMinimumArgin interfaceXCallbacks- Specified by:
buildCtrMinimumArgin interfaceXCallbacks2
-
buildCtrMinimumArg
public void buildCtrMinimumArg(String id, XNode<XVariables.XVarInteger>[] trees, Types.TypeRank rank, Condition condition)
- Specified by:
buildCtrMinimumArgin interfaceXCallbacks- Specified by:
buildCtrMinimumArgin interfaceXCallbacks2
-
buildCtrChannel
public void buildCtrChannel(String id, XVariables.XVarInteger[] list, int startIndex)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrChannelin interfaceXCallbacks- Specified by:
buildCtrChannelin interfaceXCallbacks2
-
buildCtrChannel
public void buildCtrChannel(String id, XVariables.XVarInteger[] list1, int startIndex1, XVariables.XVarInteger[] list2, int startIndex2)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrChannelin interfaceXCallbacks- Specified by:
buildCtrChannelin interfaceXCallbacks2
-
buildCtrChannel
public void buildCtrChannel(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger value)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrChannelin interfaceXCallbacks- Specified by:
buildCtrChannelin interfaceXCallbacks2
-
buildCtrElement
public void buildCtrElement(String id, XVariables.XVarInteger[] list, Condition condition)
- Specified by:
buildCtrElementin interfaceXCallbacks- Specified by:
buildCtrElementin interfaceXCallbacks2
-
buildCtrElement
public void buildCtrElement(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger index, Types.TypeRank rank, Condition condition)
- Specified by:
buildCtrElementin interfaceXCallbacks- Specified by:
buildCtrElementin interfaceXCallbacks2
-
buildCtrElement
public void buildCtrElement(String id, int[] list, int startIndex, XVariables.XVarInteger index, Types.TypeRank rank, Condition condition)
- Specified by:
buildCtrElementin interfaceXCallbacks- Specified by:
buildCtrElementin interfaceXCallbacks2
-
buildCtrElement
public void buildCtrElement(String id, int[][] matrix, int startRowIndex, XVariables.XVarInteger rowIndex, int startColIndex, XVariables.XVarInteger colIndex, Condition condition)
- Specified by:
buildCtrElementin interfaceXCallbacks- Specified by:
buildCtrElementin interfaceXCallbacks2
-
buildCtrElement
public void buildCtrElement(String id, XVariables.XVarInteger[][] matrix, int startRowIndex, XVariables.XVarInteger rowIndex, int startColIndex, XVariables.XVarInteger colIndex, Condition condition)
- Specified by:
buildCtrElementin interfaceXCallbacks- Specified by:
buildCtrElementin interfaceXCallbacks2
-
buildCtrStretch
public void buildCtrStretch(String id, XVariables.XVarInteger[] list, int[] values, int[] widthsMin, int[] widthsMax)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrStretchin interfaceXCallbacks- Specified by:
buildCtrStretchin interfaceXCallbacks2
-
buildCtrStretch
public void buildCtrStretch(String id, XVariables.XVarInteger[] list, int[] values, int[] widthsMin, int[] widthsMax, int[][] patterns)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrStretchin interfaceXCallbacks- Specified by:
buildCtrStretchin interfaceXCallbacks2
-
buildCtrNoOverlap
public void buildCtrNoOverlap(String id, XVariables.XVarInteger[] origins, int[] lengths, boolean zeroIgnored)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrNoOverlapin interfaceXCallbacks- Specified by:
buildCtrNoOverlapin interfaceXCallbacks2
-
buildCtrNoOverlap
public void buildCtrNoOverlap(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, boolean zeroIgnored)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrNoOverlapin interfaceXCallbacks- Specified by:
buildCtrNoOverlapin interfaceXCallbacks2
-
buildCtrNoOverlap
public void buildCtrNoOverlap(String id, XVariables.XVarInteger[][] origins, int[][] lengths, boolean zeroIgnored)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrNoOverlapin interfaceXCallbacks- Specified by:
buildCtrNoOverlapin interfaceXCallbacks2
-
buildCtrNoOverlap
public void buildCtrNoOverlap(String id, XVariables.XVarInteger[][] origins, XVariables.XVarInteger[][] lengths, boolean zeroIgnored)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrNoOverlapin interfaceXCallbacks- Specified by:
buildCtrNoOverlapin interfaceXCallbacks2
-
buildCtrCumulative
public void buildCtrCumulative(String id, XVariables.XVarInteger[] origins, int[] lengths, int[] heights, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCumulativein interfaceXCallbacks- Specified by:
buildCtrCumulativein interfaceXCallbacks2
-
buildCtrCumulative
public void buildCtrCumulative(String id, XVariables.XVarInteger[] origins, int[] lengths, XVariables.XVarInteger[] heights, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCumulativein interfaceXCallbacks- Specified by:
buildCtrCumulativein interfaceXCallbacks2
-
buildCtrCumulative
public void buildCtrCumulative(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, int[] heights, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCumulativein interfaceXCallbacks- Specified by:
buildCtrCumulativein interfaceXCallbacks2
-
buildCtrCumulative
public void buildCtrCumulative(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, XVariables.XVarInteger[] heights, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCumulativein interfaceXCallbacks- Specified by:
buildCtrCumulativein interfaceXCallbacks2
-
buildCtrCumulative
public void buildCtrCumulative(String id, XVariables.XVarInteger[] origins, int[] lengths, XVariables.XVarInteger[] ends, int[] heights, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCumulativein interfaceXCallbacks- Specified by:
buildCtrCumulativein interfaceXCallbacks2
-
buildCtrCumulative
public void buildCtrCumulative(String id, XVariables.XVarInteger[] origins, int[] lengths, XVariables.XVarInteger[] ends, XVariables.XVarInteger[] heights, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCumulativein interfaceXCallbacks- Specified by:
buildCtrCumulativein interfaceXCallbacks2
-
buildCtrCumulative
public void buildCtrCumulative(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, XVariables.XVarInteger[] ends, int[] heights, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCumulativein interfaceXCallbacks- Specified by:
buildCtrCumulativein interfaceXCallbacks2
-
buildCtrCumulative
public void buildCtrCumulative(String id, XVariables.XVarInteger[] origins, XVariables.XVarInteger[] lengths, XVariables.XVarInteger[] ends, XVariables.XVarInteger[] heights, Condition condition)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCumulativein interfaceXCallbacks- Specified by:
buildCtrCumulativein interfaceXCallbacks2
-
buildCtrBinPacking
public void buildCtrBinPacking(String id, XVariables.XVarInteger[] list, int[] sizes, Condition condition)
- Specified by:
buildCtrBinPackingin interfaceXCallbacks- Specified by:
buildCtrBinPackingin interfaceXCallbacks2
-
buildCtrBinPacking
public void buildCtrBinPacking(String id, XVariables.XVarInteger[] list, int[] sizes, int[] capacities, boolean loads)
- Specified by:
buildCtrBinPackingin interfaceXCallbacks- Specified by:
buildCtrBinPackingin interfaceXCallbacks2
-
buildCtrBinPacking
public void buildCtrBinPacking(String id, XVariables.XVarInteger[] list, int[] sizes, XVariables.XVarInteger[] capacities, boolean loads)
- Specified by:
buildCtrBinPackingin interfaceXCallbacks- Specified by:
buildCtrBinPackingin interfaceXCallbacks2
-
buildCtrBinPacking
public void buildCtrBinPacking(String id, XVariables.XVarInteger[] list, int[] sizes, Condition[] conditions, int startIndex)
- Specified by:
buildCtrBinPackingin interfaceXCallbacks- Specified by:
buildCtrBinPackingin interfaceXCallbacks2
-
buildCtrKnapsack
public void buildCtrKnapsack(String id, XVariables.XVarInteger[] list, int[] weights, Condition wcondition, int[] profits, Condition pcondition)
- Specified by:
buildCtrKnapsackin interfaceXCallbacks- Specified by:
buildCtrKnapsackin interfaceXCallbacks2
-
buildCtrFlow
public void buildCtrFlow(String id, XVariables.XVarInteger[] list, int[] balance, int[][] arcs)
- Specified by:
buildCtrFlowin interfaceXCallbacks- Specified by:
buildCtrFlowin interfaceXCallbacks2
-
buildCtrFlow
public void buildCtrFlow(String id, XVariables.XVarInteger[] list, int[] balance, int[][] arcs, int[] weights, Condition condition)
- Specified by:
buildCtrFlowin interfaceXCallbacks- Specified by:
buildCtrFlowin interfaceXCallbacks2
-
buildCtrInstantiation
public void buildCtrInstantiation(String id, XVariables.XVarInteger[] list, int[] values)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrInstantiationin interfaceXCallbacks- Specified by:
buildCtrInstantiationin interfaceXCallbacks2
-
buildCtrClause
public void buildCtrClause(String id, XVariables.XVarInteger[] pos, XVariables.XVarInteger[] neg)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrClausein interfaceXCallbacks- Specified by:
buildCtrClausein interfaceXCallbacks2
-
buildCtrCircuit
public void buildCtrCircuit(String id, XVariables.XVarInteger[] list, int startIndex)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCircuitin interfaceXCallbacks- Specified by:
buildCtrCircuitin interfaceXCallbacks2
-
buildCtrCircuit
public void buildCtrCircuit(String id, XVariables.XVarInteger[] list, int startIndex, int size)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCircuitin interfaceXCallbacks- Specified by:
buildCtrCircuitin interfaceXCallbacks2
-
buildCtrCircuit
public void buildCtrCircuit(String id, XVariables.XVarInteger[] list, int startIndex, XVariables.XVarInteger size)
Description copied from interface:XCallbacksFull information about the constraint (this form) in the specifications (Chapter 4).
Quick information available on the XCSP3 website (Tab Specifications) .
Select the constraint after opening the left navigation bar below heading XCSP3-core.- Specified by:
buildCtrCircuitin interfaceXCallbacks- Specified by:
buildCtrCircuitin interfaceXCallbacks2
-
buildObjToMinimize
public void buildObjToMinimize(String id, XVariables.XVarInteger x)
Description copied from interface:XCallbacks2Methods to be implemented for managing objectives- Specified by:
buildObjToMinimizein interfaceXCallbacks- Specified by:
buildObjToMinimizein interfaceXCallbacks2
-
buildObjToMaximize
public void buildObjToMaximize(String id, XVariables.XVarInteger x)
- Specified by:
buildObjToMaximizein interfaceXCallbacks- Specified by:
buildObjToMaximizein interfaceXCallbacks2
-
buildObjToMinimize
public void buildObjToMinimize(String id, XNodeParent<XVariables.XVarInteger> tree)
- Specified by:
buildObjToMinimizein interfaceXCallbacks- Specified by:
buildObjToMinimizein interfaceXCallbacks2
-
buildObjToMaximize
public void buildObjToMaximize(String id, XNodeParent<XVariables.XVarInteger> tree)
- Specified by:
buildObjToMaximizein interfaceXCallbacks- Specified by:
buildObjToMaximizein interfaceXCallbacks2
-
buildObjToMinimize
public void buildObjToMinimize(String id, Types.TypeObjective type, XVariables.XVarInteger[] list)
- Specified by:
buildObjToMinimizein interfaceXCallbacks- Specified by:
buildObjToMinimizein interfaceXCallbacks2
-
buildObjToMaximize
public void buildObjToMaximize(String id, Types.TypeObjective type, XVariables.XVarInteger[] list)
- Specified by:
buildObjToMaximizein interfaceXCallbacks- Specified by:
buildObjToMaximizein interfaceXCallbacks2
-
buildObjToMinimize
public void buildObjToMinimize(String id, Types.TypeObjective type, XVariables.XVarInteger[] list, int[] coeffs)
- Specified by:
buildObjToMinimizein interfaceXCallbacks- Specified by:
buildObjToMinimizein interfaceXCallbacks2
-
buildObjToMaximize
public void buildObjToMaximize(String id, Types.TypeObjective type, XVariables.XVarInteger[] list, int[] coeffs)
- Specified by:
buildObjToMaximizein interfaceXCallbacks- Specified by:
buildObjToMaximizein interfaceXCallbacks2
-
buildObjToMinimize
public void buildObjToMinimize(String id, Types.TypeObjective type, XNode<XVariables.XVarInteger>[] trees)
- Specified by:
buildObjToMinimizein interfaceXCallbacks- Specified by:
buildObjToMinimizein interfaceXCallbacks2
-
buildObjToMaximize
public void buildObjToMaximize(String id, Types.TypeObjective type, XNode<XVariables.XVarInteger>[] trees)
- Specified by:
buildObjToMaximizein interfaceXCallbacks- Specified by:
buildObjToMaximizein interfaceXCallbacks2
-
buildObjToMinimize
public void buildObjToMinimize(String id, Types.TypeObjective type, XNode<XVariables.XVarInteger>[] trees, int[] coeffs)
- Specified by:
buildObjToMinimizein interfaceXCallbacks- Specified by:
buildObjToMinimizein interfaceXCallbacks2
-
buildObjToMaximize
public void buildObjToMaximize(String id, Types.TypeObjective type, XNode<XVariables.XVarInteger>[] trees, int[] coeffs)
- Specified by:
buildObjToMaximizein interfaceXCallbacks- Specified by:
buildObjToMaximizein interfaceXCallbacks2
-
buildVarSymbolic
public void buildVarSymbolic(XVariables.XVarSymbolic x, String[] values)
Description copied from interface:XCallbacks2Methods to be implemented on symbolic variables/constraints- Specified by:
buildVarSymbolicin interfaceXCallbacks- Specified by:
buildVarSymbolicin interfaceXCallbacks2
-
buildCtrIntension
public void buildCtrIntension(String id, XVariables.XVarSymbolic[] scope, XNodeParent<XVariables.XVarSymbolic> tree)
- Specified by:
buildCtrIntensionin interfaceXCallbacks- Specified by:
buildCtrIntensionin interfaceXCallbacks2
-
buildCtrExtension
public void buildCtrExtension(String id, XVariables.XVarSymbolic x, String[] values, boolean positive, Set<Types.TypeFlag> flags)
- Specified by:
buildCtrExtensionin interfaceXCallbacks- Specified by:
buildCtrExtensionin interfaceXCallbacks2
-
buildCtrExtension
public void buildCtrExtension(String id, XVariables.XVarSymbolic[] list, String[][] tuples, boolean positive, Set<Types.TypeFlag> flags)
- Specified by:
buildCtrExtensionin interfaceXCallbacks- Specified by:
buildCtrExtensionin interfaceXCallbacks2
-
buildCtrAllDifferent
public void buildCtrAllDifferent(String id, XVariables.XVarSymbolic[] list)
- Specified by:
buildCtrAllDifferentin interfaceXCallbacks- Specified by:
buildCtrAllDifferentin interfaceXCallbacks2
-
-