Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PARTIES
publications
Minimal Scheduling
Commits
0e07e152
Commit
0e07e152
authored
Apr 01, 2021
by
Jaime Arias
Browse files
update scripts
parent
3a89f887
Changes
8
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
0e07e152
...
...
@@ -273,5 +273,7 @@ TSWLatexianTemp*
**/build
.devcontainer
# End of https://www.gitignore.io/api/latex
README.md
View file @
0e07e152
...
...
@@ -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
...
...
script/Makefile
View file @
0e07e152
...
...
@@ -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)
script/README.md
0 → 100644
View file @
0e07e152
# 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
```
script/generator
View file @
0e07e152
No preview for this file type
script/run_experiments
View file @
0e07e152
...
...
@@ -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+)"
...
...
tool/adt2amas-linux
-x86_64
→
tool/adt2amas-linux
View file @
0e07e152
File moved
tool/adt2amas-macos
-x86_64
→
tool/adt2amas-macos
View file @
0e07e152
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment