misdp¶
misdp is a Python library for modeling mixed-integer semidefinite programs (MISDPs).
You write a model in Python almost as it appears in a paper; misdp checks it and writes a
CBF version 2 file that the
SCIP-SDP solver reads directly.
import misdp as ms
m = ms.Model("beispiel_a")
y1 = m.add_var("y1", vtype="integer")
y2 = m.add_var("y2", vtype="integer")
m.add_constraint(ms.matrix([[y1, 1.5], [1.5, y2]]) >> 0)
m.optimize(y1 + y2)
m.write("beispiel_a.cbf")
Version 0.1.0, the first core version.
misdpis under active development; the CBF reader, the command line and more examples follow in the next releases.
Where to start¶
- Getting started: install
misdpand write your first model. - Tutorial: stable set, Beispiel A and Max-Cut step by step.
- Concepts: dual form, matrix variables, and the path from your code to the file.
- Error reference: every error and warning, with an example and a fix.
- API reference: every public class and function (on the built site; in
Python,
help(ms.Model)shows the same text).
misdp is licensed under the Apache License 2.0.