Skip to content

Commit

Permalink
Added installation help for GLPK and CBC for Windows users
Browse files Browse the repository at this point in the history
  • Loading branch information
spiralulam committed Aug 22, 2023
1 parent e2c2cc8 commit 5fa9e4d
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,19 @@ problems. The most common choices are the commercial solvers `Gurobi <https://ww
`Xpress <https://www.fico.com/en/products/fico-xpress-optimization>`__ as well as the noncommercial solvers
`GLPK <https://www.gnu.org/software/glpk/>`__,
`CBC <https://github.com/coin-or/Cbc/>`__ and `SCIP <https://www.scipopt.org
/>`__.
/>`__.

Some help for Windows users with CBC and GLPK
-----------------------------------------------------------------

If you are a Windows user and you want to use Pyomo with the free solvers CBC and/or GLPK, here is what you have to do.

1. Install the latest Microsoft Visual C++ Redistributable. You can get them
`here <https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170>`_.
2. Download the binaries. `Here <https://github.com/coin-or/Cbc/releases>`__ are the latest files for CBC and
`here <https://sourceforge.net/projects/winglpk/>`__ the files for GLPK, respectively.
3. Create one folder for each solver and extract the ZIP files there. These folders might be ``C:\CBC`` and ``C:\GLPK``.
4. Copy the paths containing the executables. In our example, these paths would be ``C:\CBC\bin`` and ``C:\GLPK\glpk-4.65\w64``.
5. Insert these paths into the environment variable named ``PATH``. You can access this variable under System and
Security>>System>>Advanced system settings>>Environment Variables. Then click on `path` in the top window, click the
`Edit` button, then `New`.

0 comments on commit 5fa9e4d

Please sign in to comment.