MCPcopy Create free account

hub / github.com/aia-uclouvain/maxicp / functions

Functions3,827 in github.com/aia-uclouvain/maxicp

↓ 1,078 callersMethodpost
Posts the constraint, that is call {@link CPConstraint#post()} and computes the fix-point. A {@link InconsistencyException} is thrown if by posting th
src/main/java/org/maxicp/cp/engine/core/CPSolver.java:25
↓ 696 callersMethodmin
Returns the minimum of the domain of the variable @return the minimum of the domain of the variable
src/main/java/org/maxicp/cp/engine/core/CPIntVar.java:98
↓ 571 callersMethodmax
Returns the maximum of the domain of the variable @return the maximum of the domain of the variable
src/main/java/org/maxicp/cp/engine/core/CPIntVar.java:105
↓ 502 callersMethodmakeIntVar
Creates a variable with a domain of specified arity. @param cp the solver in which the variable is created @param sz a positive value that is the siz
src/main/java/org/maxicp/cp/CPFactory.java:118
↓ 451 callersMethodadd
(Constraint c)
src/main/java/org/maxicp/modeling/ModelProxy.java:44
↓ 379 callersMethodgetSolver
Returns the solver in which this variable was created. @return the solver in which this variable was created.
src/main/java/org/maxicp/cp/engine/core/CPSeqVar.java:24
↓ 351 callersMethodcontains
Returns true if the domain contains the specified value. @param v the value whose presence in the domain is to be tested @return true if the domain co
src/main/java/org/maxicp/cp/engine/core/CPIntVar.java:166
↓ 346 callersMethodinsert
Inserts a node in the sequence after a given member. Requires the node if it was not required yet. @param prev member after which the node will be in
src/main/java/org/maxicp/cp/engine/core/CPSeqVar.java:248
↓ 331 callersMethodget
Creates the desired constraint using some predefined minicp model and a set of already instantiated variables. @param solver the solver which can be
src/test/java/org/maxicp/cp/engine/constraints/ConstraintFactory.java:20
↓ 308 callersMethodvalue
Retrieves the value @return the value
src/main/java/org/maxicp/state/State.java:30
↓ 292 callersMethodsize
Returns the size of the domain of the variable @return the size of the domain of the variable
src/main/java/org/maxicp/cp/engine/core/CPIntVar.java:143
↓ 253 callersMethodfixPoint
Computes the fix-point with all the scheduled constraints.
src/main/java/org/maxicp/cp/engine/core/CPSolver.java:47
↓ 248 callersMethodgetStateManager
Returns the state manager in charge of the global state of the solver. @return the state manager
src/main/java/org/maxicp/state/StateManaged.java:10
↓ 247 callersMethodmakeIntervalVar
Creates a new optional interval variable with a startMin of 0, an unbounded end and unfixed length @param cp the solver @return a new interval variab
src/main/java/org/maxicp/cp/CPFactory.java:273
↓ 239 callersMethodeq
Returns a constraint imposing that the variable is equal to some given value. @param x the variable to be assigned to v @param v the value that must
src/main/java/org/maxicp/cp/CPFactory.java:631
↓ 239 callersMethodtoArray
()
src/main/java/org/maxicp/util/ImmutableSet.java:63
↓ 215 callersMethodof
(int... ints)
src/main/java/org/maxicp/util/ImmutableSet.java:18
↓ 203 callersMethodremove
Removes the specified value. @param v the value to remove @exception InconsistencyException is thrown if the domain becomes empty
src/main/java/org/maxicp/cp/engine/core/CPIntVar.java:174
↓ 174 callersMethodnumberOfSolutions
()
src/main/java/org/maxicp/search/SearchStatistics.java:56
↓ 167 callersMethodstartMin
()
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:23
↓ 166 callersMethodsetValue
Set the value @param v the value to set @return the new value that was set
src/main/java/org/maxicp/state/State.java:24
↓ 147 callersMethodsetPresent
()
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:65
↓ 142 callersMethodmakeIntVarArray
Creates an array of variables with specified lambda function @param n the number of variables to create @param body the function that given the in
src/main/java/org/maxicp/cp/CPFactory.java:160
↓ 142 callersMethodsetEndMax
(int v)
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:55
↓ 135 callersMethodisNode
Tells if a node is matching a status. @param node node. @param status status that must be matched by the node. @return true if the node is matching
src/main/java/org/maxicp/modeling/SeqVar.java:59
↓ 135 callersMethodsolve
(DFSListener dfsListener)
src/main/java/org/maxicp/search/DFSearch.java:116
↓ 133 callersMethodmakeDfs
Creates a Depth First Search with custom branching heuristic <pre> // Example of binary search: At each node it selects // the first free variable qi
src/main/java/org/maxicp/cp/CPFactory.java:386
↓ 131 callersMethodendMax
()
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:29
↓ 118 callersMethodremoveAbove
Removes all the values above a given value. @param v the value such that all the values larger than v are removed @exception InconsistencyException
src/main/java/org/maxicp/cp/engine/core/CPIntVar.java:201
↓ 116 callersMethodremoveBelow
Removes all the values less than a given value. @param v the value such that all the values less than v are removed @exception InconsistencyException
src/main/java/org/maxicp/cp/engine/core/CPIntVar.java:192
↓ 114 callersMethodfix
Fixes the specified value. @param v the value to assign. @exception InconsistencyException is thrown if the value is not in the domain
src/main/java/org/maxicp/cp/engine/core/CPIntVar.java:183
↓ 114 callersMethodisAbsent
()
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:37
↓ 114 callersMethodsaveState
(StateManager sm)
src/main/java/org/maxicp/search/DFSListener.java:11
↓ 109 callersMethodisPresent
()
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:35
↓ 109 callersMethodsetStartMin
(int v)
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:47
↓ 107 callersMethodmin
Return a lower bound for this expression
src/main/java/org/maxicp/modeling/algebra/integer/IntExpression.java:20
↓ 105 callersMethodonSolution
Adds a listener that is called on each solution. @param listener the closure to be called whenever a solution is found
src/main/java/org/maxicp/search/SearchMethod.java:14
↓ 103 callersMethodendMin
()
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:27
↓ 103 callersMethodnotBetween
Forbids a subsequence of length 3 to appear, removing from the domain all sequences containing the sub-sequence given as input. For technical reasons,
src/main/java/org/maxicp/cp/engine/core/CPSeqVar.java:259
↓ 103 callersMethodstartMax
()
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:25
↓ 100 callersMethodadd
(Constraint c)
src/main/java/org/maxicp/modeling/concrete/ConcreteModel.java:33
↓ 97 callersMethodfirstFailBinary
First-Fail Binary search strategy. Selects the first not fixed variable with smallest domain. Then it creates two branches. The left branch assigning
src/main/java/org/maxicp/search/Searches.java:327
↓ 95 callersMethodrestoreState
(StateManager sm)
src/main/java/org/maxicp/search/DFSListener.java:12
↓ 94 callersMethodisFixed
()
src/main/java/org/maxicp/cp/engine/core/CPVar.java:11
↓ 94 callersMethodsetActive
Activates or deactivates the constraint such that it is not scheduled any more. <p>Typically called by the Constraint to let the solver know it should
src/main/java/org/maxicp/cp/engine/core/CPConstraint.java:58
↓ 92 callersMethodsort
sorts x increasingly according to the weights w @param x @param w
src/main/java/org/maxicp/util/Arrays.java:306
↓ 90 callersMethodassertSeqVar
Assert the full state of a sequence Test quite a bunch of stuff and is quite expensive. This is rather safe but expensive if testing simple operations
src/test/java/org/maxicp/cp/engine/core/CPSeqVarAssertion.java:842
↓ 89 callersMethodgetInt
()
src/main/java/org/maxicp/util/io/InputReader.java:32
↓ 85 callersMethodgetCPVar
(BoolExpression v)
src/main/java/org/maxicp/cp/modeling/ConcreteCPModel.java:157
↓ 85 callersMethodsetLength
(int v)
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:63
↓ 84 callersMethodmax
Return an upper bound for this expression
src/main/java/org/maxicp/modeling/algebra/integer/IntExpression.java:25
↓ 82 callersMethodexclude
Excludes a node from the sequence. @param node node to be excluded. @throws InconsistencyException if the node is required ({@code isNode(node, REQUI
src/main/java/org/maxicp/cp/engine/core/CPSeqVar.java:228
↓ 82 callersMethodmakeBoolVar
Creates a boolean variable. @param cp the solver in which the variable is created @return an uninstantiated boolean variable
src/main/java/org/maxicp/cp/CPFactory.java:202
↓ 82 callersMethodmakeSeqVar
Creates a sequence variable. @param cp the solver in which the variable is created @return an uninstantiated boolean variable
src/main/java/org/maxicp/cp/CPFactory.java:259
↓ 80 callersMethodhasInsert
Tells if an insertion is valid. An insert operation is valid iff - prev is a member node ; - node is an insertable node (either possible or a required
src/main/java/org/maxicp/cp/engine/core/CPSeqVar.java:218
↓ 79 callersMethodmakeStateInt
Creates a Stateful integer (restorable) @param initValue the initial setValue @return a StateInt object wrapping the initValue
src/main/java/org/maxicp/state/StateManager.java:70
↓ 79 callersMethodsum
Returns a variable representing the sum of a given set of variables. This relation is enforced by the {@link Sum} constraint posted by calling this me
src/main/java/org/maxicp/cp/CPFactory.java:496
↓ 78 callersMethodfillArray
Copies the values of the domain into an array. @param dest an array large enough {@code dest.length >= size()} @return the size of the domain and {@c
src/main/java/org/maxicp/cp/engine/core/CPIntVar.java:152
↓ 76 callersMethodapply
(A a, B b, C c)
src/main/java/org/maxicp/util/TriFunction.java:10
↓ 75 callersMethodisNode
Tells if a node is matching a status. @param node node. @param status status that must be matched by the node. @return true if the node is matching
src/main/java/org/maxicp/cp/engine/core/CPSeqVar.java:82
↓ 70 callersMethodmemberAfter
Returns the member following another member in the sequence. @param node member within the sequence. @return member following the given node in the s
src/main/java/org/maxicp/modeling/SeqVar.java:81
↓ 67 callersMethodhasInsert
Tells if an insertion is valid. An insert operation is valid iff - prev is a member node ; - node is an insertable node (either possible or a required
src/main/java/org/maxicp/modeling/SeqVar.java:195
↓ 64 callersMethodmakeModelDispatcher
()
src/main/java/org/maxicp/modeling/Factory.java:25
↓ 63 callersMethodmakeSolver
Creates a constraint programming solver @return a constraint programming solver with trail-based memory management
src/main/java/org/maxicp/cp/CPFactory.java:74
↓ 62 callersMethodpropagateOnBoundChange
Asks that {@link CPConstraint#propagate()} is called whenever the bound (maximum or minimum values) of the domain of this variable is changes. We say
src/main/java/org/maxicp/cp/engine/core/CPIntVar.java:90
↓ 59 callersMethodisFixed
()
src/main/java/org/maxicp/modeling/IntVar.java:16
↓ 59 callersMethodstart
First member of the sequence @return first member of the sequence
src/main/java/org/maxicp/modeling/SeqVar.java:66
↓ 58 callersMethodintVar
(int min, int max)
src/main/java/org/maxicp/ModelDispatcher.java:106
↓ 57 callersMethodstart
First member of the sequence @return first member of the sequence
src/main/java/org/maxicp/cp/engine/core/CPSeqVar.java:91
↓ 54 callersMethodisTrue
Tests if the variable is fixed to true @return true if the variable is fixed to true (value 1)
src/main/java/org/maxicp/cp/engine/core/CPBoolVar.java:22
↓ 54 callersMethodpropagateOnChange
(CPConstraint c)
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:21
↓ 53 callersMethodfilter
Filters the objective wrt to current bound This method is typically executed at each node of a search tree
src/main/java/org/maxicp/search/Objective.java:33
↓ 53 callersMethodrequire
Requires a node in the sequence. @param node node to be required. @throws InconsistencyException if the node is excluded ({@code isNode(node, EXCLUDE
src/main/java/org/maxicp/cp/engine/core/CPSeqVar.java:236
↓ 51 callersMethodsetEndMin
(int v)
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:53
↓ 51 callersMethodsetStartMax
(int v)
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:49
↓ 50 callersMethodminimize
Creates a minimization objective on the given variable. @param x the variable to minimize @return an objective that can minimize x @see DFSearch#opti
src/main/java/org/maxicp/cp/engine/core/CPSolver.java:63
↓ 49 callersMethodlengthMin
()
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:31
↓ 48 callersMethodbranch
(int id, int pId)
src/main/java/org/maxicp/search/DFSListener.java:9
↓ 48 callersMethodisFixed
Returns true if the domain of the variable has a single value. @return true if the domain of the variable is a singleton.
src/main/java/org/maxicp/cp/engine/core/CPIntVar.java:159
↓ 48 callersMethodle
Returns a constraint imposing that the variable is less or equal to some given value. @param x the variable that is constrained bo be less or equal t
src/main/java/org/maxicp/cp/CPFactory.java:737
↓ 48 callersMethodnNode
Gives the number of nodes matching a status. @param status status that must be matched by the nodes. @return the number of nodes matching the status.
src/main/java/org/maxicp/cp/engine/core/CPSeqVar.java:66
↓ 47 callersMethodset
Set the ith bit up (value 1). @param i the bit to set
src/main/java/org/maxicp/state/datastructures/BitSet.java:54
↓ 46 callersMethodisPresent
()
src/main/java/org/maxicp/modeling/algebra/scheduling/IntervalExpression.java:25
↓ 46 callersMethodnumberOfFailures
()
src/main/java/org/maxicp/search/SearchStatistics.java:48
↓ 46 callersMethodpost
Post method that disables the fix point when needed @param constraint
src/main/java/org/maxicp/cp/modeling/ConcreteCPModel.java:77
↓ 46 callersMethodpropagateOnDomainChange
Asks that {@link CPConstraint#propagate()} is called whenever the domain of this variable changes. We say that a <i>change</i> event occurs. @param c
src/main/java/org/maxicp/cp/engine/core/CPIntVar.java:69
↓ 46 callersMethodrun
()
src/main/java/org/maxicp/search/DFSLinearizer.java:8
↓ 45 callersMethodput
(K k, V v)
src/main/java/org/maxicp/state/copy/CopyMap.java:68
↓ 44 callersMethodgetNodeVar
Returns the variable related to a node. @param node node. @return variable related to a node.
src/main/java/org/maxicp/cp/engine/core/CPSeqVar.java:39
↓ 44 callersMethodoptimize
(Objective obj, DFSListener dfsListener)
src/main/java/org/maxicp/search/DFSearch.java:124
↓ 43 callersMethodintVarArray
Create an array of n IntVars with domain between 0 and domSize-1, inclusive. @param n size of the array, number of IntVars @param domSize size of the
src/main/java/org/maxicp/ModelDispatcher.java:92
↓ 43 callersMethodsetStart
(int v)
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:51
↓ 42 callersMethodfillNode
Copies the nodes matching a status into an array. @param dest an array large enough {@code dest.length >= nNode(status)}. @param status status that
src/main/java/org/maxicp/cp/engine/core/CPSeqVar.java:58
↓ 42 callersMethodmul
(IntExpression v)
src/main/java/org/maxicp/modeling/algebra/integer/IntExpression.java:47
↓ 42 callersMethodtoString
()
src/main/java/org/maxicp/cp/engine/core/SetDomain.java:23
↓ 41 callersMethodtoString
()
src/main/java/org/maxicp/state/State.java:33
↓ 40 callersMethodfillArray
Fill an array of minimum size size() with a superset of the domain of this expression. Returns `v`, the size of the domain after it has been computed,
src/main/java/org/maxicp/modeling/algebra/integer/IntExpression.java:36
↓ 40 callersMethodpush
(E elem)
src/main/java/org/maxicp/state/datastructures/StateStack.java:35
↓ 39 callersMethodsetAbsent
()
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:67
↓ 38 callersMethodcollect
Collects all candidate decision variables inferred from the model's constraint graph. @param model the model to inspect @return ordered, identity-ded
src/main/java/org/maxicp/modeling/DecisionVarCollector.java:45
next →1–100 of 3,827, ranked by callers