Uses of Interface
org.maxicp.modeling.Constraint
Packages that use Constraint
Package
Description
Root package of MaxiCP
CP Instantiation of the Symbolic Modeling API
Symbolic Modeling API
Concrete modeling API
Symbolic constraints
Symbolic constraints for scheduling
Symbolic constraints for sequence variables
Symbolic modeling of integer variables and objective functions
-
Uses of Constraint in org.maxicp
Methods in org.maxicp that return types with arguments of type ConstraintModifier and TypeMethodDescriptionModelDispatcher.getConstraints()Shortcut for baseModel.getModel().getConstraints(); -
Uses of Constraint in org.maxicp.cp.modeling
Methods in org.maxicp.cp.modeling that return types with arguments of type ConstraintMethods in org.maxicp.cp.modeling with parameters of type ConstraintModifier and TypeMethodDescriptionvoidConcreteCPModel.add(Constraint c, boolean enforceFixPoint) -
Uses of Constraint in org.maxicp.modeling
Subinterfaces of Constraint in org.maxicp.modelingModifier and TypeInterfaceDescriptioninterfaceCustomConstraint<C extends ConcreteModel,P extends ConcreteConstraint<C>> This class should be used to implement custom constraints.Methods in org.maxicp.modeling that return ConstraintModifier and TypeMethodDescriptionstatic ConstraintFactory.allDifferent(IntExpression... x) Creates anAllDifferentconstraint ensuring that all expressions inxtake pairwise distinct values.static ConstraintFactory.alternative(IntervalVar real, IntExpression n, IntervalVar... alternatives) static ConstraintFactory.alternative(IntervalVar real, IntervalVar... alternatives) static ConstraintFactory.alwaysIn(CumulFunction expression, int heightMin, int heightMax) static ConstraintFactory.among(IntExpression[] x, Set<Integer> values, IntExpression count) static ConstraintFactory.binPacking(IntExpression[] x, int[] weights, IntExpression[] loads) static ConstraintFactory.cardinalityMax(IntExpression[] x, int[] maxCard) Creates aCardinalityMaxconstraint ensuring that each valuevappears at mostmaxCard[v]times inx.static ConstraintFactory.cardinalityMin(IntExpression[] x, int[] minCard) Creates aCardinalityMinconstraint ensuring that each valuevappears at leastminCard[v]times inx.static ConstraintFactory.circuit(IntExpression... x) Creates aCircuitconstraint ensuring that the successor arrayxforms a single Hamiltonian circuit.static ConstraintFactory.cumulative(IntExpression[] start, int[] duration, int[] demand, int capa) Creates aCumulativescheduling constraint with constant durations, demands, and capacity.static ConstraintFactory.cumulative(IntExpression[] start, IntExpression[] duration, IntExpression[] end, IntExpression[] demand, IntExpression capa) Creates aCumulativescheduling constraint with variable durations, ends, demands, and capacity.static ConstraintFactory.cumulative(SeqVar seqVar, int[] starts, int[] ends, int[] load, int capacity) Creates aCumulativeconstraint on a sequence variable.static ConstraintFactory.disjunctive(IntExpression[] start, int[] duration) Creates aDisjunctivescheduling constraint with constant activity durations.static ConstraintFactory.disjunctive(IntExpression[] start, IntExpression[] duration) Creates aDisjunctivescheduling constraint with variable activity durations.static ConstraintFactory.distance(SeqVar seqVar, int[][] distanceMatrix, IntExpression distance) Creates aDistanceconstraint on a sequence variable maintaining the total travel distance.static Constraintstatic Constraintstatic ConstraintFactory.le(CumulFunction function, int limit) static ConstraintFactory.length(IntervalVar var, int length) static ConstraintFactory.lexLe(IntExpression[] x, IntExpression[] y) Creates a non-strict lexicographic ordering constraintx <=_lex y.static ConstraintFactory.lexLt(IntExpression[] x, IntExpression[] y) Creates a strict lexicographic ordering constraintx <_lex y.static ConstraintFactory.negTable(IntExpression[] x, int[][] array, Optional<Integer> starred) Creates a negativeNegTableconstraint ensuring that the tuple assigned toxdoes not match any tuple inarray.static ConstraintFactory.noOverlap(IntervalVar... intervals) Creates aNoOverlapconstraint ensuring that the given interval variables do not overlap in time.static ConstraintFactory.noOverlap(IntervalVar[] intervals, IntExpression[] posOfInterval, IntExpression[] intervalInPos) Creates a noOverlap constraint with position variables and zero transition times.static ConstraintFactory.noOverlap(IntervalVar[] intervals, IntExpression[] posOfInterval, IntExpression[] intervalInPos, int[][] minTransition) Creates a noOverlap constraint with position variables and minimum transition times.static ConstraintFactory.notBetween(SeqVar seqVar, int pred, int node, int succ) Creates aNotBetweenconstraint forbiddingnodefrom being placed immediately betweenpredandsuccinseqVar.static Constraintstatic ConstraintFactory.start(IntervalVar var, int start) static ConstraintFactory.subCircuit(IntExpression... x) Creates aSubCircuitconstraint ensuring that the successor arrayxforms at most one circuit.static ConstraintFactory.table(IntExpression[] x, int[][] array, Optional<Integer> starred) static ConstraintFactory.transitionTimes(SeqVar seqVar, IntExpression[] time, int[][] dist) Creates aTransitionTimesconstraint linking visit times with transition distances inseqVar.static ConstraintFactory.transitionTimes(SeqVar seqVar, IntExpression[] time, int[][] dist, int[] serviceTime) Creates aTransitionTimesconstraint linking visit times with transition distances and service durations inseqVar.Methods in org.maxicp.modeling that return types with arguments of type ConstraintMethods in org.maxicp.modeling with parameters of type ConstraintModifier and TypeMethodDescriptiondefault voidModelProxy.add(Constraint c) default voidModelProxy.add(Constraint c, boolean enforceFixPoint) Shortcut for baseModel.getModel().add(c, enforceFixPoint); -
Uses of Constraint in org.maxicp.modeling.concrete
Methods in org.maxicp.modeling.concrete that return types with arguments of type ConstraintMethods in org.maxicp.modeling.concrete with parameters of type ConstraintModifier and TypeMethodDescriptiondefault voidConcreteModel.add(Constraint c) voidConcreteModel.add(Constraint c, boolean enforceFixPoint) voidConcreteModelProxy.add(Constraint c, boolean enforceFixPoint) -
Uses of Constraint in org.maxicp.modeling.constraints
Classes in org.maxicp.modeling.constraints that implement ConstraintModifier and TypeClassDescriptionfinal recordAllDifferent constraint ensuring that all expressions inxtake pairwise distinct values.final recordAmong constraint ensuring that exactlycountexpressions inxtake a value invalues.final recordBinPacking constraint.final recordUpper-bound cardinality constraint ensuring that each valuevin0..array.length - 1appears at mostarray[v]times inx.final recordLower-bound cardinality constraint ensuring that each valuevin0..array.length - 1appears at leastarray[v]times inx.final recordHamiltonian circuit constraint ensuring that the successor array forms a single Hamiltonian circuit visiting all nodes0..successor.length - 1.final recordCumulative scheduling constraint ensuring that at any point in time, the total resource demand of overlapping activities does not exceed the resource capacitycapa.final recordDisjunctive scheduling constraint ensuring that no two activities overlap in time.final recordConstraint enforcing that a boolean expressionexprevaluates totrue(1).final recordLexicographic ordering constraint enforcingx <=_lex y(orx <_lex yifstrictis true).final recordNegative table constraint ensuring that the tuple of values assigned toxdoes not match any forbidden tuple inarray.classA constraint that does nothing.final recordSorted constraint:yis the sorted version ofxwith position permutationo(i.e.final recordSubCircuit constraint ensuring that the successor array forms at most one circuit while nodes withsuccessor[i] == iare self-loops not part of the circuit.final recordPositive table constraint ensuring that the tuple of values assigned toxbelongs to the set of allowed tuples inarray. -
Uses of Constraint in org.maxicp.modeling.constraints.scheduling
Classes in org.maxicp.modeling.constraints.scheduling that implement ConstraintModifier and TypeClassDescriptionfinal recordExclusive alternative between intervals.final recordConstraint that enforces aCumulFunctionto remain within bounds at every point overlapping the execution of at least one interval.final recordConstraint fixing the length of an interval variable to a given constant value.final recordConstraint enforcing that a cumulative functionfunctionnever exceedslimitover its horizon.final recordDisjunctive scheduling constraint ensuring that no two present intervals inintervalsoverlap in time.final recordModeling-level constraint for no-overlap with position variables.final recordConstraint enforcing that an interval variableintervalVarmust be present.final recordSpan constraint between intervals.final recordConstraint fixing the start time of an interval variable to a given constant value.final recordConstraint enforcing that an interval variable starts at or after a given timestart. -
Uses of Constraint in org.maxicp.modeling.constraints.seqvar
Classes in org.maxicp.modeling.constraints.seqvar that implement ConstraintModifier and TypeClassDescriptionclassModeling-level cumulative constraint on a sequence variable (SeqVar), ensuring that the total load of active activities along the sequence never exceedscapacity.classModeling-level distance constraint on a sequence variable (SeqVar), maintaining the total travel distance between consecutive visited nodes in the sequence.final recordConstraint excluding a node from a sequence variable (SeqVar) so that it is not visited.final recordfinal recordConstraint forbiddingnodefrom being inserted immediately betweenprevandafterin a sequence variable (SeqVar).final recordPrecedence constraint on a sequence variable (SeqVar), ensuring that the givennodesappear in the specified relative order if visited in the sequence.final recordRequire a node to be visited within aSeqVarfinal recordConstraint ensuring that the sequencesubis a subsequence ofmain(all nodes visited insubare visited inmainin the same relative order).classModeling-level constraint linking a sequence variable (SeqVar) with visit time expressions, transition distances, and service durations. -
Uses of Constraint in org.maxicp.modeling.symbolic
Methods in org.maxicp.modeling.symbolic that return ConstraintModifier and TypeMethodDescriptionSymbolicModel.constraint()Returns the value of theconstraintrecord component.Methods in org.maxicp.modeling.symbolic that return types with arguments of type ConstraintMethods in org.maxicp.modeling.symbolic with parameters of type ConstraintModifier and TypeMethodDescriptionSymbolicModel.add(Constraint c) SymbolicModel.branch(Constraint... constraints) Returns the SymbolicModels that would be created by branching on the constraints given in parametersConstructors in org.maxicp.modeling.symbolic with parameters of type ConstraintModifierConstructorDescriptionSymbolicModel(Constraint constraint, SymbolicModel parent, ModelProxy modelProxy, List<List<IntExpression>> variableGroups) Creates an instance of aSymbolicModelrecord class.