A ready-to-use environment of Jupyter Lab v1.2.1 and lpsolve v.5.5.2.5 with Python 3.7
Docker
- Create and start the container with name lpsolve
docker run --name lpsolve igormaraujo/lpsolve-python3
- Download and extract the project zip file or git clone the repository.
- In the terminal, inside the project folder where has the Dockerfile, use the command below to build the Docker Image:
docker build --rm -t lpsolve .
- Create and start the container with name lpsolve
docker run --name lpsolve lpsolve
- Port Forwarding
docker run -p 8001:8888 --name lpsolve igormaraujo/lpsolve-python3
- Volume (A volume allows data to persist, even when a container is deleted. Volumes are also a convenient way to share data between the host and the container)
docker run -v "$HOME":/home/jovyan/work --name lpsolve igormaraujo/lpsolve-python3
- Starting a container already created
docker start lpsolve
- Get jupyter notebook token
docker exec lpsolve jupyter notebook list
- Docker container terminal as root
docker exec -it --user root lpsolve bash
- Access the URL [http://localhost:8888] from a browser 1.1 (Optional) Enter with the notebook token
- The folder examples has two notebook document: ex.ipynb with a variety of simples usage cases, and example1.ipnb with a detail usage case. Both examples are included in lpsolve python extension (Optional) It is possible to install python libraries as numpy, with the command in the JupyterLab terminals:
conda install numpy
- Remove docker lpsolve container (WARNING! The data not inside the volume mounted will be LOST)
docker rm lpsolve
- Remove docker image
docker image rm igormaraujo/lpsolve-python3
- Remove docker image
docker image rm lpsolve
- JupyterLab - Version 1.2.1 from base-notebook Docker image
- lp-solve - Mixed Integer Linear Programming (MILP) solver (Version 5.5.2.5)
- lpsolve python extension - Unofficial lp-solve python ported to Python 3x
- fix-lpsolve patch - lp-solve patch fix for recent compilers
- Igor M. Araujo - Initial work - igormaraujo
- Carlos Natalino - Initial work - carlosnatalino
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- meow - https://stackoverflow.com/a/44922060/12347166
- Thomas Dejonghe - https://stackoverflow.com/a/50592697/12347166
- Joachim Klein - https://groups.google.com/forum/#!topic/prismmodelchecker/gtVatHAir90
- Chandrasekhar Atina - https://github.com/chandu-atina/lp_solve_python_3x