#include <BcpsNodeDesc.h>
Inheritance diagram for BcpsNodeDesc:


Public Member Functions | |
| BcpsNodeDesc () | |
| Default constructor. | |
| BcpsNodeDesc (BcpsModel *m) | |
| Useful constructor. | |
| virtual | ~BcpsNodeDesc () |
| Destructor. | |
| void | initToNull () |
| Initialize member data. | |
| 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. | |
| 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 | 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. | |
| 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. | |
| BcpsObjectListMod * | getVars () const |
| Get variable objects. | |
| BcpsObjectListMod * | getCons () const |
| Get constraint objects. | |
| BcpsObjectListMod * | vars () |
| Accesss varaibles. | |
| BcpsObjectListMod * | cons () |
| Accesss constraints. | |
| void | assignVarSoftBound (int numModSoftVarLB, int *&varLBi, double *&varLBv, int numModSoftVarUB, int *&varUBi, double *&varUBv) |
| Set variable soft bounds. | |
| void | setVarSoftBound (int numModSoftVarLB, const int *varLBi, const double *varLBv, int numModSoftVarUB, const int *varUBi, const double *varUBv) |
| Set variable soft bounds. | |
| void | assignVarHardBound (int numModHardVarLB, int *&varLBi, double *&varLBv, int numModHardVarUB, int *&varUBi, double *&varUBv) |
| Set variable hard bounds. | |
| void | setConSoftBound (int numModSoftConLB, const int *conLBi, const double *conLBv, int numModSoftConUB, const int *conUBi, const double *conUBv) |
| Set constraint soft bounds. | |
| void | setVarHardBound (int numModHardVarLB, const int *varLBi, const double *varLBv, int numModHardVarUB, const int *varUBi, const double *varUBv) |
| Set variable hard bounds. | |
| void | setConHardBound (int numModHardConLB, const int *conLBi, const double *conLBv, int numModHardConUB, const int *conUBi, const double *conUBv) |
| Set constraint hard bounds. | |
| void | appendAddedConstraints (int numAdd, BcpsObject **addCons) |
| Recode the added constraints. | |
| void | setAddedConstraints (int numAdd, BcpsObject **addCons) |
| Recode the added constraints. | |
| void | delConstraints (int numDel, int *indices) |
| Record the constraints are deleted. | |
| void | addVariables (int numAdd, BcpsObject **addVars) |
| Record added variables. | |
| void | delVariables (int numDel, int *indices) |
| Record deleted variables. | |
| AlpsReturnStatus | encodeBcps (AlpsEncoded *encoded) const |
| Pack bcps node description into an encoded. | |
| AlpsReturnStatus | decodeBcps (AlpsEncoded &encoded) |
| Unpack bcps node description into an encoded. | |
Protected Member Functions | |
| AlpsReturnStatus | encodeDblFieldMods (AlpsEncoded *encoded, BcpsFieldListMod< double > *field) const |
| Pack a double field into an encoded object. | |
| AlpsReturnStatus | encodeIntFieldMods (AlpsEncoded *encoded, BcpsFieldListMod< int > *field) const |
| Pack a integer field into an encoded object. | |
| AlpsReturnStatus | encodeObjectMods (AlpsEncoded *encoded, BcpsObjectListMod *objMod) const |
| Pack object modifications to an encoded object. | |
| AlpsReturnStatus | decodeDblFieldMods (AlpsEncoded &encoded, BcpsFieldListMod< double > *field) |
| Unpack a double field from an encoded object. | |
| AlpsReturnStatus | decodeIntFieldMods (AlpsEncoded &encoded, BcpsFieldListMod< int > *field) |
| Unpack a integer field from an encoded object. | |
| AlpsReturnStatus | decodeObjectMods (AlpsEncoded &encoded, BcpsObjectListMod *objMod) |
| Unpack object modifications to an encoded object. | |
Protected Attributes | |
| BcpsObjectListMod * | vars_ |
| Variable objects. | |
| BcpsObjectListMod * | cons_ |
| Constraint objects. | |
In the node there are a number of object types and for each object type the explicit/relative description is considered separately.
If the information on an object type is relative, it means that at least one of the fields (lbHard, ubHard, etc.) has a relative description.
Definition at line 128 of file BcpsNodeDesc.h.
| BcpsNodeDesc::BcpsNodeDesc | ( | ) | [inline] |
| BcpsNodeDesc::BcpsNodeDesc | ( | BcpsModel * | m | ) | [inline] |
| virtual BcpsNodeDesc::~BcpsNodeDesc | ( | ) | [virtual] |
Destructor.
| void BcpsNodeDesc::initToNull | ( | ) |
| void BcpsNodeDesc::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.
| void BcpsNodeDesc::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.
Take over memory ownership.
| void BcpsNodeDesc::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.
| void BcpsNodeDesc::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.
Take over memory ownership.
| BcpsObjectListMod* BcpsNodeDesc::getVars | ( | ) | const [inline] |
| BcpsObjectListMod* BcpsNodeDesc::getCons | ( | ) | const [inline] |
| BcpsObjectListMod* BcpsNodeDesc::vars | ( | ) | [inline] |
| BcpsObjectListMod* BcpsNodeDesc::cons | ( | ) | [inline] |
| void BcpsNodeDesc::assignVarSoftBound | ( | int | numModSoftVarLB, | |
| int *& | varLBi, | |||
| double *& | varLBv, | |||
| int | numModSoftVarUB, | |||
| int *& | varUBi, | |||
| double *& | varUBv | |||
| ) |
Set variable soft bounds.
Take ownerships of arraies.
| void BcpsNodeDesc::setVarSoftBound | ( | int | numModSoftVarLB, | |
| const int * | varLBi, | |||
| const double * | varLBv, | |||
| int | numModSoftVarUB, | |||
| const int * | varUBi, | |||
| const double * | varUBv | |||
| ) |
Set variable soft bounds.
Don't take ownerships of arraies.
| void BcpsNodeDesc::assignVarHardBound | ( | int | numModHardVarLB, | |
| int *& | varLBi, | |||
| double *& | varLBv, | |||
| int | numModHardVarUB, | |||
| int *& | varUBi, | |||
| double *& | varUBv | |||
| ) |
Set variable hard bounds.
Take ownerships of arraies.
| void BcpsNodeDesc::setConSoftBound | ( | int | numModSoftConLB, | |
| const int * | conLBi, | |||
| const double * | conLBv, | |||
| int | numModSoftConUB, | |||
| const int * | conUBi, | |||
| const double * | conUBv | |||
| ) |
Set constraint soft bounds.
Don't take ownerships of arraies.
| void BcpsNodeDesc::setVarHardBound | ( | int | numModHardVarLB, | |
| const int * | varLBi, | |||
| const double * | varLBv, | |||
| int | numModHardVarUB, | |||
| const int * | varUBi, | |||
| const double * | varUBv | |||
| ) |
Set variable hard bounds.
Don't take ownerships of arraies.
| void BcpsNodeDesc::setConHardBound | ( | int | numModHardConLB, | |
| const int * | conLBi, | |||
| const double * | conLBv, | |||
| int | numModHardConUB, | |||
| const int * | conUBi, | |||
| const double * | conUBv | |||
| ) |
Set constraint hard bounds.
Don't take ownerships of arraies.
| void BcpsNodeDesc::appendAddedConstraints | ( | int | numAdd, | |
| BcpsObject ** | addCons | |||
| ) | [inline] |
Recode the added constraints.
Take over the memory ownship of aguments. Append to previous constraints.
Definition at line 304 of file BcpsNodeDesc.h.
References cons_, BcpsObjectListMod::numAdd, and BcpsObjectListMod::objects.
| void BcpsNodeDesc::setAddedConstraints | ( | int | numAdd, | |
| BcpsObject ** | addCons | |||
| ) | [inline] |
Recode the added constraints.
Take over the memory ownship of aguments. Delete already added constraints.
Definition at line 323 of file BcpsNodeDesc.h.
References cons_, BcpsObjectListMod::numAdd, and BcpsObjectListMod::objects.
| void BcpsNodeDesc::delConstraints | ( | int | numDel, | |
| int * | indices | |||
| ) | [inline] |
Record the constraints are deleted.
Take over the memory ownship of arguments.
Definition at line 337 of file BcpsNodeDesc.h.
References cons_, BcpsObjectListMod::numRemove, and BcpsObjectListMod::posRemove.
| void BcpsNodeDesc::addVariables | ( | int | numAdd, | |
| BcpsObject ** | addVars | |||
| ) | [inline] |
Record added variables.
Take over the memory ownship of arguments.
Definition at line 344 of file BcpsNodeDesc.h.
References BcpsObjectListMod::numAdd, BcpsObjectListMod::objects, and vars_.
| void BcpsNodeDesc::delVariables | ( | int | numDel, | |
| int * | indices | |||
| ) | [inline] |
Record deleted variables.
Take over the memory ownship of arguemnts.
Definition at line 357 of file BcpsNodeDesc.h.
References BcpsObjectListMod::numRemove, BcpsObjectListMod::posRemove, and vars_.
| AlpsReturnStatus BcpsNodeDesc::encodeDblFieldMods | ( | AlpsEncoded * | encoded, | |
| BcpsFieldListMod< double > * | field | |||
| ) | const [protected] |
Pack a double field into an encoded object.
| AlpsReturnStatus BcpsNodeDesc::encodeIntFieldMods | ( | AlpsEncoded * | encoded, | |
| BcpsFieldListMod< int > * | field | |||
| ) | const [protected] |
Pack a integer field into an encoded object.
| AlpsReturnStatus BcpsNodeDesc::encodeObjectMods | ( | AlpsEncoded * | encoded, | |
| BcpsObjectListMod * | objMod | |||
| ) | const [protected] |
Pack object modifications to an encoded object.
| AlpsReturnStatus BcpsNodeDesc::decodeDblFieldMods | ( | AlpsEncoded & | encoded, | |
| BcpsFieldListMod< double > * | field | |||
| ) | [protected] |
Unpack a double field from an encoded object.
| AlpsReturnStatus BcpsNodeDesc::decodeIntFieldMods | ( | AlpsEncoded & | encoded, | |
| BcpsFieldListMod< int > * | field | |||
| ) | [protected] |
Unpack a integer field from an encoded object.
| AlpsReturnStatus BcpsNodeDesc::decodeObjectMods | ( | AlpsEncoded & | encoded, | |
| BcpsObjectListMod * | objMod | |||
| ) | [protected] |
Unpack object modifications to an encoded object.
| AlpsReturnStatus BcpsNodeDesc::encodeBcps | ( | AlpsEncoded * | encoded | ) | const |
| AlpsReturnStatus BcpsNodeDesc::decodeBcps | ( | AlpsEncoded & | encoded | ) |
BcpsObjectListMod* BcpsNodeDesc::vars_ [protected] |
Variable objects.
Definition at line 133 of file BcpsNodeDesc.h.
Referenced by addVariables(), delVariables(), getVars(), and vars().
BcpsObjectListMod* BcpsNodeDesc::cons_ [protected] |
Constraint objects.
Definition at line 136 of file BcpsNodeDesc.h.
Referenced by appendAddedConstraints(), cons(), delConstraints(), getCons(), and setAddedConstraints().
1.4.7