DSDP
|
Functions | |
int | DSDPAddObjectiveConstant (DSDP dsdp, double c) |
Add a constant to the objective. More... | |
int | DSDPCopyB (DSDP dsdp, double bb[], int m) |
Copies the variables b from solver into an array. More... | |
int | DSDPGetDataNorms (DSDP dsdp, double dnorm[3]) |
Copy the norms of the data C, A, and b into an array. More... | |
int | DSDPGetDDObjective (DSDP dsdp, double *ddobj) |
Copy the objective value (DD). More... | |
int | DSDPGetDimension (DSDP dsdp, double *n) |
Copy the dimension of the cones, or the number of constraints in (D). More... | |
int | DSDPGetDObjective (DSDP dsdp, double *dobj) |
Copy the objective value (D). More... | |
int | DSDPGetDualityGap (DSDP dsdp, double *dgap) |
Copy the difference between the objective values. More... | |
int | DSDPGetFinalErrors (DSDP dsdp, double err[6]) |
Copy six different error measurements into an array. More... | |
int | DSDPGetMaxYElement (DSDP, double *) |
Copy the the infinity norm of the variables y. More... | |
int | DSDPGetNumberOfVariables (DSDP dsdp, int *m) |
Copy the number of variables y. More... | |
int | DSDPGetPnorm (DSDP dsdp, double *pnorm) |
Copy the proximity of the solution to the central path. More... | |
int | DSDPGetPObjective (DSDP dsdp, double *pobj) |
Copy the objective value (P). More... | |
int | DSDPGetPotential (DSDP dsdp, double *potential) |
Copy the potential of the current solution. More... | |
int | DSDPGetPPObjective (DSDP dsdp, double *ppobj) |
Copy the objective value (PP). More... | |
int | DSDPGetR (DSDP dsdp, double *res) |
Copy the infeasibility in (D), or the variable r in (DD). More... | |
int | DSDPGetStepLengths (DSDP dsdp, double *pstep, double *dstep) |
Copy the step sizes in the current iteration. More... | |
int | DSDPGetTraceX (DSDP dsdp, double *tracex) |
Copy the trace of the variables X in (P). More... | |
int | DSDPGetYMaxNorm (DSDP dsdp, double *ynorm) |
Copy the the infinity norm of the variables y. More... | |
int | DSDPSetR0 (DSDP dsdp, double res) |
Set an initial value for the variable r in (DD) More... | |
int | DSDPSetY0 (DSDP dsdp, int i, double yi0) |
Set the initial values of variables y in (D). More... | |
DSDP can provide information about the problem and its current solution in DSDP Standard Form.
0 | if successful |
int DSDPAddObjectiveConstant | ( | DSDP | dsdp, |
double | c | ||
) |
Add a constant to the objective.
dsdp | is the solver |
c | is the constant. |
Definition at line 185 of file dsdpsetdata.c.
Referenced by DSDPSetOptions().
int DSDPCopyB | ( | DSDP | dsdp, |
double | bb[], | ||
int | m | ||
) |
Copies the variables b from solver into an array.
dsdp | is the solver |
bb | is an array |
m | is the length of the array and the dimension of y |
Definition at line 46 of file dsdpsetdata.c.
Referenced by DSDPPrintData().
int DSDPGetDataNorms | ( | DSDP | dsdp, |
double | dnorm[3] | ||
) |
Copy the norms of the data C, A, and b into an array.
dsdp | is the solver |
dnorm | will be set the norms the data C, A, and b. |
Definition at line 621 of file dsdpsetdata.c.
Referenced by DSDPView().
int DSDPGetDDObjective | ( | DSDP | dsdp, |
double * | ddobj | ||
) |
Copy the objective value (DD).
dsdp | is the solver |
*ddobj | will be the objective value in (DD) |
Definition at line 523 of file dsdpsetdata.c.
Referenced by DSDPComputeX(), and DSDPDefaultConvergence().
int DSDPGetDimension | ( | DSDP | dsdp, |
double * | n | ||
) |
Copy the dimension of the cones, or the number of constraints in (D).
dsdp | the solver |
*n | will be set to the dimension (a whole number) |
Definition at line 661 of file dsdpsetdata.c.
Referenced by DSDPDefaultConvergence().
int DSDPGetDObjective | ( | DSDP | dsdp, |
double * | dobj | ||
) |
Copy the objective value (D).
dsdp | is the solver |
*dobj | will be the objective value in (D) |
Definition at line 502 of file dsdpsetdata.c.
Referenced by DSDPGetFinalErrors().
int DSDPGetDualityGap | ( | DSDP | dsdp, |
double * | dgap | ||
) |
Copy the difference between the objective values.
dsdp | is the solver |
*dgap | will be set to the difference between the objective values in (PP) and (DD) |
Definition at line 545 of file dsdpsetdata.c.
Referenced by DSDPDefaultConvergence().
int DSDPGetFinalErrors | ( | DSDP | dsdp, |
double | err[6] | ||
) |
Copy six different error measurements into an array.
dsdp | is the solver |
err | will be set to the six error measurements |
Definition at line 297 of file dsdpx.c.
Referenced by DSDPView().
int DSDPGetMaxYElement | ( | DSDP | dsdp, |
double * | ymax | ||
) |
Copy the the infinity norm of the variables y.
dsdp | is the solver |
*ymax | will be set to the magnitude of the largest variable y. |
Definition at line 645 of file dsdpsetdata.c.
Referenced by DSDPComputeDualStepDirections(), DSDPComputeX(), and DSDPSaveYForX().
int DSDPGetNumberOfVariables | ( | DSDP | dsdp, |
int * | m | ||
) |
Copy the number of variables y.
dsdp | the solver |
*m | will be set the number of variables y |
Definition at line 707 of file dsdpsetdata.c.
Referenced by DSDPCreateLUBoundsCone(), DSDPPrintData(), DSDPPrintSolution(), and DSDPView().
int DSDPGetPnorm | ( | DSDP | dsdp, |
double * | pnorm | ||
) |
Copy the proximity of the solution to the central path.
dsdp | is the solver |
*pnorm | will be set a norm of the gradient of the barrier function |
Definition at line 724 of file dsdpsetdata.c.
Referenced by DSDPDefaultConvergence().
int DSDPGetPObjective | ( | DSDP | dsdp, |
double * | pobj | ||
) |
Copy the objective value (P).
dsdp | is the solver |
*pobj | will be the objective value in (P) |
Definition at line 232 of file dsdpx.c.
Referenced by DSDPGetFinalErrors().
int DSDPGetPotential | ( | DSDP | dsdp, |
double * | potential | ||
) |
Copy the potential of the current solution.
dsdp | is the solver |
*potential | will be set to the value of the potential function |
Definition at line 803 of file dsdpsetdata.c.
Referenced by DSDPView().
int DSDPGetPPObjective | ( | DSDP | dsdp, |
double * | ppobj | ||
) |
Copy the objective value (PP).
dsdp | is the solver |
*ppobj | will be the objective value in (PP) |
Definition at line 479 of file dsdpsetdata.c.
Referenced by DSDPDefaultConvergence().
int DSDPGetR | ( | DSDP | dsdp, |
double * | res | ||
) |
Copy the infeasibility in (D), or the variable r in (DD).
dsdp | is the solver |
*res | will be set to the value of r. |
Definition at line 601 of file dsdpsetdata.c.
Referenced by DSDPComputeX(), DSDPDefaultConvergence(), and DSDPPrintSolution().
int DSDPGetStepLengths | ( | DSDP | dsdp, |
double * | pstep, | ||
double * | dstep | ||
) |
Copy the step sizes in the current iteration.
dsdp | is the solver |
*pstep | will be set to the step size in (PP) |
*dstep | will be set to the step size in (DD) |
Definition at line 742 of file dsdpsetdata.c.
Referenced by DSDPDefaultConvergence().
int DSDPGetTraceX | ( | DSDP | dsdp, |
double * | tracex | ||
) |
Copy the trace of the variables X in (P).
For SDP blocks, this number corresponds to the trace of the blocks, and for LP, it corresponds the the sum of the variables x. If this number is near the penalty paramter, the problem (P) may be unbounded or the penalty parameter may have to be increased.
dsdp | is the solver |
*tracex | will be set the trace of the variables in (P) |
Definition at line 278 of file dsdpx.c.
Referenced by DSDPView().
int DSDPGetYMaxNorm | ( | DSDP | dsdp, |
double * | ynorm | ||
) |
Copy the the infinity norm of the variables y.
dsdp | is the solver |
*ynorm | will be set to the magnitude of the largest variable y. |
Definition at line 678 of file dsdpsetdata.c.
Referenced by DSDPGetMaxYElement(), and DSDPView().
int DSDPSetR0 | ( | DSDP | dsdp, |
double | r0 | ||
) |
Set an initial value for the variable r in (DD)
A negative value asks DSDP to choose this parameter. The default heuristic generally uses very large values. Smaller values may significantly improve performance.
dsdp | is the solver |
r0 | is the initial objective v (default: -1) |
Definition at line 311 of file dsdpsetdata.c.
Referenced by DSDPSetOptions().
int DSDPSetY0 | ( | DSDP | dsdp, |
int | i, | ||
double | yi0 | ||
) |
Set the initial values of variables y in (D).
To improve performance consider setting the initial values of the variables y in (D).
dsdp | is the solver |
i | is the variable number from 1 through m |
yi0 | is the initial value af that variable |
Definition at line 77 of file dsdpsetdata.c.
Referenced by SetStableSetData().