Functions to read and write semidefinite program data and solutions in SDPA format.
readsdpa(file="",verbose=FALSE)
writesdpa(C,A,b,K,file="")
readsdpa.sol(K,C,m,file="")
writesdpa.sol(X,Z,y,K,file="")
Function readsdpa
returns a list with elements C,A,b,K
.
Function readsdpa.sol
returns a list with elements
X,Z,y
.
All returned matrices are lists of objects of class simple_triplet_sym_matrix
.
The name of the file to read from or write to.
Block structured cost matrix
List of block structured constraint matrices
RHS vector
Cone specification, as used in csdp
Block structured primal optimal solution matrix
Block structured dual optimal solution matrix
Dual optimal solution vector
Printout information as problem is read. Passed to CSDP's readsdpa function. Default FALSE
Number of constraints in problem.
Hector Corrada Bravo
Block structured matrices must be specified as described in
csdp
.
Files read must be in SDPA format (see
http://euler.nmt.edu/~brian/sdplib/FORMAT).
However, these functions don't support comments or grouping characters
(e.g. braces, parentheses) in the block sizes specification.
csdp