NlConstrArray::GetNlConstr()
Get idx-th nonlinear constraint object.
Synopsis
NlConstraint &GetNlConstr(int idx)
Arguments
idx
: index of the nonlinear constraint.Return
nonlinear constraint object with index value.
NlConstrArray::PushBack()
Add a nonlinear constraint to nonlinear constraint array.
Synopsis
void PushBack(const NlConstraint &constr)
Arguments
constr
: nonlinear constraint object.
NlConstrArray::Reserve()
Reserve capacity to contain at least n items.
Synopsis
void Reserve(int n)
Arguments
n
: capacity of nonlinear constraint objects.
NlConstrArray::Size()
Get the number of nonlinear constraint objects.
Synopsis
int Size()
Return
number of nonlinear constraint objects.