Package

de.sciss

poirot

Permalink

package poirot

Package for defining variables, constraints, global constraints and search methods for JaCoP constraint solver in Scala.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. poirot
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class BooleanVar extends IntVar

    Permalink

    Defines a boolean variable and its primitive constraints.

  2. class DoubleVar extends FloatVar

    Permalink

    A floating point variable and its primitive constraints.

  3. class FSM extends org.jacop.util.fsm.FSM

    Permalink

    FSM specification for regular constraint.

  4. class IndomainRandom[A <: IntVar] extends Indomain[A]

    Permalink

    Like IndomainRandom but with explicit random generator argument.

  5. class IntSet extends IntervalDomain

    Permalink

    Defines an ordered set of integers and basic operations on these sets.

  6. class IntVar extends org.jacop.core.IntVar

    Permalink

    Defines a finite domain integer variable and its primitive constraints.

  7. class Model extends Store

    Permalink

    Manages all variables, constraints and global constraints for JaCoP constraint solver.

  8. class Network extends NetworkBuilder

    Permalink

    Network specification for networkflow constraint

  9. trait Problem extends AnyRef

    Permalink
  10. class ScalaSolutionListener[A <: Var] extends SimpleSolutionListener[A]

    Permalink

    Solution listener that prints solutions of search using user specified functions.

  11. class SetVar extends org.jacop.set.core.SetVar

    Permalink

    Defines a set variable and its primitive constraints.

  12. case class Stats(nodes: Int, decisions: Int, wrong: Int, backtracks: Int, depth: Int, solutions: Int) extends Product with Serializable

    Permalink
  13. type Vec[+A] = IndexedSeq[A]

    Permalink

Value Members

  1. def AND(xs: PrimitiveConstraint*)(implicit model: Model): PrimitiveConstraint

    Permalink

    Wrapper for org.jacop.constraints.And.

    Wrapper for org.jacop.constraints.And.

    xs

    constraints to be conjunction.

    returns

    the constraint that is a a conjunction of constraints.

  2. object BooleanVar

    Permalink
  3. object DoubleVar

    Permalink
  4. object FSM

    Permalink
  5. object Implicits

    Permalink

    Implicit conversions of Int and Bool to IntVar and BoolVar.

    Implicit conversions of Int and Bool to IntVar and BoolVar. Used in overloaded operators.

  6. object IntSet

    Permalink
  7. object IntVar

    Permalink
  8. object Model

    Permalink
  9. def NOT(constr: PrimitiveConstraint)(implicit model: Model): PrimitiveConstraint

    Permalink

    Wrapper for org.jacop.constraints.Not.

    Wrapper for org.jacop.constraints.Not.

    constr

    constraints to be negated.

    returns

    the negated constraint.

  10. object Network

    Permalink
  11. def OR(list: PrimitiveConstraint*)(implicit model: Model): PrimitiveConstraint

    Permalink

    Wrapper for org.jacop.constraints.Or.

    Wrapper for org.jacop.constraints.Or.

    list

    constraints to be disjunction.

    returns

    the constraint that is a a disjunction of constraints.

  12. val Vec: IndexedSeq.type

    Permalink
  13. def abs(a: DoubleVar)(implicit model: Model): DoubleVar

    Permalink

    Wrapper for org.jacop.floats.constraints.AbsPeqR.

    Wrapper for org.jacop.floats.constraints.AbsPeqR.

    a

    a DoubleVar variable.

    returns

    absolute value of the variable.

  14. def abs(x: IntVar)(implicit model: Model): IntVar

    Permalink

    Wrapper for org.jacop.constraints.AbsXeqY.

    Wrapper for org.jacop.constraints.AbsXeqY.

    x

    variable for abs operation.

    returns

    absolute value result.

  15. def acos(a: DoubleVar)(implicit model: Model): DoubleVar

    Permalink

    Wrapper for org.jacop.floats.constraints.AcosPeqR.

    Wrapper for org.jacop.floats.constraints.AcosPeqR.

    a

    a DoubleVar variable.

    returns

    value of arc-cosine function the variable.

  16. def allDifferent(xs: IntVar*)(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.constraints.Alldiff.

    Wrapper for org.jacop.constraints.Alldiff.

    xs

    set of variables to be different.

  17. def allDistinct(xs: IntVar*)(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.constraints.Alldistinct.

    Wrapper for org.jacop.constraints.Alldistinct.

    xs

    set of variables to be different.

  18. def among(listX: Array[IntVar], listY: Array[IntVar], n: IntVar)(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.constraints.AmongVar.

    Wrapper for org.jacop.constraints.AmongVar.

    XXX TODO: remove arrays, unify sequences, rename to assignAmong, add proper among

    listX

    array of variables.

    listY

    array of variables to be checked if their values .

    n

    number of values found.

  19. def among(xs: Iterable[IntVar], kSet: IntSet, n: IntVar)(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.constraints.Among.

    Wrapper for org.jacop.constraints.Among.

    XXX TODO: rename to assignAmong, add proper among

    xs

    variables.

    kSet

    values to be checked.

    n

    number of values found.

  20. def antiFirstFail[A <: Var]: LargestDomain[A]

    Permalink

    Wrapper for org.jacop.search.LargestDomain.

    Wrapper for org.jacop.search.LargestDomain.

    returns

    related variable selection method.

  21. def antiFirstFailSet[A <: org.jacop.set.core.SetVar]: MaxCardDiff[A]

    Permalink

    Wrapper for org.jacop.set.search.MaxCardDiff.

    Wrapper for org.jacop.set.search.MaxCardDiff.

    returns

    related variable selection method.

  22. def asin(a: DoubleVar)(implicit model: Model): DoubleVar

    Permalink

    Wrapper for org.jacop.floats.constraints.AsinPeqR.

    Wrapper for org.jacop.floats.constraints.AsinPeqR.

    a

    a DoubleVar variable.

    returns

    value of arc-sine function the variable.

  23. def assignment(x: Array[IntVar], y: Array[IntVar])(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.constraints.Assignment.

    Wrapper for org.jacop.constraints.Assignment.

    XXX TODO: remove arrays, unify sequences

    x

    array of variables.

    y

    array variables that values are permutation of x.

  24. def atan(a: DoubleVar)(implicit model: Model): DoubleVar

    Permalink

    Wrapper for org.jacop.floats.constraints.AtanPeqR.

    Wrapper for org.jacop.floats.constraints.AtanPeqR.

    a

    a DoubleVar variable.

    returns

    value of arc-tangent function the variable.

  25. def binPacking(bins: (IntVar, IntVar, Int)*)(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.constraints.binpacking.Binpacking.

    Wrapper for org.jacop.constraints.binpacking.Binpacking.

    bins

    list containing which tuples of bins, their loads and their weights

  26. def booleanVarAt(index: IntVar, xs: Seq[IntVar], offset: Int = 0)(implicit model: Model): BooleanVar

    Permalink
  27. def card(s: SetVar, n: Int)(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.set.constraints.CardA.

    Wrapper for org.jacop.set.constraints.CardA.

    s

    constrained set variable.

    n

    cardinality.

  28. def card(s: SetVar)(implicit model: Model): IntVar

    Permalink

    Wrapper for org.jacop.set.constraints.CardAeqX.

    Wrapper for org.jacop.set.constraints.CardAeqX.

    s

    constrained set variable.

    returns

    variable defining cardinality of s.

  29. def circuit(nodes: Iterable[IntVar])(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.constraints.Circuit.

    Wrapper for org.jacop.constraints.Circuit.

    nodes

    variables, which domains define next nodes in the graph.

  30. def cos(a: DoubleVar)(implicit model: Model): DoubleVar

    Permalink

    Wrapper for org.jacop.floats.constraints.CosPeqR.

    Wrapper for org.jacop.floats.constraints.CosPeqR.

    a

    a DoubleVar variable.

    returns

    value of cosine function the variable.

  31. def count(xs: Iterable[IntVar], value: Int)(implicit model: Model): IntVar

    Permalink

    Wrapper for org.jacop.constraints.Count.

    Wrapper for org.jacop.constraints.Count.

    xs

    variables to count number of values value.

    returns

    number of values value.

  32. def cumulative(xs: Iterable[(IntVar, IntVar, IntVar)], limit: IntVar)(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.constraints.Cumulative.

    Wrapper for org.jacop.constraints.Cumulative.

    xs

    tuples consisting of (t, d, r), where t is start times of tasks, d is duration of tasks, r is number of resources of tasks.

    limit

    limit on number of resources used in a schedule.

  33. def dfs[A <: Var](all: Boolean): DepthFirstSearch[A]

    Permalink

    Depth first search method.

    Depth first search method.

    returns

    standard depth first search.

  34. def diff2(rectangles: Vec[Vec[IntVar]])(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.constraints.Diff2.

    Wrapper for org.jacop.constraints.Diff2.

    rectangles

    sequence of four element vectors representing rectangles [x, y, lx, ly]

  35. def diff2(x: Array[IntVar], y: Array[IntVar], lx: Array[IntVar], ly: Array[IntVar])(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.constraints.Diff2.

    Wrapper for org.jacop.constraints.Diff2.

    XXX TODO: remove arrays, unify sequences

    x

    coordinate X of rectangle.

    y

    coordinate Y of rectangle.

    lx

    length in derection X of rectangle.

    ly

    length in derection Y of rectangle.

  36. def doubleAt(index: IntVar, xs: Seq[Double], offset: Int = 0)(implicit model: Model): DoubleVar

    Permalink
  37. def exp(a: DoubleVar)(implicit model: Model): DoubleVar

    Permalink

    Wrapper for org.jacop.floats.constraints.ExpPeqR.

    Wrapper for org.jacop.floats.constraints.ExpPeqR.

    a

    a DoubleVar variable.

    returns

    value of exponential function the variable.

  38. def firstFail[A <: Var]: SmallestDomain[A]

    Permalink

    Wrapper for org.jacop.search.SmallestDomain.

    Wrapper for org.jacop.search.SmallestDomain.

    returns

    related variable selection method.

  39. def firstFailSet[A <: org.jacop.set.core.SetVar]: MinCardDiff[A]

    Permalink

    Wrapper for org.jacop.set.search.MinCardDiff.

    Wrapper for org.jacop.set.search.MinCardDiff.

    returns

    related variable selection method.

  40. def gcc(xs: Iterable[(IntVar, IntVar)])(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.constraints.GCC (global cardinality constraint).

    Wrapper for org.jacop.constraints.GCC (global cardinality constraint).

    xs

    array of tuples of variables and their counters

  41. def indomainMax[A <: org.jacop.core.IntVar]: IndomainMax[A]

    Permalink

    Wrapper for org.jacop.search.IndomainMax.

    Wrapper for org.jacop.search.IndomainMax.

    returns

    related variable selection method.

  42. def indomainMaxSet[A <: org.jacop.set.core.SetVar]: IndomainSetMax[A]

    Permalink

    Wrapper for org.jacop.set.search.IndomainSetMax.

    Wrapper for org.jacop.set.search.IndomainSetMax.

    returns

    related indomain method.

  43. def indomainMedian[A <: org.jacop.core.IntVar]: IndomainMedian[A]

    Permalink

    Wrapper for org.jacop.search.IndomainMedian.

    Wrapper for org.jacop.search.IndomainMedian.

    returns

    related variable selection method.

  44. def indomainMiddle[A <: org.jacop.core.IntVar]: IndomainMiddle[A]

    Permalink

    Wrapper for org.jacop.search.IndomainMiddle.

    Wrapper for org.jacop.search.IndomainMiddle.

    returns

    related variable selection method.

  45. def indomainMin[A <: org.jacop.core.IntVar]: IndomainMin[A]

    Permalink

     Wrapper for org.jacop.search.IndomainMin.

     Wrapper for org.jacop.search.IndomainMin.

    returns

    related variable selection method.

  46. def indomainMinSet[A <: org.jacop.set.core.SetVar]: IndomainSetMin[A]

    Permalink

    Wrapper for org.jacop.set.search.IndomainSetMin.

    Wrapper for org.jacop.set.search.IndomainSetMin.

    returns

    related indomain method.

  47. def indomainRandom[A <: IntVar](r: Random = new util.Random()): IndomainRandom[A]

    Permalink

    Wrapper for org.jacop.search.IndomainRandom.

    Wrapper for org.jacop.search.IndomainRandom.

    returns

    related variable selection method.

  48. def indomainRandomSet[A <: org.jacop.set.core.SetVar]: IndomainSetRandom[A]

    Permalink

    Wrapper for org.jacop.set.search.IndomainSetRandom.

    Wrapper for org.jacop.set.search.IndomainSetRandom.

    returns

    related indomain method.

  49. def inputOrder[A <: Var]: ComparatorVariable[A]

    Permalink

    Defines null variable selection method that is interpreted by JaCoP as input order.

    Defines null variable selection method that is interpreted by JaCoP as input order.

    XXX TODO: ugly null; ought to use place holder value

    returns

    related variable selection method.

  50. def intAt(index: IntVar, xs: Seq[Int], offset: Int = 0)(implicit model: Model): IntVar

    Permalink

    Wrapper for org.jacop.constraints.Element.

    Wrapper for org.jacop.constraints.Element.

    index

    index to select element from list of elements.

    xs

    sequence of integers that can be assigned to values.

    offset

    value of index offset (shift).

    returns

    the variable yielding the element at the given index

  51. def intVarAt(index: IntVar, xs: Seq[IntVar], offset: Int = 0)(implicit model: Model): IntVar

    Permalink
  52. def knapsack(profits: Array[Int], weights: Array[Int], quantity: List[IntVar], knapsackCapacity: IntVar, knapsackProfit: IntVar)(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.constraints.knapsack.Knapsack.

    Wrapper for org.jacop.constraints.knapsack.Knapsack.

    XXX TODO: replace arrays, unify tuples

    profits

    array of profite for items.

    weights

    array of weights for items.

    quantity

    array of quantities of items.

    knapsackCapacity

    knapsack capacity.

    knapsackProfit

    profite when selling items.

  53. def largest[A <: org.jacop.core.IntVar]: LargestMax[A]

    Permalink

    Wrapper for org.jacop.search.LargestMax.

    Wrapper for org.jacop.search.LargestMax.

    returns

    related variable selection method.

  54. def lex(x: Array[Array[IntVar]])(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.constraints.Lex.

    Wrapper for org.jacop.constraints.Lex.

    x

    array of vectors of variables to be lexicographically ordered.

  55. def linear(res: Iterable[DoubleVar], weight: Iterable[Double], result: Double)(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.floats.constraints.LinearFloat.

    Wrapper for org.jacop.floats.constraints.LinearFloat.

    res

    array of variables to be summed up.

    returns

    summation result.

  56. def ln(a: DoubleVar)(implicit model: Model): DoubleVar

    Permalink

    Wrapper for org.jacop.floats.constraints.LnPeqR.

    Wrapper for org.jacop.floats.constraints.LnPeqR.

    a

    a DoubleVar variable.

    returns

    value of natural logarithm function the variable.

  57. def matching[A <: org.jacop.core.IntVar](a: SetVar, list: Iterable[A])(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.set.constraints.Match.

    Wrapper for org.jacop.set.constraints.Match.

    a

    a set variable to be matched against list of IntVar.

    list

    variables that get values from the set.

  58. def max(xs: IntVar*)(implicit model: Model): IntVar

    Permalink

    Wrapper for org.jacop.constraints.Max.

    Wrapper for org.jacop.constraints.Max.

    xs

    variables where maximum values is to be found.

    returns

    max value.

  59. var maxNumSolutions: Int

    Permalink

    The maximum number of solutions to be explored.

    The maximum number of solutions to be explored. -1 indicates that there is no limit.

  60. def maxRegret[A <: org.jacop.core.IntVar]: MaxRegret[A]

    Permalink

    Wrapper for org.jacop.search.MaxRegret.

    Wrapper for org.jacop.search.MaxRegret.

    returns

    related variable selection method.

  61. def maximize[A <: Var](select: SelectChoicePoint[A], cost: DoubleVar, printSolutions: () ⇒ Unit*)(implicit m: ClassTag[A], model: Model): Boolean

    Permalink

    Maximization search method.

    Maximization search method.

    select

    select method defining variable selection and value assignment methods.

    cost

    Cost variable

    returns

    true if solution found and false otherwise.

  62. def maximize[A <: Var](select: SelectChoicePoint[A], cost: IntVar, printSolutions: () ⇒ Unit*)(implicit m: ClassTag[A], model: Model): Boolean

    Permalink

    Maximization search method.

    Maximization search method.

    select

    select method defining variable selection and value assignment methods.

    cost

    Cost variable

    returns

    true if solution found and false otherwise.

  63. def maximizeSeq[A <: Var](select: Iterable[SelectChoicePoint[A]], cost: IntVar, printSolutions: () ⇒ Unit*)(implicit m: ClassTag[A], model: Model): Boolean

    Permalink

    Maximization method for sequence of search methods (specified by list of select methods).

    Maximization method for sequence of search methods (specified by list of select methods).

    select

    list of select methods defining variable selection and value assignment methods for sequence of searchs.

    cost

    Cost variable

    returns

    true if solution found and false otherwise.

  64. def min(xs: IntVar*)(implicit model: Model): IntVar

    Permalink

    Wrapper for org.jacop.constraints.Min.

    Wrapper for org.jacop.constraints.Min.

    xs

    variables where minimum values is to be found.

    returns

    minimum value.

  65. def minGLBCard[A <: org.jacop.set.core.SetVar]: MinGlbCard[A]

    Permalink

    Wrapper for org.jacop.set.search.MinGlbCard.

    Wrapper for org.jacop.set.search.MinGlbCard.

    returns

    related variable selection method.

  66. def minLUBCard[A <: org.jacop.set.core.SetVar]: MinLubCard[A]

    Permalink

    Wrapper for org.jacop.set.search.MinLubCard.

    Wrapper for org.jacop.set.search.MinLubCard.

    returns

    related variable selection method.

  67. def minimize[A <: Var](select: SelectChoicePoint[A], cost: DoubleVar, printSolutions: () ⇒ Unit*)(implicit m: ClassTag[A], model: Model): Boolean

    Permalink

    Minimization search method.

    Minimization search method.

    select

    select method defining variable selection and value assignment methods.

    cost

    Cost variable

    returns

    true if solution found and false otherwise.

  68. def minimize[A <: Var](select: SelectChoicePoint[A], cost: IntVar, printSolutions: () ⇒ Unit*)(implicit m: ClassTag[A], model: Model): Boolean

    Permalink

    Minimization search method.

    Minimization search method.

    select

    select method defining variable selection and value assignment methods.

    cost

    Cost variable

    returns

    true if solution found and false otherwise.

  69. def minimizeSeq[A <: Var](select: Iterable[SelectChoicePoint[A]], cost: IntVar, printSolutions: () ⇒ Unit*)(implicit m: ClassTag[A], model: Model): Boolean

    Permalink

    Minimization method for sequence of search methods (specified by list of select methods).

    Minimization method for sequence of search methods (specified by list of select methods).

    select

    list of select methods defining variable selection and value assignment methods for sequence of searchs.

    cost

    Cost variable

    returns

    true if solution found and false otherwise.

  70. def mostConstrained[A <: Var]: MostConstrainedStatic[A]

    Permalink

    Wrapper for org.jacop.search.MostConstrainedStatic.

    Wrapper for org.jacop.search.MostConstrainedStatic.

    returns

    related variable selection method.

  71. def mostConstrainedSet[A <: org.jacop.set.core.SetVar]: MostConstrainedStatic[A]

    Permalink

    Wrapper for org.jacop.search.MostConstrainedStatic.

    Wrapper for org.jacop.search.MostConstrainedStatic.

    returns

    related variable selection method.

  72. def networkFlow(net: NetworkBuilder)(implicit model: Model): Unit

    Permalink
  73. def numDistinct(xs: Iterable[IntVar])(implicit model: Model): IntVar

    Permalink

    Wrapper for org.jacop.constraints.Values.

    Wrapper for org.jacop.constraints.Values.

    xs

    variables to count number of different values.

    returns

    number of different values.

  74. var recordSolutions: Boolean

    Permalink
  75. def regular(dfa: FSM, vars: Iterable[IntVar])(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.constraints.regular.Regular.

    Wrapper for org.jacop.constraints.regular.Regular.

    dfa

    specification of finite state machine using class fsm.

    vars

    list of variables assigned to fsm nodes.

  76. def satisfy[A <: Var](select: SelectChoicePoint[A], printSolutions: () ⇒ Unit*)(implicit m: ClassTag[A], model: Model): Boolean

    Permalink

    Search method that finds a solution.

    Search method that finds a solution.

    select

    select method defining variable selection and value assignment methods.

    returns

    true if solution found and false otherwise.

  77. def satisfyAll[A <: Var](select: SelectChoicePoint[A], printSolutions: () ⇒ Unit*)(implicit m: ClassTag[A], model: Model): Boolean

    Permalink

    Search method that finds all solutions.

    Search method that finds all solutions.

    select

    select method defining variable selection and value assignment methods.

    returns

    true if solution found and false otherwise.

  78. def satisfyAllSeq[A <: Var](select: Iterable[SelectChoicePoint[A]], printSolutions: () ⇒ Unit*)(implicit m: ClassTag[A], model: Model): Boolean

    Permalink

    Search method for finding all solutions using a sequence of search methods (specified by list of select methods).

    Search method for finding all solutions using a sequence of search methods (specified by list of select methods).

    select

    list of select methods defining variable selection and value assignment methods for sequence of searchs.

    returns

    true if solution found and false otherwise.

  79. def satisfySeq[A <: Var](select: Iterable[SelectChoicePoint[A]], printSolutions: () ⇒ Unit*)(implicit m: ClassTag[A], model: Model): Boolean

    Permalink

    Search method for finding a solution using a sequence of search methods (specified by list of select methods).

    Search method for finding a solution using a sequence of search methods (specified by list of select methods).

    select

    list of select methods defining variable selection and value assignment methods for sequence of searchs.

    returns

    true if solution found and false otherwise.

  80. def search[A <: Var](vars: Iterable[A], heuristic: ComparatorVariable[A], indom: Indomain[A])(implicit m: ClassTag[A]): SelectChoicePoint[A]

    Permalink

    Defines list of variables, their selection method for search and value selection

    Defines list of variables, their selection method for search and value selection

    returns

    select method for search.

  81. def searchDouble[T <: FloatVar](vars: Iterable[T], heuristic: ComparatorVariable[T])(implicit model: Model, m: ClassTag[T]): SelectChoicePoint[T]

    Permalink

    Defines list of variables, their selection method for split search and value selection

    Defines list of variables, their selection method for split search and value selection

    returns

    select method for search.

  82. def searchSplit[A <: org.jacop.core.IntVar](vars: Iterable[A], heuristic: ComparatorVariable[A])(implicit m: ClassTag[A]): SelectChoicePoint[A]

    Permalink

    Defines list of variables, their selection method for split search and value selection

    Defines list of variables, their selection method for split search and value selection

    returns

    select method for search.

  83. def searchVector[A <: Var](vars: Vec[Vec[A]], heuristic: ComparatorVariable[A], indom: Indomain[A])(implicit m: ClassTag[A]): SelectChoicePoint[A]

    Permalink

    Defines list of variables, their selection method for sequential search and value selection

    Defines list of variables, their selection method for sequential search and value selection

    returns

    select method for search.

  84. def sequence(list: Array[IntVar], set: IntSet, q: Int, min: Int, max: Int)(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.constraints.Sequence.

    Wrapper for org.jacop.constraints.Sequence.

    list

    list of variables to be constrained.

    set

    set of values to be checked.

    q

    length of the sub-sequence.

    min

    minimal number of occurrences of values in the sub-sequence.

    max

    maximal number of occurrences of values in the sub-sequence.

  85. def sin(a: DoubleVar)(implicit model: Model): DoubleVar

    Permalink

    Wrapper for org.jacop.floats.constraints.SinPeqR.

    Wrapper for org.jacop.floats.constraints.SinPeqR.

    a

    a DoubleVar variable.

    returns

    value of sinus function the variable.

  86. def smallest[A <: org.jacop.core.IntVar]: SmallestMin[A]

    Permalink

    Wrapper for org.jacop.search.SmallestMin.

    Wrapper for org.jacop.search.SmallestMin.

    returns

    related variable selection method.

  87. def smallestMin[A <: org.jacop.core.IntVar]: SmallestMin[A]

    Permalink

    Wrapper for org.jacop.search.SmallestMin.

    Wrapper for org.jacop.search.SmallestMin.

    returns

    related variable selection method.

  88. def smallestSet[A <: org.jacop.set.core.SetVar]: MinGlbCard[A]

    Permalink

    Currently equivalent to minGLBCard.

    Currently equivalent to minGLBCard.

    returns

    related variable selection method.

  89. def softAllDifferent(xVars: Array[IntVar], costVar: IntVar)(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.constraints.SoftAlldifferent.

    Wrapper for org.jacop.constraints.SoftAlldifferent.

    xVars

    array of variables to be constrained to be different.

    costVar

    measures degree of violation (uses value based violation).

  90. def softGCC(xVars: Array[IntVar], hardLowerBound: Array[Int], hardUpperBound: Array[Int], countedValue: Array[Int], softCounters: Array[IntVar], costVar: IntVar)(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.constraints.SoftGCC.

    Wrapper for org.jacop.constraints.SoftGCC.

    xVars

    array of variables to be constrained to be different.

    hardLowerBound

    lower bound on limits that can not be violated.

    hardUpperBound

    upper bound on limits that can not be violated

    countedValue

    values that are counted.

    softCounters

    specifies preferred values for counters and can be violated.

  91. def sqrt(a: DoubleVar)(implicit model: Model): DoubleVar

    Permalink

    Wrapper for org.jacop.floats.constraints.SqrtPeqR.

    Wrapper for org.jacop.floats.constraints.SqrtPeqR.

    a

    a DoubleVar variable.

    returns

    value of square root function the variable.

  92. def stretch(values: Array[Int], min: Array[Int], max: Array[Int], x: Array[IntVar])(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.constraints.Stretch.

    Wrapper for org.jacop.constraints.Stretch.

    values

    a list of values to be assigned to sub-sequences.

    min

    minimal length of the sub-sequence for each value on position i.

    max

    maximal length of the sub-sequence for each value on position i.

    x

    list of variables to be constrained.

  93. def sum(res: Iterable[DoubleVar])(implicit model: Model): DoubleVar

    Permalink

    Wrapper for org.jacop.floats.constraints.LinearFloat.

    Wrapper for org.jacop.floats.constraints.LinearFloat.

    res

    array of variables to be summed up.

    returns

    summation result.

  94. def sum(res: Iterable[IntVar])(implicit model: Model): IntVar

    Permalink
  95. def table(list: Iterable[(IntVar, Iterable[Int])])(implicit model: Model): Unit

    Permalink

    Wrapper for org.jacop.constraints.ExtensionalSupportVA.

    Wrapper for org.jacop.constraints.ExtensionalSupportVA.

    XXX TODO: rename to assignTable, add proper table

    list

    sequence of tuples consisting of variables and sequences of allowed values be assigned

  96. def tan(a: DoubleVar)(implicit model: Model): DoubleVar

    Permalink

    Wrapper for org.jacop.floats.constraints.TanPeqR.

    Wrapper for org.jacop.floats.constraints.TanPeqR.

    a

    a DoubleVar variable.

    returns

    value of tangent function the variable.

  97. var timeOut: Int

    Permalink

    The search time out in seconds.

    The search time out in seconds. -1 indicates that there is no time out.

  98. var trace: Boolean

    Permalink
  99. def weightedSum(res: Iterable[DoubleVar], weight: Iterable[Double])(implicit model: Model): DoubleVar

    Permalink

    Wrapper for org.jacop.floats.constraints.LinearFloat.

    Wrapper for org.jacop.floats.constraints.LinearFloat.

    res

    array of variables to be summed up.

    returns

    summation result.

  100. def weightedSum(tup: Iterable[(IntVar, Int)])(implicit model: Model): IntVar

    Permalink

    Wrapper for org.jacop.constraints.SumWeight.

    Wrapper for org.jacop.constraints.SumWeight.

    tup

    tuples of variables to sum and their weights

    returns

    summation result.

  101. def withStatistics[Z](block: ⇒ Z): (Z, Stats)

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped