Skip to content

Commit

Permalink
Update Dockerfile, README, and OR-Tools script
Browse files Browse the repository at this point in the history
  • Loading branch information
hanno-becker committed Dec 26, 2023
1 parent 5819b7a commit 0bc695b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,10 @@ can be found in [paper/artifact/slothy.dockerfile](paper/artifact/slothy.dockerf
### Manual

SLOTHY relies on [Google OR-Tools](https://developers.google.com/optimization) as the underlying constraint
solver. You need at least v9.3, and this repository by default uses v9.7.

Unless you already have a working installation, you can clone Google OR-Tools as a submodule of this repository
and build from scratch, e.g. as follows (also available as [submodules/setup-ortools.sh](submodules/setup-ortools.sh)
for convenience):
solver. You need at least v9.3, and this repository by default uses v9.7. Unless you already have a working
installation, you can clone Google OR-Tools as a submodule of this repository and build from scratch, e.g. as follows:

```
% apt install -y git build-essential python3-pip cmake swig
% git submodule init
% git submodule update
% cd submodules/or-tools
Expand All @@ -65,7 +61,13 @@ for convenience):
% make -C build -j8
```

You also need to install `sympy`. To add it to the virtual Python environment provided by OR-Tools, do
This is also available as [submodules/setup-ortools.sh](submodules/setup-ortools.sh)
for convenience.

**Dependencies:** You need `git`, `python3-pip`, `cmake`, `swig`, and build-tools (e.g. `build-essential`)
to build OR-Tools from source.

You also need `sympy`. To add it to the virtual Python environment provided by OR-Tools, do
```
> source submodules/or-tools/build/python/venv/bin/activate
> pip3 install sympy
Expand Down
2 changes: 1 addition & 1 deletion paper/artifact/slothy.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN passwd -d ubuntu
USER ubuntu
WORKDIR /home/ubuntu
# Fetching repositories as zips; could use git clone as well
RUN wget https://github.com/slothy-optimizer/slothy/archive/refs/heads/ches2024_artifact.zip -O slothy.zip
RUN wget https://github.com/slothy-optimizer/slothy/archive/refs/heads/main.zip -O slothy.zip
RUN wget https://github.com/slothy-optimizer/pqmx/archive/refs/heads/ches2024_artifact.zip -O pqmx.zip
RUN wget https://github.com/slothy-optimizer/pqax/archive/refs/heads/ches2024_artifact.zip -O pqax.zip
RUN unzip slothy.zip
Expand Down
3 changes: 0 additions & 3 deletions submodules/setup-ortools.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/usr/bin/env sh

# Install some dependencies
apt install -y git build-essential python3-pip cmake swig

git submodule init
git submodule update

Expand Down

0 comments on commit 0bc695b

Please sign in to comment.