read_sdpa_format_file: Read a SDPA format file

Description Usage Arguments Value Examples

View source: R/read_sdpa_file.R

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

1

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

1
2
3
4
path = system.file('extdata', package = 'volesti')
l = read_sdpa_format_file(paste0(path,'/sdpa_n2m3.txt'))
Spectrahedron = l$spectrahedron
objFunction = l$objFunction

volesti documentation built on July 14, 2021, 5:11 p.m.