Learn R Programming

volesti (version 1.1.1)

readSdpaFormatFile: Read a SDPA format file

Description

Read a SDPA format file and return a spectrahedron (an object of class Spectrahedron) which is defined by the linear matrix inequality in the input file, and the objective function.

Usage

readSdpaFormatFile(path)

Arguments

path

Name of the input file

Value

A list with two named items: an item "matrices" which is an object of class Spectrahedron and an vector "objFunction"

Examples

Run this code
# NOT RUN {
path = system.file('extdata', package = 'volesti')
l = readSdpaFormatFile(paste0(path,'/sdpa_n2m3.txt'))
Spectrahedron = l$spectrahedron
objFunction = l$objFunction
# }

Run the code above in your browser using DataLab