Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rocksolidwebdesign committed Aug 29, 2020
1 parent 80ba6be commit 67e891f
Showing 1 changed file with 21 additions and 29 deletions.
50 changes: 21 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,45 +39,37 @@ fairness attributes for the drivers.

### Prepare Environment

1. Make sure IBM CPLEX Solver is installed. Use the following link:
[CPLEX](https://www.ibm.com/support/knowledgecenter/SSSA5P_12.7.1/ilog.odms.cplex.help/CPLEX/GettingStarted/topics/set_up/setup_synopsis.html)
Follow the instructions on the website to prepare the CPLEX
Installation with usage for Python. Make sure you do not re-install
CPLEX using PIP or it will overwrite the licensed version from IBM.
However, if you are unable to obtain a CPLEX license, PIP will
install a community version of CPLEX. (Warning: the community version
will likely only support on the order of 2 drivers and 7-10 trips)
2. Clone this repository:
Make sure IBM CPLEX Solver is installed. Use the following link:
[CPLEX](https://www.ibm.com/support/knowledgecenter/SSSA5P_12.7.1/ilog.odms.cplex.help/CPLEX/GettingStarted/topics/set_up/setup_synopsis.html)
Follow the instructions on the website to prepare the CPLEX
Installation with usage for Python. Make sure you do not re-install
CPLEX using PIP or it will overwrite the licensed version from IBM.
However, if you are unable to obtain a CPLEX license, PIP will
install a community version of CPLEX. (Warning: the community version
will likely only support on the order of 2 drivers and 7-10 trips)

```
git clone https://github.com/ribsthakkar/RiderPickup
```
Setup prerequisites

3. Setup virtual environment

```
cd RiderPickup/
python -m venv venv/
source venv/bin/activate
export PYTHONPATH="$PYTHONPATH:<path_to_current_directory>"
```
cd ~/Downloads
chmod 755 cplex_studio1210.linux-x86-64.bin
./cplex_studio1210.linux-x86-64.bin
4. Install Requirements:

```
sudo apt-get install postgresql postgresql-server-dev-all
sudo -u postgres createuser -P -d -r -s pickup
sudo -u postgres createdb -O pickup pickup
```

pip install -r requirements.txt
# install CPLEX
cd ~/Downloads
chmod 755 cplex_studio1210.linux-x86-64.bin
./cplex_studio1210.linux-x86-64.bin
python /opt/ibm/ILOG/CPLEX_Studio1210/python/setup.py install
Setup python app

```
git clone https://github.com/ribsthakkar/RiderPickup
cd RiderPickup/
python3 -m virtualenv ~/.riderpickup
source ~/.riderpickup/bin/activate
python3 -m pip install -r requirements.txt
python setup.py develop
python /opt/ibm/ILOG/CPLEX_Studio1210/python/setup.py install
```

### Setup
Expand Down

0 comments on commit 67e891f

Please sign in to comment.