View source: R/read_sdpa_file.R
read_sdpa_format_file | R Documentation |
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.
read_sdpa_format_file(path)
path |
Name of the input file |
A list with two named items: an item "matrices" which is an object of class Spectrahedron and an vector "objFunction"
path = system.file('extdata', package = 'volesti')
l = read_sdpa_format_file(paste0(path,'/sdpa_n2m3.txt'))
Spectrahedron = l$spectrahedron
objFunction = l$objFunction
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.