Backends for SemidefiniteProgram()

26 views
Skip to first unread message

Peter Mueller

unread,
Feb 17, 2023, 10:15:00 AM2/17/23
to sage-support
Even though I installed the optional packages csdp and dsdp in Sage 9.8, they do not seem to be available as backends for `SemidefiniteProgram()`. At any rate, calling it with `solver='csdp'` or `solver='dsdp'` results in the error message *ValueError: 'solver' should be set to 'CVXOPT', 'Matrix', a class, or None (in which case the default one is used* which does not help me further.

By the way, I would consider it useful if an instance of SemidefiniteProgram could export the program to some usable file, e.g. in SDPA sparse format. (In analogy to the` write_mps()`  method for linear programs.)

-- Peter Mueller

Dima Pasechnik

unread,
Feb 17, 2023, 1:45:47 PM2/17/23
to sage-support


On Fri, 17 Feb 2023, 10:15 'Peter Mueller' via sage-support, <sage-s...@googlegroups.com> wrote:
Even though I installed the optional packages csdp and dsdp in Sage 9.8, they do not seem to be available as backends for `SemidefiniteProgram()`. At any rate, calling it with `solver='csdp'` or `solver='dsdp'` results in the error message *ValueError: 'solver' should be set to 'CVXOPT', 'Matrix', a class, or None (in which case the default one is used* which does not help me further.

well, it is certainly underdeveloped, and PRs are welcome :-)

By the way, I would consider it useful if an instance of SemidefiniteProgram could export the program to some usable file, e.g. in SDPA sparse format. (In analogy to the` write_mps()`  method for linear programs.)

-- Peter Mueller

--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/af16ae89-9032-4c0c-961b-589ac44e1c77n%40googlegroups.com.

Matthias Koeppe

unread,
Feb 20, 2023, 5:57:45 AM2/20/23
to sage-support
The way forward is via CVXpy. See https://github.com/sagemath/sage/pull/35120 (needs review); next step: https://github.com/sagemath/sage/issues/31962
Reply all
Reply to author
Forward
0 new messages