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