24 #ifndef BlisConstraint_h_ 
   25 #define BlisConstraint_h_ 
   56                    int size, 
const int *ind, 
const double *val);
 
   72     void setData(
int s, 
const int *ind, 
const double *val) {
 
   80         memcpy(
indices_, ind, 
sizeof(
int) * s);
 
   81         memcpy(
values_, val, 
sizeof(
double) * s);
 
  102     double violation(
const double *lpSolution);
 
double * values_
Value of nonzero coefficients. 
 
virtual AlpsKnowledge * decode(AlpsEncoded &encoded) const 
Decode a constraint from an encoded object. 
 
void setData(int s, const int *ind, const double *val)
Set data. 
 
int * getIndices() const 
Return data. 
 
BlisConstraint()
Default constructor. 
 
double * getValues() const 
Return data. 
 
int * indices_
Variable indices. 
 
This data structure is to contain the packed form of an encodable knowledge. 
 
double violation(const double *lpSolution)
Check if violates a given lp solution. 
 
int getSize() const 
Return data. 
 
int size_
Number of nonzero coefficients. 
 
OsiRowCut * createOsiRowCut()
Create a OsiRowCut based on this constraint. 
 
AlpsReturnStatus decodeBlis(AlpsEncoded &encoded)
Unpack Blis part from a encode object. 
 
virtual ~BlisConstraint()
Destructor. 
 
AlpsReturnStatus encodeBlis(AlpsEncoded *encoded)
Pack Blis part into an encoded object. 
 
The abstract base class of any user-defined class that Alps has to know about in order to encode/deco...
 
virtual void hashing(BcpsModel *model=NULL)
Compute a hash key. 
 
virtual AlpsEncoded * encode() const 
This method should encode the content of the object and return a pointer to the encoded form...