Class RealDomainMiddle

  • All Implemented Interfaces:
    RealValueSelector

    public class RealDomainMiddle
    extends Object
    implements RealValueSelector
    Selects a real value at the middle between the lower and the upper bound of the variable
    Since:
    18/07/12
    Author:
    Charles Prud'homme
    • Constructor Detail

      • RealDomainMiddle

        public RealDomainMiddle()
    • Method Detail

      • selectValue

        public double selectValue​(RealVar var)
        Description copied from interface: RealValueSelector
        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 RealValueSelector
        Returns:
        the value, based on the domain of variable