https://github.com/n8henrie/knapsack
Coursera Discrete Optimization
https://github.com/n8henrie/knapsack
Last synced: 3 months ago
JSON representation
Coursera Discrete Optimization
- Host: GitHub
- URL: https://github.com/n8henrie/knapsack
- Owner: n8henrie
- License: mit
- Created: 2021-08-17T19:52:01.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-02T23:02:40.000Z (almost 3 years ago)
- Last Synced: 2024-12-27T16:27:08.180Z (5 months ago)
- Language: Python
- Size: 94.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# knapsack
For Coursera's Discrete Optimization course.
My first time working with [PyO3](https://github.com/PyO3/pyo3) and
[maturin](https://github.com/PyO3/maturin) to build rust libraries that I can
call from python -- quite a treat!## MacOS Setup
- https://github.com/PyO3/pyo3/issues/1800
Working well with homebrew python, but having trouble with pyenv (possibly
because I use a framework install) and the MacOS system python.1. python3 -m venv .venv && source ./.venv/bin/activate
2. pip install --upgrade pip maturin
3. maturin develop
4. cargo test --no-default-features
5. ./solver.py ./data/ks_4_0## Windows Setup
Seemed to be working fine