readsdpa: Reading and writing semidefinite programs for SDPA format...

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/sdpa.R

Description

Functions to read and write semidefinite program data and solutions in SDPA format.

Usage

1
2
3
4
   readsdpa(file="",verbose=FALSE)
   writesdpa(C,A,b,K,file="")
   readsdpa.sol(K,C,m,file="")
   writesdpa.sol(X,Z,y,K,file="")

Arguments

file

The name of the file to read from or write to.

C

Block structured cost matrix

A

List of block structured constraint matrices

b

RHS vector

K

Cone specification, as used in csdp

X

Block structured primal optimal solution matrix

Z

Block strucutured dual optimal solution matrix

y

Dual optimal solution vector

verbose

Printout information as problem is read. Passed to CSDP's readsdpa function. Default FALSE

m

Number of constraints in problem.

Details

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.

Value

Function readsdpa returns a list with elements C,A,b,K. Function readsdpa.sol returns a listh with elements X,Z,y. All returned matrices are lists of objects of class simple_triplet_sym_matrix.

Author(s)

Hector Corrada Bravo

References

http://euler.nmt.edu/~brian/sdplib/FORMAT

See Also

csdp

Examples

1
#  TO DO

Rcsdp documentation built on May 30, 2017, 7:18 a.m.

Related to readsdpa in Rcsdp...