Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aia-uclouvain/maxicp
/ functions
Functions
3,827 in github.com/aia-uclouvain/maxicp
⨍
Functions
3,827
◇
Types & classes
688
↓ 38 callers
Method
isFalse
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 callers
Method
memberAfter
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 callers
Method
nNode
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 callers
Method
$
(XVariables.XVarInteger[] list)
src/main/java/org/maxicp/modeling/xcsp3/XCSP3.java:711
↓ 37 callers
Method
getModelProxy
()
src/main/java/org/maxicp/modeling/Var.java:9
↓ 36 callers
Method
allDifferent
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 callers
Method
evaluate
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 callers
Method
neq
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 callers
Method
setLengthMin
(int v)
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:59
↓ 35 callers
Method
clear
()
src/main/java/org/maxicp/search/DFSListener.java:6
↓ 35 callers
Method
getHeightMax
()
src/main/java/org/maxicp/cp/engine/constraints/scheduling/Activity.java:39
↓ 35 callers
Method
getHeightMin
()
src/main/java/org/maxicp/cp/engine/constraints/scheduling/Activity.java:35
↓ 35 callers
Method
include
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 callers
Method
makeIVar
(CPSolver cp, Integer... values)
src/test/java/org/maxicp/cp/engine/constraints/AllDifferentDCTest.java:129
↓ 35 callers
Method
size
Upper bound on the size of the domain of this expression.
src/main/java/org/maxicp/modeling/algebra/integer/IntExpression.java:41
↓ 34 callers
Method
isEmpty
()
src/main/java/org/maxicp/util/PQueue.java:37
↓ 33 callers
Method
dfSearch
(Supplier<Runnable[]> branching)
src/main/java/org/maxicp/modeling/concrete/ConcreteModel.java:63
↓ 33 callers
Method
show
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 callers
Method
end
Last member of the sequence @return last member of the sequence
src/main/java/org/maxicp/cp/engine/core/CPSeqVar.java:98
↓ 32 callers
Method
lengthMax
()
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:33
↓ 32 callers
Method
nIncluded
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 callers
Method
plus
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 callers
Method
runCP
(Function<ConcreteCPModel, R> fun)
src/main/java/org/maxicp/cp/modeling/ModelProxyInstantiatorWithCP.java:12
↓ 32 callers
Method
safeDiv
(int a, int b)
src/main/java/org/maxicp/modeling/algebra/integer/Div.java:34
↓ 32 callers
Method
saveState
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 callers
Method
hasEdge
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 callers
Method
_recursiveIntentionBuilder
(XNode<V> node)
src/main/java/org/maxicp/modeling/xcsp3/XCSP3.java:360
↓ 30 callers
Method
heightAtStart
(IntervalVar interval)
src/main/java/org/maxicp/cp/engine/constraints/scheduling/CPCumulFunction.java:29
↓ 30 callers
Method
propagateOnFix
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 callers
Method
restoreState
Restores state as it was at getLevel()-1 Decrease the level by 1
src/main/java/org/maxicp/state/StateManager.java:30
↓ 29 callers
Method
getConcreteModel
Returns the current ConcreteModel. isConcrete() needs to be true, otherwise it raises NotConcreteException.
src/main/java/org/maxicp/modeling/ModelProxy.java:37
↓ 29 callers
Method
isEmpty
()
src/main/java/org/maxicp/state/copy/CopyMap.java:53
↓ 29 callers
Method
isOptional
()
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:39
↓ 28 callers
Method
asList
(int[] list)
src/main/java/org/maxicp/util/Ints.java:9
↓ 28 callers
Method
getModelProxy
Returns the ModelDispatcher linked to this Expression
src/main/java/org/maxicp/modeling/algebra/Expression.java:50
↓ 28 callers
Method
nPossible
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 callers
Method
toSet
(CPIntVar x)
src/test/java/org/maxicp/cp/engine/constraints/AllDifferentDCTest.java:59
↓ 27 callers
Method
and
(BoolExpression... t)
src/main/java/org/maxicp/modeling/Factory.java:214
↓ 27 callers
Method
fillNode
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 callers
Method
fix
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 callers
Method
plus
(int v)
src/main/java/org/maxicp/cp/engine/core/CPIntVar.java:231
↓ 27 callers
Method
symbolicCopy
()
src/main/java/org/maxicp/modeling/Model.java:14
↓ 26 callers
Method
fillPred
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 callers
Method
fillSucc
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 callers
Method
minus
(int v)
src/main/java/org/maxicp/cp/engine/core/CPIntVar.java:235
↓ 26 callers
Method
numberOfNodes
()
src/main/java/org/maxicp/search/SearchStatistics.java:52
↓ 26 callers
Method
setLengthMax
(int v)
src/main/java/org/maxicp/cp/engine/core/CPIntervalVar.java:61
↓ 26 callers
Method
sum
@param a @return the sum of the values in a
src/main/java/org/maxicp/util/Arrays.java:125
↓ 25 callers
Method
minus
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 callers
Method
getModelProxy
Gives the ModelProxy associated with this CPSolver, if any
src/main/java/org/maxicp/cp/engine/core/CPSolver.java:85
↓ 23 callers
Method
assertIsBoolArrayTrueAt
(boolean[] values, int... indexes)
src/test/java/org/maxicp/cp/engine/core/CPSeqVarTest.java:50
↓ 23 callers
Method
cpInstantiate
()
src/main/java/org/maxicp/cp/modeling/ModelProxyInstantiatorWithCP.java:11
↓ 23 callers
Method
empty
Called whenever the domain becomes empty.
src/main/java/org/maxicp/cp/engine/core/IntDomainListener.java:18
↓ 23 callers
Method
eq
(IntExpression a, int b)
src/main/java/org/maxicp/modeling/Factory.java:123
↓ 23 callers
Method
heightAtEnd
(IntervalVar interval)
src/main/java/org/maxicp/cp/engine/constraints/scheduling/CPCumulFunction.java:32
↓ 23 callers
Method
intervalVar
(int startMin, int startMax, int endMin, int endMax, int lengthMin, int lengthMax, boolean isPresent)
src/main/java/org/maxicp/ModelDispatcher.java:130
↓ 23 callers
Method
makeIVar
(CPSolver cp, Integer... values)
src/test/java/org/maxicp/cp/engine/constraints/CostCardinalityMaxDCTest.java:339
↓ 22 callers
Method
include
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 callers
Method
mul
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 callers
Method
pulse
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 callers
Method
selectMin
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 callers
Method
increment
Increments the value @return the new value
src/main/java/org/maxicp/state/StateInt.java:23
↓ 21 callers
Method
logPhase
(String msg)
src/main/java/org/maxicp/search/blackbox/BlackBoxSearch.java:546
↓ 21 callers
Method
staticOrderBinary
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 callers
Method
contains
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 callers
Method
end
Last member of the sequence @return last member of the sequence
src/main/java/org/maxicp/modeling/SeqVar.java:73
↓ 20 callers
Method
fillInsert
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 callers
Method
include
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 callers
Method
isAbsent
()
src/main/java/org/maxicp/modeling/algebra/scheduling/IntervalExpression.java:27
↓ 20 callers
Method
isRequired
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 callers
Method
addAll
(Collection<? extends E> c)
src/main/java/org/maxicp/util/ImmutableSet.java:88
↓ 19 callers
Method
assertSequenceState
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 callers
Method
endBeforeStart
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 callers
Method
exclude
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 callers
Method
hasEdge
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 callers
Method
height
()
src/main/java/org/maxicp/cp/engine/constraints/Profile.java:57
↓ 19 callers
Method
height
()
src/main/java/org/maxicp/cp/engine/constraints/scheduling/Profile.java:126
↓ 19 callers
Method
jumpTo
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 callers
Method
unimplementedCase
(Object... objects)
src/main/java/org/maxicp/modeling/xcsp3/XCallbacksDecomp.java:425
↓ 18 callers
Method
endMax
()
src/main/java/org/maxicp/modeling/algebra/scheduling/IntervalExpression.java:19
↓ 18 callers
Method
endMin
()
src/main/java/org/maxicp/modeling/algebra/scheduling/IntervalExpression.java:17
↓ 18 callers
Method
isOptional
()
src/main/java/org/maxicp/modeling/algebra/scheduling/IntervalExpression.java:29
↓ 18 callers
Method
nExcluded
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 callers
Method
noOverlap
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 callers
Method
resetPropagators
(AtomicBoolean ... bs)
src/test/java/org/maxicp/cp/engine/core/CPSeqVarTest.java:44
↓ 18 callers
Method
startMax
()
src/main/java/org/maxicp/modeling/algebra/scheduling/IntervalExpression.java:15
↓ 18 callers
Method
startMin
()
src/main/java/org/maxicp/modeling/algebra/scheduling/IntervalExpression.java:13
↓ 18 callers
Method
whenDomainChange
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 callers
Method
whenFixed
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 callers
Method
checkCorrectness
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 callers
Method
fds
(CPIntervalVar[] intervals)
src/main/java/org/maxicp/search/Searches.java:712
↓ 17 callers
Method
getConcreteVar
(IntExpression expr)
src/main/java/org/maxicp/modeling/concrete/ConcreteModel.java:25
↓ 17 callers
Method
safeMul
@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 callers
Method
startOr
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 callers
Method
status
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 callers
Method
test
()
src/test/java/org/maxicp/cp/engine/examples/raw/GuessTheNumberTest.java:26
↓ 17 callers
Method
union
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 callers
Method
addPhase
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 callers
Method
contains
Returns whether this expression can contain v.
src/main/java/org/maxicp/modeling/algebra/integer/IntExpression.java:30
↓ 16 callers
Method
createNode
(int id, int parentId, NodeType type)
src/main/java/org/maxicp/util/algo/Tree.java:26
← previous
next →
101–200 of 3,827, ranked by callers