Class IntDomainMedian

  • All Implemented Interfaces:

    public class IntDomainMedian
    extends Object
    implements IntValueSelector
    Selects the median value in the variable domain. BEWARE: this should not be used within assignments and/or value removals if variables have a bounded domain.
    2 juil. 2010
    Charles Prud'homme
    • Constructor Detail

      • IntDomainMedian

        public IntDomainMedian()
    • Method Detail

      • selectValue

        public int selectValue​(IntVar var)
        Selects and returns the value to constrained chosen variable with. The chosen value must belong to the domain of variable.
        Specified by:
        selectValue in interface IntValueSelector
        the value, based on the domain of variable