Skip to content

Commit faad88f

Browse files
authored
Fix solving from .dat-s
1 parent e852c9b commit faad88f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/usage/from_file.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ The below example shows how to read and solve an SDPA sparse formatted file (i.e
2626
import sdpap
2727

2828
A, b, c, K, J = sdpap.fromsdpa('mcp500-3.dat-s')
29-
x, y, sdpapinfo, timeinfo, sdpainfo = sdpap.solve(A,b,c,K,J)
29+
x, y, sdpapinfo, timeinfo, sdpainfo = sdpap.solve(-A,-b,-c,K,J)
3030
```
3131

32+
The sign flipping is a consequence of the [inverse relationship]({% link docs/formats/sdpa_sedumi.md %}) between SDPA and SeDuMi formats (and that the (CLP) format used by SDPA for Python is a generalization of the SeDuMi format).
33+
3234
SDPLIB is a database of problems in SDPA sparse format. It's available as a [GitHub repository](https://github.com/vsdp/SDPLIB).

0 commit comments

Comments
 (0)