Column::Column()¶
Constructor of column.
Synopsis
Column()
Column::AddColumn()¶
Add a column to self.
Synopsis
void AddColumn(const Column &col, double mult)Arguments
col: column object to be added.
mult: multiply constant.
Column::AddTerm()¶
Add a term to column object.
Synopsis
void AddTerm(const Constraint &constr, double coeff)Arguments
constr: a constraint for new term.
coeff: coefficient for new term.
Column::AddTerms()¶
Add terms to column object.
Synopsis
int AddTerms(
const ConstrArray &constrs,
double *pCoeff,
int len)Arguments
constrs: constraints for added terms.
pCoeff: coefficients for added terms.
len: number of terms to be added.Return
number of added terms.
Column::Clear()¶
Clear all terms.
Synopsis
void Clear()
Column::Clone()¶
Deep copy column object.
Synopsis
Column Clone()Return
cloned column object.
Column::GetCoeff()¶
Get coefficient from the i-th term in column object.
Synopsis
double GetCoeff(int i)Arguments
i: index of the term.Return
coefficient of the i-th term in column object.
Column::GetConstr()¶
Get constraint from the i-th term in column object.
Synopsis
Constraint GetConstr(int i)Arguments
i: index of the term.Return
constraint of the i-th term in column object.
Column::Remove()¶
Remove i-th term from column object.
Synopsis
void Remove(int i)Arguments
i: index of the term to be removed.
Column::Remove()¶
Remove the term associated with constraint from column object.
Synopsis
bool Remove(const Constraint &constr)Arguments
constr: a constraint whose term should be removed.Return
true if constraint exits in column object.
Column::Reserve()¶
Reserve capacity to contain at least n items.
Synopsis
void Reserve(int n)Arguments
n: minimum capacity for Column object.
Column::Size()¶
Get number of terms in column object.
Synopsis
int Size()Return
number of terms.