Class ActivityBased

    • Constructor Detail

      • ActivityBased

        public ActivityBased​(Model model,
                             IntVar[] vars,
                             double g,
                             double d,
                             int a,
                             int samplingIterationForced,
                             long seed)
      • ActivityBased

        public ActivityBased​(IntVar[] vars)
    • Method Detail

      • init

        public boolean init()
        Description copied from class: AbstractStrategy
        Prepare this to be used in a search loop The initialization can detect inconsistency, in that case, it returns false
        Overrides:
        init in class AbstractStrategy<IntVar>
      • computeDecision

        public Decision<IntVar> computeDecision​(IntVar variable)
        Description copied from class: AbstractStrategy
        Computes a decision to be applied to variable var This method should be implemented in order to use search patterns
        Overrides:
        computeDecision in class AbstractStrategy<IntVar>
        Parameters:
        variable - a variable
        Returns:
        a decision to be applied to variable var
      • getActivity

        public double getActivity​(IntVar var)
      • beforeDownBranch

        public void beforeDownBranch​(boolean left)
        Description copied from interface: IMonitorDownBranch
        Action to perform before going down in the tree search
        Specified by:
        beforeDownBranch in interface IMonitorDownBranch
        Parameters:
        left - set to true to specify that this is a left branch
      • afterDownBranch

        public void afterDownBranch​(boolean left)
        Description copied from interface: IMonitorDownBranch
        Action to perform after going down in the tree search
        Specified by:
        afterDownBranch in interface IMonitorDownBranch
        Parameters:
        left - set to true to specify that this is a left branch