Skip to content

Commit

Permalink
Added paper
Browse files Browse the repository at this point in the history
  • Loading branch information
bstellato committed Oct 17, 2018
1 parent 36b91e0 commit b28df32
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ m = miosqp.MIOSQP()
m.setup(P, q, A, l, u, i_idx, i_l, i_u)
results = m.solve()
```
where `P` is a symmetric positive semidefinite matrix and `A` a matrix.
where `P` is a symmetric positive semidefinite matrix and `A` a matrix.
`P` and `A` are both in the scipy sparse CSC format.

The returned object `results` contains
The returned object `results` contains
- `x`: the solution
- `upper_glob`: the cost function upper bound
- `run_time`: the solution time
Expand All @@ -52,7 +52,21 @@ To set an initial feasible solution `x0` we can run
m.set_x0(x0)
```

## Citing

If you are using this package for your work, please cite the following paper:

```
@inproceedings{stellato2018,
author = {Stellato, B. and Naik, V. V. and Bemporad, A. and Goulart, P. and Boyd, S.},
title = {Embedded Mixed-Integer Quadratic Optimization Using the {OSQP} Solver},
booktitle = {European Control Conference ({ECC})},
year = {2018},
code = {https://github.com/oxfordcontrol/miosqp},
month = jul,
groups = {power electronics, integer programs}
}
```

## Run examples
In order to run the examples from to compare with GUROBI, after installing the python insterface, you need to install [mathprogbasepy](https://github.com/bstellato/mathprogbasepy). Examples can be found in the `examples` folder.
Expand Down

0 comments on commit b28df32

Please sign in to comment.