Class RealDecision

  • All Implemented Interfaces:
    Serializable, ICause

    public class RealDecision
    extends Decision<RealVar>
    A decision based on a RealVar that splits the domain in two ranges. The lower range is evaluated first, then the upper range.
    2 juil. 2010
    Charles Prud'homme
    See Also:
    Serialized Form
    • Constructor Detail

      • RealDecision

        public RealDecision​(PoolManager<RealDecision> poolManager)
        Create an decision based on an RealVar
        poolManager - decision pool manager, to recycle decisions
    • Method Detail

      • getDecisionValue

        public Double getDecisionValue()
        Description copied from class: Decision
        Return the value object involves in the decision
        Specified by:
        getDecisionValue in class Decision<RealVar>
        a value object
      • set

        public void set​(RealVar v,
                        double value,
                        double epsilon,
                        boolean leftFirst)
        Instantiate this decision with the parameters
        v - a variable
        value - a value
        epsilon - gap between value as upper bound and as lower bound (to simulate strictness)
        leftFirst - select left range first
      • free

        public void free()
        Description copied from class: Decision
        Free the decision, ie, it can be reused
        Specified by:
        free in class Decision<RealVar>