Module org.maxicp

Class MaximumMatching

java.lang.Object
org.maxicp.cp.engine.constraints.MaximumMatching

public class MaximumMatching extends Object
Compute and Maintain a Maximum Matching in the variable-value graph
  • Field Details

  • Constructor Details

    • MaximumMatching

      public MaximumMatching(CPIntVar... x)
      Creates a maximum matching structure over the variable-value bipartite graph of x.
      Parameters:
      x - the array of variables
  • Method Details

    • compute

      public int compute(int[] result)