Class INeighborFactory


  • public class INeighborFactory
    extends Object
    Factory to creates INeighbor objects that configures LNS
    Author:
    Charles Prud'homme, Jean-Guillaume Fages
    • Constructor Detail

      • INeighborFactory

        public INeighborFactory()
    • Method Detail

      • blackBox

        public static Neighbor blackBox​(IntVar... vars)
        Creates a black-box LNS neighbor
        Parameters:
        vars - the pool of variables to be freezed
        Returns:
        a black-box LNS neighbor
      • random

        public static Neighbor random​(IntVar... vars)
        Create a random neighborhood fixing variables randomly
        Parameters:
        vars - the pool of variables to be freezed
        Returns:
        a random neighborhood fixing variables randomly
      • propagationGuided

        public static Neighbor propagationGuided​(IntVar... vars)
        Create a propagation guided neighborhood fixing variables based on constraint propagation Based on "Propagation-Guided LNS", Perronn Shaw and Furnon, CP2004
        Parameters:
        vars - the pool of variables to be freezed
        Returns:
        a propagation-guided neighborhood
      • reversedPropagationGuided

        public static Neighbor reversedPropagationGuided​(IntVar... vars)
        Create a reverse propagation guided neighborhood fixing variables based on constraint propagation
        Parameters:
        vars - the pool of variables to be freezed
        Returns:
        a reverse propagation-guided neighborhood
      • explanationBased

        @Deprecated
        public static Neighbor explanationBased​(IntVar... vars)
        Deprecated.
        does nothing, will be removed in next version
      • sequencer

        public static Neighbor sequencer​(Neighbor... neighbors)
        Creates a composite Neighbor grouping a set of neighbors
        Parameters:
        neighbors - a set of neighbors to be grouped
        Returns:
        a composite Neighbor grouping a set of neighbors