Go to the documentation of this file.
23 #ifndef BcpsNodeDesc_h_
24 #define BcpsNodeDesc_h_
265 const double *varLBv,
268 const double *varUBv);
281 const double *conLBv,
284 const double *conUBv);
289 const double *varLBv,
292 const double *varUBv);
297 const double *conLBv,
300 const double *conUBv);
312 for (k = 0; k < numAdd; ++k) {
void assignVarHardBound(int numModHardVarLB, int *&varLBi, double *&varLBv, int numModHardVarUB, int *&varUBi, double *&varUBv)
Set variable hard bounds.
BcpsNodeDesc()
Default constructor.
BcpsFieldListMod< int > status
BcpsObjectListMod * getCons() const
Get constraint objects.
Here is the set of vectorMod_ objects that represent the list of objects of a particular type (either...
AlpsReturnStatus encodeBcps(AlpsEncoded *encoded) const
Pack bcps node description into an encoded.
AlpsReturnStatus decodeObjectMods(AlpsEncoded &encoded, BcpsObjectListMod *objMod)
Unpack object modifications to an encoded object.
BcpsFieldListMod< double > ubHard
void initToNull()
Initialize member data.
A class for describing the objects that comprise a BCPS subproblem.
For a given type, the objectVecStorage_ structure holds the description.
BcpsNodeDesc(BcpsModel *m)
Useful constructor.
AlpsReturnStatus decodeBcps(AlpsEncoded &encoded)
Unpack bcps node description into an encoded.
BcpsObject ** objects
The objects to be added.
AlpsReturnStatus encodeObjectMods(AlpsEncoded *encoded, BcpsObjectListMod *objMod) const
Pack object modifications to an encoded object.
void setVarHardBound(int numModHardVarLB, const int *varLBi, const double *varLBv, int numModHardVarUB, const int *varUBi, const double *varUBv)
Set variable hard bounds.
int numAdd
The number of objects that are to added.
void assignCons(int numRem, int *&posRem, int numAdd, BcpsObject **&objects, bool relclh, int numclh, int *&clhp, double *&clhe, bool relcuh, int numcuh, int *&cuhp, double *&cuhe, bool relcls, int numcls, int *&clsp, double *&clse, bool relcus, int numcus, int *&cusp, double *&cuse)
Assign constraint objects.
void delConstraints(int numDel, int *indices)
Record the constraints are deleted.
void setAddedConstraints(int numAdd, BcpsObject **addCons)
Recode the added constraints.
int * posModify
The positions to be modified.
AlpsReturnStatus encodeIntFieldMods(AlpsEncoded *encoded, BcpsFieldListMod< int > *field) const
Pack a integer field into an encoded object.
void setVars(int numRem, const int *posRem, int numAdd, const BcpsObject **objects, bool relvlh, int numvlh, const int *vlhp, const double *vlhe, bool relvuh, int numvuh, const int *vuhp, const double *vuhe, bool relvls, int numvls, const int *vlsp, const double *vlse, bool relvus, int numvus, const int *vusp, const double *vuse)
Set variable objects.
BcpsObjectListMod * vars_
Variable objects.
void delVariables(int numDel, int *indices)
Record deleted variables.
BcpsObjectListMod * getVars() const
Get variable objects.
virtual ~BcpsNodeDesc()
Destructor.
BcpsObjectListMod * cons()
Accesss constraints.
BcpsFieldListMod< double > lbSoft
BcpsObjectListMod * cons_
Constraint objects.
void setConSoftBound(int numModSoftConLB, const int *conLBi, const double *conLBv, int numModSoftConUB, const int *conUBi, const double *conUBv)
Set constraint soft bounds.
AlpsReturnStatus decodeIntFieldMods(AlpsEncoded &encoded, BcpsFieldListMod< int > *field)
Unpack a integer field from an encoded object.
AlpsReturnStatus encodeDblFieldMods(AlpsEncoded *encoded, BcpsFieldListMod< double > *field) const
Pack a double field into an encoded object.
void appendAddedConstraints(int numAdd, BcpsObject **addCons)
Recode the added constraints.
This class contains modifications for a single std::vector<T> object.
int numModify
The number of entries to be modified.
void addVariables(int numAdd, BcpsObject **addVars)
Record added variables.
void assignVarSoftBound(int numModSoftVarLB, int *&varLBi, double *&varLBv, int numModSoftVarUB, int *&varUBi, double *&varUBv)
Set variable soft bounds.
BcpsFieldListMod< double > ubSoft
AlpsReturnStatus decodeDblFieldMods(AlpsEncoded &encoded, BcpsFieldListMod< double > *field)
Unpack a double field from an encoded object.
int * posRemove
The positions of the entries to be deleted.
int numRemove
The number of entries to be deleted.
void setVarSoftBound(int numModSoftVarLB, const int *varLBi, const double *varLBv, int numModSoftVarUB, const int *varUBi, const double *varUBv)
Set variable soft bounds.
BcpsFieldListMod< double > lbHard
These are the data structures that store the changes in the individual fields.
bool relative
How the modification is stored, explicit means complete replacement, relative means relative to some ...
BcpsObjectListMod * vars()
Accesss varaibles.
void assignVars(int numRem, int *&posRem, int numAdd, BcpsObject **&objects, bool relvlh, int numvlh, int *&vlhp, double *&vlhe, bool relvuh, int numvuh, int *&vuhp, double *&vuhe, bool relvls, int numvls, int *&vlsp, double *&vlse, bool relvus, int numvus, int *&vusp, double *&vuse)
Assign variable objects.
void setConHardBound(int numModHardConLB, const int *conLBi, const double *conLBv, int numModHardConUB, const int *conUBi, const double *conUBv)
Set constraint hard bounds.
void setCons(int numRem, const int *posRem, int numAdd, const BcpsObject **objects, bool relclh, int numclh, const int *clhp, const double *clhe, bool relcuh, int numcuh, const int *cuhp, const double *cuhe, bool relcls, int numcls, const int *clsp, const double *clse, bool relcus, int numcus, const int *cusp, const double *cuse)
Set constraint objects.