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