Class AntiFirstFail

    • Constructor Detail

      • AntiFirstFail

        public AntiFirstFail​(Model model)
        First fail variable selector.
        Parameters:
        model - reference to the model (does not define the variable scope)
    • Method Detail

      • getVariable

        public IntVar getVariable​(IntVar[] variables)
        Description copied from interface: VariableSelector
        Provides access to the current selected variable among variables. If there is no variable left, return null.
        Specified by:
        getVariable in interface VariableSelector<IntVar>
        Returns:
        the current selected variable if any, null otherwise.
      • evaluate

        public double evaluate​(IntVar variable)
        Description copied from interface: VariableEvaluator
        Evaluates the heuristic that is minimized in order to find the best variable
        Specified by:
        evaluate in interface VariableEvaluator<IntVar>
        Parameters:
        variable - array of variable
        Returns:
        the result of the evaluation, to minimize