Skip to content

Commit

Permalink
Merge pull request #37 from peterjbrown519/master
Browse files Browse the repository at this point in the history
Updated read_sdpa_out to reflect feasibility status
  • Loading branch information
peterwittek committed Oct 26, 2017
2 parents 18314ec + 863c2bb commit 88ef29b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ncpol2sdpa/sdpa_utils.py
Expand Up @@ -80,6 +80,12 @@ def read_sdpa_out(filename, solutionmatrix=False, status=False,
if line.find("phase.value") > -1:
if line.find("pdOPT") > -1:
status_string = 'optimal'
elif line.find("pFEAS") > -1:
status_string = 'primal feasible'
elif line.find("pdFEAS") > -1:
status_string = 'primal-dual feasible'
elif line.find("dFEAS") > -1:
status_string = 'dual feasible'
elif line.find("INF") > -1:
status_string = 'infeasible'
elif line.find("UNBD") > -1:
Expand Down

0 comments on commit 88ef29b

Please sign in to comment.