Closed alepiazza closed 2 months ago
@alepiazza thanks for reporting! I've fixed the bug in #252, the fix is available in the latest Docker image sdpb:master
.
P.S. Now we recommend using JSON format instead of XML (which is left only for backward compatibility). Replacing WritePmpXml
-> WritePmpJson
, test1.xml
-> test1.json
etc. should be enough for switching to JSON.
I am experiencing errors when using
pmp2sdp
with multiple input files (specified with the.nsv
format) running on a single core. I am using version3.0.0
in Docker.For example, I split the PMP in
mathematica/Test.m
into two files as followsand create the file
file_list.nsv
with the above file names separated by null char.Then I obtain the following error
Deleting by hand the
<objective>...</objective>
part in e.g.test2.xml
solves the issue but this is not the behaviour claimed in https://github.com/davidsd/sdpb/blob/master/docs/Usage.md#converting-pmp-to-sdp.The issue is not present instead when running on multiple cores
I have checked that in this case, the
.sdp
output is identical to the one I can obtain from a single XML produced with the originaltestSDPMatrix
function.Moreover, in this second case, the debug output is a bit misleading because it seems that only one of the two XML files is parsed while in practice the output
.sdp
contains the conditions of both files (the files in the.sdp
folders are identical to the ones I obtain when runningpmp2sdp
with a single XML produced with the originaltestSDPMatrix
function).It seems a similar behaviour happens more generically when the number of XML files is strictly bigger than the number of cores but I haven't done systematic testing of this.