DSDP
|
Functions | |
int | BConeAllocateBounds (BCone bcone, int nnz) |
Set a surplus variable in constraint in (P). More... | |
int | BConeCopyX (BCone bcone, double xl[], double xu[], int m) |
Copy the variables into arrays. More... | |
int | BConeSetLowerBound (BCone bcone, int vari, double lbound) |
Set a lower bound on a variable y. More... | |
int | BConeSetPSlackVariable (BCone bcone, int vari) |
Set a slack variable to a constraint in (P). More... | |
int | BConeSetPSurplusVariable (BCone bcone, int vari) |
Set a surplus variable in constraint in (P). More... | |
int | BConeSetUpperBound (BCone bcone, int vari, double ubound) |
Set an upper bound on a variable y. More... | |
int | DSDPCreateBCone (DSDP dsdp, BCone *dspcone) |
Create a new cone that represents bounds on the y variables. More... | |
Bounds on the variables y are a special type of semidefinite and LP cone. Corresponding to lower and upper bounds on the y variables are surplus and slack variables in (P) with an a cost.
Variables y are numbered 1 through m.
0 | if successful |
int BConeAllocateBounds | ( | BCone | bcone, |
int | nnz | ||
) |
Set a surplus variable in constraint in (P).
bcone | bounds |
nnz | number of bounds that will be set. |
This optional routine allows for efficient allocation of memory for this object.
int BConeCopyX | ( | BCone | bcone, |
double | xl[], | ||
double | xu[], | ||
int | m | ||
) |
Copy the variables into arrays.
bcone | Bounds |
xl | array |
xu | array |
m | length of the arrays |
This routine will set the values of this array to the value of the corresponding variable. When no bound is present, the variable will equal zero.
int BConeSetLowerBound | ( | BCone | bcone, |
int | vari, | ||
double | lbound | ||
) |
Set a lower bound on a variable y.
bcone | bounds |
vari | y variable number |
lbound | lower bound |
Definition at line 566 of file dbounds.c.
Referenced by BConeSetPSurplusVariable().
int BConeSetPSlackVariable | ( | BCone | bcone, |
int | vari | ||
) |
Set a slack variable to a constraint in (P).
bcone | bounds |
vari | y variable number |
When a constraint in (P) is best expressed with an inequality constraint, a slack variable may be added.
This command is equivalent to setting an upper bound on variable $y_i$ to zero.
int BConeSetPSurplusVariable | ( | BCone | bcone, |
int | vari | ||
) |
Set a surplus variable in constraint in (P).
bcone | bounds |
vari | y variable number |
int BConeSetUpperBound | ( | BCone | bcone, |
int | vari, | ||
double | ubound | ||
) |
Set an upper bound on a variable y.
bcone | bounds |
vari | y variable number |
ubound | upper bound |
Definition at line 583 of file dbounds.c.
Referenced by BConeSetPSlackVariable().
Create a new cone that represents bounds on the y variables.
dsdp | the solver |
dspcone | new cone |
For example, to bound the first of three y variables below by 0 and 10,