Skip to content

Commit 785d6ba

Browse files
committed
update docs and deps
1 parent fbca00d commit 785d6ba

File tree

3 files changed

+36
-31
lines changed

3 files changed

+36
-31
lines changed

README.rst

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Installation
4747
4848
pip install micom
4949
50+
For more info on the installation or setting up the solvers please see the `documentation <https://micom-dev.github.io/micom>`_ .
51+
5052
Getting started
5153
---------------
5254

docs/source/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Contents
4242
.. toctree::
4343
:maxdepth: 1
4444

45-
Methods used by MICOM <logic>
45+
Strategies used by MICOM <logic>
4646
Installing MICOM <installing>
4747

4848
MICOM workflows <high_level>

docs/source/installing.ipynb

100755100644
+33-30
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,45 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Installing MICOM\n",
7+
"# Preamble\n",
88
"\n",
9-
"MICOM is present on PyPi (the Python Package Index), so it can be installed via pip with"
10-
]
11-
},
12-
{
13-
"cell_type": "markdown",
14-
"metadata": {},
15-
"source": [
16-
"```bash\n",
17-
"pip install micom\n",
18-
"```"
19-
]
20-
},
21-
{
22-
"cell_type": "markdown",
23-
"metadata": {},
24-
"source": [
25-
"The same installation strategy also works with Anaconda installations or any other Python distributions. Supported Python versions are 3.7 or any later.\n",
9+
"The same installation strategy also works with Anaconda installations or any other Python distributions. Supported Python versions are 3.8 or later.\n",
2610
"\n",
27-
"By default MICOM will also install [OSQP](https://osqp.org) as a quadratic programming solver. MICOM employs a bunch of tricks\n",
28-
"to improve OSQP performance for linear programming problems, but will still only each accuracies in the order of 1e-4. \n",
29-
"You may install a commercial QP solver to improve the accuracy and speed (all of them offer free academic licenses). \n",
11+
"By default MICOM will also install a linear and quadratic programming solver that will work for large problems. For this it leverages\n",
12+
"a custom hybrid solver that combines [HIGHS](https://highs.dev/) and [OSQP](https://osqp.org/). Those will be installed along with MICOM\n",
13+
"automatically on Windows and Linux, but require one additional step on MacOS (see below).\n",
3014
"\n",
3115
"If you have several supported solvers installed you may later specify one with the `solver` argument in `micom.Community` or\n",
3216
"`micom.workflows.build`.\n",
3317
"\n",
18+
"## Install the hybrid solver on MacOS\n",
19+
"\n",
20+
"Due to a currently [broken package](https://github.com/ERGO-Code/HiGHS/issues/1348) on PyPI you will need to install HIGHSpy on MacOS by hand This can either\n",
21+
"be done by building from source following the [official instructions](https://github.com/ERGO-Code/HiGHS#python) (section \"Directly\"). We also provide fixed wheels for non-Silicon\n",
22+
"MacOS platforms for Python 3.8 and 3.11. Those can be installed with:\n",
23+
"\n",
3424
"\n",
35-
"## Install another QP solver\n",
25+
"**Python 3.8**\n",
26+
"\n",
27+
"```bash\n",
28+
"pip install --force-reinstall https://github.com/micom-dev/micom/raw/main/.github/wheels/highspy-1.5.3-cp38-cp38-macosx_10_9_x86_64.whl\n",
29+
"```\n",
30+
"\n",
31+
"**Python 3.11**\n",
32+
"\n",
33+
"```bash\n",
34+
"pip install --force-reinstall https://github.com/micom-dev/micom/raw/main/.github/wheels/highspy-1.5.3-cp311-cp311-macosx_10_9_x86_64.whl\n",
35+
"```\n",
36+
"\n",
37+
"# Installing MICOM\n",
38+
"\n",
39+
"MICOM is present on PyPi (the Python Package Index), so it can be installed via pip with\n",
40+
"\n",
41+
"```bash\n",
42+
"pip install micom\n",
43+
"```\n",
44+
"\n",
45+
"## Install faster (non open source) solvers\n",
3646
"\n",
3747
"The following solvers are proprietary but offer free licenses for academic use. Both solvers are\n",
3848
"faster and more accurate for the multi-step LP/QP problems in MICOM than OSQP at the moment. So if\n",
@@ -66,13 +76,6 @@
6676
"grbgetkey YOUR-LICENSE-KEY\n",
6777
"```"
6878
]
69-
},
70-
{
71-
"cell_type": "code",
72-
"execution_count": null,
73-
"metadata": {},
74-
"outputs": [],
75-
"source": []
7679
}
7780
],
7881
"metadata": {
@@ -91,7 +94,7 @@
9194
"name": "python",
9295
"nbconvert_exporter": "python",
9396
"pygments_lexer": "ipython3",
94-
"version": "3.8.5"
97+
"version": "3.11.7"
9598
}
9699
},
97100
"nbformat": 4,

0 commit comments

Comments
 (0)