Commit 0e07e152 authored by Jaime Arias's avatar Jaime Arias
Browse files

update scripts

parent 3a89f887
......@@ -273,5 +273,7 @@ TSWLatexianTemp*
**/build
.devcontainer
# End of https://www.gitignore.io/api/latex
......@@ -11,7 +11,8 @@ git clone https://depot.lipn.univ-paris13.fr/parties/publications/minimal-schedu
```
.
└── results # folder with the ADTree models and the minimal assignments
├── results # folder with the ADTree models and the minimal assignments
└── script
```
## Results
......
......@@ -8,7 +8,10 @@ CFLAGS = -Wall
# the name to use for both the target source file, and the output file:
TARGET = generator
all: $(TARGET)
all: clean $(TARGET)
$(TARGET): $(TARGET).c
$(CC) $(CFLAGS) -o $(TARGET) $(TARGET).c $(LFLAGS)
clean:
rm -f $(TARGET)
# Scaling Experiments
## 1. Build
To compile the generator tool (`generator.c`) it is only necessary to have
installed `gcc`, and then run `make`.
### 2. Create random ADTrees models
## 3. Plot
Firstly, some dependencies are necessary before running the notebook
(`plot_results.ipyb`). They can be installed with `pip` as follows:
```
pip install -r requirements.txt
```
No preview for this file type
......@@ -5,19 +5,31 @@ import subprocess
import pathlib
import os
import re
import sys
import csv
import itertools
def get_tool_name():
"""Return the name of the adt2amas tool depending on the operating system"""
tool = 'adt2amas'
if sys.platform.startswith('linux'):
return f'{tool}-linux'
elif sys.platform.startswith('darwin'):
return f'{tool}-macos'
else:
return f'{tool}.exe'
DEPTHS = [d for d in range(2, 6, 1)]
WIDTHS = [w for w in range(2, 11, 1)]
CHILDREN = [c for c in range(2, 11, 2)]
TYPES = ["AND"]
PATH = pathlib.Path(os.path.abspath(__file__)).parent
PROJECT_PATH = PATH.parent.parent
PROJECT_PATH = PATH.parent
generator = os.path.join(PATH, 'generator')
adt2amas = os.path.join(PROJECT_PATH, 'assets', 'adt2amas')
adt2amas = os.path.join(PROJECT_PATH, 'tool', get_tool_name())
agent_regex = r"# Agents: (\d+)"
slots_regex = r"# Slots: (\d+)"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment