#include dsdp5.h
In DSDP Standard Form, a semidefinite program is given by the pair of problems
where the data and
are symmetric matrices of the same dimension and the inner product of two
matrices
and
is defined by
.
Blocks are labelled from 0 to nblocks, where nblocks is the total number of blocks in the SDPCone object.
Variables y are numbered 1 through m. Variable 0 designates the C matrices, which are also denoted .
0 | if successful |
Functions | |
int | SDPConeAddADenseVecMat (SDPCone sdpcone, int blockj, int vari, int n, double alpha, double val[], int nnz) |
Add a matrix ![]() | |
int | SDPConeAddARankOneMat (SDPCone sdpcone, int blockj, int vari, int n, double alpha, int ishift, const int ind[], const double val[], int nnz) |
Add data matrix ![]() | |
int | SDPConeAddASparseVecMat (SDPCone sdpcone, int blockj, int vari, int n, double alpha, int ishift, const int ind[], const double val[], int nnz) |
Add data matrix ![]() | |
int | SDPConeAddConstantMat (SDPCone sdpcone, int blockj, int vari, int n, double value) |
Add a matrix ![]() | |
int | SDPConeAddDataMatrix (SDPCone sdpcone, int blockj, int vari, int n, char format, struct DSDPDataMat_Ops *dsdpdataops, void *data) |
Add a data matrix ![]() | |
int | SDPConeAddIdentity (SDPCone sdpcone, int blockj, int vari, int n, double val) |
Add a matrix ![]() | |
int | SDPConeCheckData (SDPCone sdpcone) |
Check the matrix operations on a data matrix;. | |
int | SDPConeGetStorageFormat (SDPCone sdpcone, int blockj, char *format) |
Get the storage format for the block. | |
int | SDPConeRemoveDataMatrix (SDPCone sdpcone, int blockj, int vari) |
Remove the data matrix ![]() | |
int | SDPConeSetARankOneMat (SDPCone sdpcone, int blockj, int vari, int n, double alpha, int ishift, const int ind[], const double val[], int nnz) |
Set data matrix ![]() | |
int | SDPConeSetConstantMat (SDPCone sdpcone, int blockj, int vari, int n, double value) |
Set a matrix ![]() | |
int | SDPConeSetIdentity (SDPCone sdpcone, int blockj, int vari, int n, double val) |
Set a matrix ![]() | |
int | SDPConeSetStorageFormat (SDPCone sdpcone, int blockj, char format) |
Set the dense storage format of a block in the semidefinite cone. | |
int | SDPConeSetZeroMat (SDPCone sdpcone, int blockj, int vari, int n) |
Set a matrix ![]() | |
int | SDPConeUseFullSymmetricFormat (SDPCone sdpcone, int blockj) |
Use full symmetric format for the dense array. | |
int | SDPConeUsePackedFormat (SDPCone sdpcone, int blockj) |
Use packed symmetric format for the dense array. | |
int | SDPConeView2 (SDPCone sdpcone) |
Print the SDP cone to the screen in a second way. | |
int | SDPConeView3 (SDPCone sdpcone) |
Print the SDP cone to the screen in a third way. |
|
Add a matrix
![]() double val[]={3,2,0,0,6,0}; SDPConeAddADenseVecMat(sdpcone,j,i,3,1.0,val,6);
Definition at line 203 of file dsdpadddatamat.c. Referenced by SDPConeSetADenseVecMat(). |
|
Add data matrix
Definition at line 478 of file dsdpadddatamat.c. Referenced by SDPConeSetARankOneMat(), and SetStableSetData(). |
|
Add data matrix
Definition at line 49 of file dsdpadddatamat.c. Referenced by MaxCut(), SDPConeSetASparseVecMat(), and SetStableSetData(). |
|
Add a matrix
Definition at line 356 of file dsdpadddatamat.c. Referenced by SDPConeSetConstantMat(). |
|
Add a data matrix
Definition at line 154 of file dsdpadddata.c. Referenced by SDPConeAddADenseVecMat(), SDPConeAddARankOneMat(), SDPConeAddASparseVecMat(), SDPConeAddConstantMat(), SDPConeAddIdentity(), SDPConeSetZeroMat(), and SetThetaData(). |
|
Add a matrix
Definition at line 299 of file dsdpadddatamat.c. Referenced by SDPConeSetIdentity(). |
|
Check the matrix operations on a data matrix;.
Definition at line 692 of file dsdpadddata.c. Referenced by LovaszTheta(), ReadSDPAFile(), and StableSet(). |
|
Get the storage format for the block.
Definition at line 505 of file dsdpadddata.c. Referenced by DSDPPrintData(), DSDPPrintSolution(), SDPConeAddADenseVecMat(), SDPConeAddADotX(), SDPConeAddARankOneMat(), SDPConeAddASparseVecMat(), SDPConeAddConstantMat(), SDPConeAddIdentity(), SDPConeComputeS(), SDPConeComputeX(), SDPConeSetRIdentity(), SDPConeSetXArray(), SDPConeSetXMat(), SDPConeSetZeroMat(), and SDPConeViewX(). |
|
Remove the data matrix
Definition at line 127 of file dsdpadddata.c. Referenced by SDPConeSetADenseVecMat(), SDPConeSetARankOneMat(), SDPConeSetASparseVecMat(), SDPConeSetConstantMat(), SDPConeSetIdentity(), and SDPConeSetZeroMat(). |
|
Set data matrix
Definition at line 519 of file dsdpadddatamat.c. |
|
Set a matrix
Definition at line 391 of file dsdpadddatamat.c. Referenced by mexFunction(), and ReadSDPAFile(). |
|
Set a matrix
Definition at line 334 of file dsdpadddatamat.c. |
|
Set the dense storage format of a block in the semidefinite cone.
Definition at line 479 of file dsdpadddata.c. Referenced by ReadSDPAFile(), SDPConeUseFullSymmetricFormat(), and SDPConeUsePackedFormat(). |
|
Set a matrix
Definition at line 414 of file dsdpadddatamat.c. |
|
Use full symmetric format for the dense array.
![]() ![]()
but elements DSDP uses a single dense array to add data matrices, compute the matrix X, and take the inner product of X with the data matrices. Therefore, the ordering of elements in this array must also be used in the data matrices.
Definition at line 414 of file dsdpadddata.c. |
|
Use packed symmetric format for the dense array.
![]() ![]()
DSDP uses a single dense array to add data matrices, compute the matrix X, and take the inner product of X with the data matrices. Therefore, the ordering of elements in this array must also be used in the data matrices.
Definition at line 452 of file dsdpadddata.c. Referenced by LovaszTheta(), mexFunction(), and StableSet(). |
|
Print the SDP cone to the screen in a second way.
Definition at line 637 of file dsdpadddata.c. Referenced by ReadSDPAFile(). |
|
Print the SDP cone to the screen in a third way.
Definition at line 657 of file dsdpadddata.c. |