Izok is an open source Python-based software package that allows you to formulate an optimization problem in an easy-to-learn and efficient modeling language similar to other modeling languages AMPL, AIMMS and GAMS, and then automatically implement it in open source software package Pyomo.
Project description
Izok
Izok is an open source Python-based software package that allows you to formulate an optimization problem in an easy-to-learn and efficient modeling language similar to other modeling languages AMPL, AIMMS and GAMS, and then automatically implement it in open source software package Pyomo.
It includes:
- The objects of the Izok model and the Pyomo model have the same names.
- Model are compiled to optimized Pyomo code just-in-time.
- Exceptions point to the correct line in model to make debugging easier.
Izok's philosophy is that while working with the inputs and outputs of mathematical models is done using Python and Pyomo whenever possible, this should not make the mathematical modeler's job more difficult by limiting functionality and expressiveness too much.
In A Nutshell
Pyomo code (pyomo-tutorials: https://github.com/brentertainer/pyomo-tutorials/blob/master/introduction/02-lp-pyomo.ipynb)
.. code-block:: python
expr = sum(model.c[w, t] * model.x[w, t]
for w in model.workers for t in model.tasks)
model.objective = pe.Objective(sense=pe.minimize, expr=expr)
model.tasks_done = pe.ConstraintList()
for t in model.tasks:
lhs = sum(model.x[w, t] for w in model.workers)
rhs = 1
model.tasks_done.add(lhs == rhs)
Izok code
.. code-block:: python
build(model, """
obj minimize obj.. sum(w, sum(t, c(w,t) * x(w,t)));
st1(t).. sum(w, x(w,t)) =l= 1;
""")
Links
- Source Code: https://gitflic.ru/project/enom/izok
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file izok-0.0.0.dev0.tar.gz.
File metadata
- Download URL: izok-0.0.0.dev0.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38bd321f304d940f8250373dfcdd91ea3bb1338cfbf6ce4efeadd8b0b11f6bf1
|
|
| MD5 |
70067d9dbd47a81e4a69ea38ced4de34
|
|
| BLAKE2b-256 |
331a4322d9f7c96ddf4a691a0d51645a87c8c99533a8b5e38d1bb0b87f20c56b
|
File details
Details for the file izok-0.0.0.dev0-py3-none-any.whl.
File metadata
- Download URL: izok-0.0.0.dev0-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68549296eb2137c00c538eecac768e0e1b14dd1d825784151873c8e061100cf3
|
|
| MD5 |
b835bab0161b054f3cd6b667a8c517d2
|
|
| BLAKE2b-256 |
7175f54f7c340af5cf74f700619fd140ac509cfcee322124ee63beec23a861df
|