Utilities to install pyomo solvers in windows without anaconda
Project description
Set up a pyomo environment in windows
Installs glpk
, ipopt
and cbc
solvers in a windows environment
Install
In your environment, install pyomo_environment with
pip install pyomo_environment
Use solvers
Create your pyomo model and before executing it, call get_solver
to get the desired solver.
Example:
# Create model normally
import pyomo.environ as pyo
model = pyo.ConcreteModel()
# Solve model
from pyomo_windows.solvers import SolverManager
solver_manager = SolverManager()
solver = "glpk" # Or "cbc" or "ipopt"
opt = solver_manager.get_solver(solver)
res = opt.solve(model)
# Process your results...
Troubleshooting
You might face errors in the first execution. If in your install you cannot write in the default folder, try Optionally, if you want models to be downloaded in a different location, than
Testing
Run tests in test_solvers.py
. First execution will be slow as models have to be downloaded
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file pyomo_windows-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pyomo_windows-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 641a0fdb7b9b90abf69c0bffb76c67eeac6c36af732a36849b362963378df7cb |
|
MD5 | 0ffb701c2a02bd42200afa10b48f18a3 |
|
BLAKE2b-256 | 30a3c8b3c6808404861ddeee6b9ca7654125e3bbfff5c3745ad94c3f343c51eb |