choco.cp.solver.constraints.integer.intlincomb.policy
Class ForSum

java.lang.Object
  extended by choco.cp.solver.constraints.integer.intlincomb.policy.CoeffPolicy
      extended by choco.cp.solver.constraints.integer.intlincomb.policy.ForSum

public final class ForSum
extends CoeffPolicy

User : cprudhom
Mail : cprudhom(a)emn.fr
Date : 11 mars 2010
Since : Choco 2.1.1


Method Summary
 int computeLowerBound()
          Computes a lower bound estimate of a linear combination of variables.
 int computeUpperBound()
          Computes an upper bound estimate of a linear combination of variables.
 int getInfNV(int i, int mylb)
           
 int getInfPV(int i, int myub)
           
 int getSupNV(int i, int myub)
           
 int getSupPV(int i, int mylb)
           
 
Methods inherited from class choco.cp.solver.constraints.integer.intlincomb.policy.CoeffPolicy
build
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInfNV

public int getInfNV(int i,
                    int mylb)
Specified by:
getInfNV in class CoeffPolicy

getInfPV

public int getInfPV(int i,
                    int myub)
Specified by:
getInfPV in class CoeffPolicy

getSupNV

public int getSupNV(int i,
                    int myub)
Specified by:
getSupNV in class CoeffPolicy

getSupPV

public int getSupPV(int i,
                    int mylb)
Specified by:
getSupPV in class CoeffPolicy

computeLowerBound

public int computeLowerBound()
Description copied from class: CoeffPolicy
Computes a lower bound estimate of a linear combination of variables.

Specified by:
computeLowerBound in class CoeffPolicy
Returns:
the new lower bound value

computeUpperBound

public int computeUpperBound()
Description copied from class: CoeffPolicy
Computes an upper bound estimate of a linear combination of variables.

Specified by:
computeUpperBound in class CoeffPolicy
Returns:
the new upper bound value


Copyright © 2012. All Rights Reserved.