Go to the documentation of this file.
36 #define BCPS_NONREMOVALBE 0x0001
37 #define BCPS_BRACNEDON 0x0010
38 #define BCPS_SENDABLE 0x0100
279 double &ceilingValue,
281 double tolerance)
const;
BcpsConstraint()
Default constructor.
void setRepType(BcpsObjRep_t rt)
double getEffectiveness() const
virtual BcpsObject_t getObjType() const
A class for describing the objects that comprise a BCPS subproblem.
void setIntType(BcpsIntegral_t it)
BcpsObjRep_t getRepType() const
BcpsConstraint(double lbh, double ubh, double lbs, double ubs)
Useful constructor.
double effectiveness_
Effectiveness: nonnegative value.
virtual void hashing(BcpsModel *model=NULL)
Hashing.
virtual double infeasibility(BcpsModel *m, int &preferredWay) const
Infeasibility of the object This is some measure of the infeasibility of the object.
BcpsValidRegion validRegion_
Valid in the whole tree or only the subtree rooted at the node that generate this object.
double hashValue_
The hash value of this object.
void setNumInactive(int num)
virtual void floorCeiling(double &floorValue, double &ceilingValue, double value, double tolerance) const
Returns floor and ceiling i.e.
int objectIndex_
Global index of this object.
int getNumInactive() const
void setEffectiveness(double eff)
virtual BcpsObject_t getObjType() const
void setType(KnowledgeType t)
virtual BcpsBranchObject * createBranchObject(BcpsModel *m, int way) const
Create a branching object and indicate which way to branch first.
BcpsBranchObject contains the member data required when choosing branching entities and excuting actu...
BcpsConstraint(const BcpsConstraint &rhs)
Copy constructor.
double ubSoft_
The current upper bound of the object.
AlpsEncoded & writeRep(const T &value)
virtual BcpsBranchObject * notPreferredNewFeasible(BcpsModel *m) const
Given a valid solution (with reduced costs, etc.), return a branching object which would give a new f...
virtual double downEstimate() const
Return "down" estimate.
AlpsEncoded & readRep(T &value)
BcpsIntegral_t getIntType() const
virtual AlpsEncoded * encode() const
virtual AlpsReturnStatus encode(AlpsEncoded *encoded)
Pack into a encode object.
BcpsVariable(const BcpsVariable &rhs)
Copy constructor.
AlpsReturnStatus encodeBcpsObject(AlpsEncoded *encoded) const
Pack Bcps part to a encode object.
void setUbSoft(double ub)
virtual void feasibleRegion(BcpsModel *m)
Look at the current solution and set bounds to match the solution.
int getObjectIndex() const
Return the value of the appropriate field.
void setObjectIndex(int ind)
Set the appropriate property.
@ BcpsKnowledgeTypeVariable
void setLbHard(double lb)
char BcpsIntegral_t
typedef's for various integral types.
BcpsObject * BcpsObject_p
double lbSoft_
The current lower bound of the object.
void setValidRegion(BcpsValidRegion val)
BcpsObject & operator=(const BcpsObject &rhs)
Assignment operator.
virtual ~BcpsVariable()
Destructor.
virtual BcpsBranchObject * preferredNewFeasible(BcpsModel *m) const
Given a valid solution (with reduced costs, etc.), return a branching object which would give a new f...
void setLbSoft(double lb)
BcpsObject(double lbh, double ubh, double lbs, double ubs)
int numInactive_
Number of inactive when in formulation.
AlpsReturnStatus decodeBcpsObject(AlpsEncoded &encoded)
Unpack Bcps part from a encode object.
virtual ~BcpsConstraint()
Desctructor constructor.
BcpsObject(const BcpsObject &rhs)
Copy constructor.
BcpsObjRep_t
The possible representations types of an object.
virtual AlpsKnowledge * decode(AlpsEncoded &encoded) const
Decode a constraint from an encoded object.
BcpsValidRegion getValidRegion() const
BcpsIntegral_t intType_
The integrality type of the object, i.e., what values it can take up between the specified bounds.
virtual double upEstimate() const
Return "up" estimate.
@ BcpsKnowledgeTypeConstraint
virtual BcpsObject * clone() const
Clone an enity.
BcpsObject_t
The possible types of an object: primal or dual (i.e., variable or constraint.
void setUbHard(double ub)
BcpsVariable()
Default constructor.
double lbHard_
The lower bound of the object when it was first created.
int status_
The status of the object.
virtual void resetBounds(BcpsModel *m)
Reset variable bounds to their original values.
double ubHard_
The upper bound of the object when it was first created.
virtual bool boundBranch(BcpsModel *m) const
Return true if branches created by object will modify variable bounds.
BcpsObjRep_t repType_
Core, indexed, or algorithmic.
BcpsVariable(double lbh, double ubh, double lbs, double ubs)
Useful constructor.