MCPcopy Create free account

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

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

↓ 38 callersMethodisFalse
Tests if the variable is fixed to false @return true if the variable is fixed to false (value 0)
src/main/java/org/maxicp/cp/engine/core/CPBoolVar.java:28
↓ 38 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/cp/engine/core/CPSeqVar.java:106
↓ 38 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/modeling/SeqVar.java:43
↓ 37 callersMethod$
(XVariables.XVarInteger[] list)
src/main/java/org/maxicp/modeling/xcsp3/XCSP3.java:711
↓ 37 callersMethodgetModelProxy
()
src/main/java/org/maxicp/modeling/Var.java:9
↓ 36 callersMethodallDifferent
Returns an allDifferent constraint using forward checking algo @param x an array of variables @return a constraint so that {@code x[i] != x[j] for al
src/main/java/org/maxicp/cp/CPFactory.java:1242
↓ 36 callersMethodevaluate
Evaluate this expression. All variables referenced have to be fixed. @throws VariableNotFixedException when a variable is not fixed @return the value
src/main/java/org/maxicp/modeling/algebra/integer/IntExpression.java:15
↓ 36 callersMethodneq
Returns a constraint imposing that the variable is different from some given value. @param x the variable that is constrained bo be different from v
src/main/java/org/maxicp/cp/CPFactory.java:695
↓ 36 callersMethodsetLengthMin
(int v)
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:59
↓ 35 callersMethodclear
()
src/main/java/org/maxicp/search/DFSListener.java:6
↓ 35 callersMethodgetHeightMax
()
src/main/java/org/maxicp/cp/engine/constraints/scheduling/Activity.java:39
↓ 35 callersMethodgetHeightMin
()
src/main/java/org/maxicp/cp/engine/constraints/scheduling/Activity.java:35
↓ 35 callersMethodinclude
Includes a value in the set variable. throws an InconsistencyException if the value is already excluded from the set. calls the propagate method of th
src/main/java/org/maxicp/cp/engine/core/CPSetVarImpl.java:87
↓ 35 callersMethodmakeIVar
(CPSolver cp, Integer... values)
src/test/java/org/maxicp/cp/engine/constraints/AllDifferentDCTest.java:129
↓ 35 callersMethodsize
Upper bound on the size of the domain of this expression.
src/main/java/org/maxicp/modeling/algebra/integer/IntExpression.java:41
↓ 34 callersMethodisEmpty
()
src/main/java/org/maxicp/util/PQueue.java:37
↓ 33 callersMethoddfSearch
(Supplier<Runnable[]> branching)
src/main/java/org/maxicp/modeling/concrete/ConcreteModel.java:63
↓ 33 callersMethodshow
Gives the current domain of the expression as a human-readable String. If the expression is fixed, a single number is returned. Otherwise, if the doma
src/main/java/org/maxicp/modeling/algebra/integer/IntExpression.java:62
↓ 32 callersMethodend
Last member of the sequence @return last member of the sequence
src/main/java/org/maxicp/cp/engine/core/CPSeqVar.java:98
↓ 32 callersMethodlengthMax
()
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:33
↓ 32 callersMethodnIncluded
Returns the size of the set of included elements @return the size of the set of included elements
src/main/java/org/maxicp/cp/engine/core/CPSetVar.java:43
↓ 32 callersMethodplus
A variable that is a view of {@code x+v}. @param x a variable @param v a value @return a variable that is a view of {@code x+v}
src/main/java/org/maxicp/cp/CPFactory.java:403
↓ 32 callersMethodrunCP
(Function<ConcreteCPModel, R> fun)
src/main/java/org/maxicp/cp/modeling/ModelProxyInstantiatorWithCP.java:12
↓ 32 callersMethodsafeDiv
(int a, int b)
src/main/java/org/maxicp/modeling/algebra/integer/Div.java:34
↓ 32 callersMethodsaveState
Stores the current state such that it can be recovered using restoreState() Increase the level by 1
src/main/java/org/maxicp/state/StateManager.java:23
↓ 31 callersMethodhasEdge
Tells if a directed edge exists between two nodes. @param from origin of the edge. @param to destination of the edge. @return true if the directed
src/main/java/org/maxicp/modeling/SeqVar.java:181
↓ 30 callersMethod_recursiveIntentionBuilder
(XNode<V> node)
src/main/java/org/maxicp/modeling/xcsp3/XCSP3.java:360
↓ 30 callersMethodheightAtStart
(IntervalVar interval)
src/main/java/org/maxicp/cp/engine/constraints/scheduling/CPCumulFunction.java:29
↓ 30 callersMethodpropagateOnFix
Asks that {@link CPConstraint#propagate()} is called whenever the domain is fixed {@link CPSeqVar#isFixed()} In such a state the variable is fixed and
src/main/java/org/maxicp/cp/engine/core/CPSeqVar.java:305
↓ 30 callersMethodrestoreState
Restores state as it was at getLevel()-1 Decrease the level by 1
src/main/java/org/maxicp/state/StateManager.java:30
↓ 29 callersMethodgetConcreteModel
Returns the current ConcreteModel. isConcrete() needs to be true, otherwise it raises NotConcreteException.
src/main/java/org/maxicp/modeling/ModelProxy.java:37
↓ 29 callersMethodisEmpty
()
src/main/java/org/maxicp/state/copy/CopyMap.java:53
↓ 29 callersMethodisOptional
()
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:39
↓ 28 callersMethodasList
(int[] list)
src/main/java/org/maxicp/util/Ints.java:9
↓ 28 callersMethodgetModelProxy
Returns the ModelDispatcher linked to this Expression
src/main/java/org/maxicp/modeling/algebra/Expression.java:50
↓ 28 callersMethodnPossible
Returns the size of the set of possible elements @return the size of the set of possible elements
src/main/java/org/maxicp/cp/engine/core/CPSetVar.java:50
↓ 28 callersMethodtoSet
(CPIntVar x)
src/test/java/org/maxicp/cp/engine/constraints/AllDifferentDCTest.java:59
↓ 27 callersMethodand
(BoolExpression... t)
src/main/java/org/maxicp/modeling/Factory.java:214
↓ 27 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/modeling/SeqVar.java:35
↓ 27 callersMethodfix
Fixes the variable @param b the value to assign to this boolean variable @exception InconsistencyException is thrown if the value is not in
src/main/java/org/maxicp/cp/engine/core/CPBoolVar.java:36
↓ 27 callersMethodplus
(int v)
src/main/java/org/maxicp/cp/engine/core/CPIntVar.java:231
↓ 27 callersMethodsymbolicCopy
()
src/main/java/org/maxicp/modeling/Model.java:14
↓ 26 callersMethodfillPred
Copies the predecessors of a node matching a status into an array. @param node node. @param dest an array large enough @param status status that
src/main/java/org/maxicp/modeling/SeqVar.java:102
↓ 26 callersMethodfillSucc
Copies the successors of a node matching a status into an array. @param node node. @param dest an array large enough {@code dest.length >= nSucc(
src/main/java/org/maxicp/modeling/SeqVar.java:133
↓ 26 callersMethodminus
(int v)
src/main/java/org/maxicp/cp/engine/core/CPIntVar.java:235
↓ 26 callersMethodnumberOfNodes
()
src/main/java/org/maxicp/search/SearchStatistics.java:52
↓ 26 callersMethodsetLengthMax
(int v)
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:61
↓ 26 callersMethodsum
@param a @return the sum of the values in a
src/main/java/org/maxicp/util/Arrays.java:125
↓ 25 callersMethodminus
A variable that is a view of {@code -x}. @param x a variable @return a variable that is a view of {@code -x}
src/main/java/org/maxicp/cp/CPFactory.java:413
↓ 24 callersMethodgetModelProxy
Gives the ModelProxy associated with this CPSolver, if any
src/main/java/org/maxicp/cp/engine/core/CPSolver.java:85
↓ 23 callersMethodassertIsBoolArrayTrueAt
(boolean[] values, int... indexes)
src/test/java/org/maxicp/cp/engine/core/CPSeqVarTest.java:50
↓ 23 callersMethodcpInstantiate
()
src/main/java/org/maxicp/cp/modeling/ModelProxyInstantiatorWithCP.java:11
↓ 23 callersMethodempty
Called whenever the domain becomes empty.
src/main/java/org/maxicp/cp/engine/core/IntDomainListener.java:18
↓ 23 callersMethodeq
(IntExpression a, int b)
src/main/java/org/maxicp/modeling/Factory.java:123
↓ 23 callersMethodheightAtEnd
(IntervalVar interval)
src/main/java/org/maxicp/cp/engine/constraints/scheduling/CPCumulFunction.java:32
↓ 23 callersMethodintervalVar
(int startMin, int startMax, int endMin, int endMax, int lengthMin, int lengthMax, boolean isPresent)
src/main/java/org/maxicp/ModelDispatcher.java:130
↓ 23 callersMethodmakeIVar
(CPSolver cp, Integer... values)
src/test/java/org/maxicp/cp/engine/constraints/CostCardinalityMaxDCTest.java:339
↓ 22 callersMethodinclude
Includes a value in the set. @param v the value to include, it must be a possible value from the universe otherwise an exception is thrown.
src/main/java/org/maxicp/cp/engine/core/CPSetVar.java:89
↓ 22 callersMethodmul
A variable that is a view of {@code x a}. @param x a variable @param a a constant to multiply x with @return a variable that is a view of {@code x a}
src/main/java/org/maxicp/cp/CPFactory.java:435
↓ 22 callersMethodpulse
Creates an elementary Cumulative Function that is a pulse of height h that happen when the Interval variable var is present. @param var an interval v
src/main/java/org/maxicp/cp/CPFactory.java:1975
↓ 22 callersMethodselectMin
Minimum selector. <p>Example of usage. <pre> {@code IntVar xs = selectMin(x,xi -> xi.size() > 1,xi -> xi.size()); } </pre> @param x the array on wh
src/main/java/org/maxicp/search/Searches.java:80
↓ 21 callersMethodincrement
Increments the value @return the new value
src/main/java/org/maxicp/state/StateInt.java:23
↓ 21 callersMethodlogPhase
(String msg)
src/main/java/org/maxicp/search/blackbox/BlackBoxSearch.java:546
↓ 21 callersMethodstaticOrderBinary
Binary Branching with static variable ordering and natural value ordering. @param xs the variable array to fix @return a binary static branching stra
src/main/java/org/maxicp/search/Searches.java:298
↓ 20 callersMethodcontains
Checks if a value is in the set. @param val the value to check @return true if val is in the set
src/main/java/org/maxicp/state/datastructures/StateSparseSet.java:308
↓ 20 callersMethodend
Last member of the sequence @return last member of the sequence
src/main/java/org/maxicp/modeling/SeqVar.java:73
↓ 20 callersMethodfillInsert
Fills an array with the insertions for a node. Equivalent to {@code fillPred(node, dest, MEMBER)}. @param node node. @param dest an array large enoug
src/main/java/org/maxicp/cp/engine/core/CPSeqVar.java:185
↓ 20 callersMethodinclude
Moves a value from the possible partition P to the included partition I. @param val the value to mark as included @return true if the value has been
src/main/java/org/maxicp/state/datastructures/StateTriPartition.java:116
↓ 20 callersMethodisAbsent
()
src/main/java/org/maxicp/modeling/algebra/scheduling/IntervalExpression.java:27
↓ 20 callersMethodisRequired
Gives a boolean variable telling if the node is required @return boolean variable telling if the node is required
src/main/java/org/maxicp/cp/engine/core/CPNodeVar.java:46
↓ 19 callersMethodaddAll
(Collection<? extends E> c)
src/main/java/org/maxicp/util/ImmutableSet.java:88
↓ 19 callersMethodassertSequenceState
assert the state of a StateSequenceSet train1 the methods {@link StateTriPartition#nPossible()}, {@link StateTriPartition#nIncluded()}, {@link StateTr
src/test/java/org/maxicp/state/datastructures/StateTriPartitionTest.java:344
↓ 19 callersMethodendBeforeStart
Creates a constraint that enforces that the end of var1 is lower or equal to the start of var2 @param var1 an interval variable @param var2 an interv
src/main/java/org/maxicp/cp/CPFactory.java:1743
↓ 19 callersMethodexclude
Moves a value from the set of possible values P to the set of excluded values E. @param val the value to move to the excluded set E @return true if t
src/main/java/org/maxicp/state/datastructures/StateTriPartition.java:100
↓ 19 callersMethodhasEdge
Tells if a directed edge exists between two nodes. @param from origin of the edge. @param to destination of the edge. @return true if the directed
src/main/java/org/maxicp/cp/engine/core/CPSeqVar.java:204
↓ 19 callersMethodheight
()
src/main/java/org/maxicp/cp/engine/constraints/Profile.java:57
↓ 19 callersMethodheight
()
src/main/java/org/maxicp/cp/engine/constraints/scheduling/Profile.java:126
↓ 19 callersMethodjumpTo
Jump to a specific constraint node. The new list should have a node in common with current model, and this common node must be either the node at whi
src/main/java/org/maxicp/modeling/concrete/ConcreteModel.java:45
↓ 19 callersMethodunimplementedCase
(Object... objects)
src/main/java/org/maxicp/modeling/xcsp3/XCallbacksDecomp.java:425
↓ 18 callersMethodendMax
()
src/main/java/org/maxicp/modeling/algebra/scheduling/IntervalExpression.java:19
↓ 18 callersMethodendMin
()
src/main/java/org/maxicp/modeling/algebra/scheduling/IntervalExpression.java:17
↓ 18 callersMethodisOptional
()
src/main/java/org/maxicp/modeling/algebra/scheduling/IntervalExpression.java:29
↓ 18 callersMethodnExcluded
Returns the size of the set of excluded elements @return the size of the set of excluded elements
src/main/java/org/maxicp/cp/engine/core/CPSetVar.java:57
↓ 18 callersMethodnoOverlap
Creates a constraint that enforces that there is no overlap between the intervals in vars. @param vars one or more interval variables @return a noOve
src/main/java/org/maxicp/cp/CPFactory.java:1863
↓ 18 callersMethodresetPropagators
(AtomicBoolean ... bs)
src/test/java/org/maxicp/cp/engine/core/CPSeqVarTest.java:44
↓ 18 callersMethodstartMax
()
src/main/java/org/maxicp/modeling/algebra/scheduling/IntervalExpression.java:15
↓ 18 callersMethodstartMin
()
src/main/java/org/maxicp/modeling/algebra/scheduling/IntervalExpression.java:13
↓ 18 callersMethodwhenDomainChange
Asks that the closure is called whenever the domain change of this variable changes @param f the closure
src/main/java/org/maxicp/cp/engine/core/CPIntVar.java:47
↓ 18 callersMethodwhenFixed
Asks that the closure is called whenever the domain is fixed {@link CPSeqVar#isFixed()}. @param f the closure.
src/main/java/org/maxicp/cp/engine/core/CPSeqVar.java:268
↓ 17 callersMethodcheckCorrectness
Core helper: creates the three variables with the given domains, posts DivVar, enumerates all solutions, and asserts that the enumerated set equals th
src/test/java/org/maxicp/cp/engine/constraints/DivVarTest.java:76
↓ 17 callersMethodfds
(CPIntervalVar[] intervals)
src/main/java/org/maxicp/search/Searches.java:712
↓ 17 callersMethodgetConcreteVar
(IntExpression expr)
src/main/java/org/maxicp/modeling/concrete/ConcreteModel.java:25
↓ 17 callersMethodsafeMul
@param a @param b @return a b (rounded to Integer.MAX_VALUE /Integer.MIN_VALUE in case of overflow)
src/main/java/org/maxicp/util/NumberUtils.java:122
↓ 17 callersMethodstartOr
Returns a CPIntVar that is equal to the start of interval if it is present, or equal to val if interval is absent @param interval the interval variab
src/main/java/org/maxicp/cp/CPFactory.java:1464
↓ 17 callersMethodstatus
Return a variable linked to the status of the interval, that is present (true) or absent (false) @return whether the interval is present (true) or abs
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:45
↓ 17 callersMethodtest
()
src/test/java/org/maxicp/cp/engine/examples/raw/GuessTheNumberTest.java:26
↓ 17 callersMethodunion
Makes the union with another bit-set but only on non zero-words of the outer sparse-bit-set. @param other the other bit-set to make the union with
src/main/java/org/maxicp/state/datastructures/BitSet.java:80
↓ 16 callersMethodaddPhase
Registers one executable phase in the black-box plan. @param name descriptive phase name used in logs and diagnostics @param search
src/main/java/org/maxicp/search/blackbox/BlackBoxSearch.java:212
↓ 16 callersMethodcontains
Returns whether this expression can contain v.
src/main/java/org/maxicp/modeling/algebra/integer/IntExpression.java:30
↓ 16 callersMethodcreateNode
(int id, int parentId, NodeType type)
src/main/java/org/maxicp/util/algo/Tree.java:26
← previousnext →101–200 of 3,827, ranked by callers