Skip to content

Commit 3f65aac

Browse files
committed
Replace deprecated fromsdpa with importsdpa
1 parent 8292532 commit 3f65aac

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/usage/from_file.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ The below example shows how to read and solve an SDPA sparse formatted file (i.e
2525
```python
2626
import sdpap
2727

28-
A, b, c, K, J = sdpap.fromsdpa('mcp500-3.dat-s')
29-
x, y, sdpapinfo, timeinfo, sdpainfo = sdpap.solve(-A,-b,-c,K,J)
28+
A, b, c, K, J = sdpap.importsdpa('mcp500-3.dat-s')
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-
3432
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)