generated from rochacbruno/python-project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
637 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
207 changes: 207 additions & 0 deletions
207
diploma_thesis/configuration/experiments/jsp/GRAPH-BEST/experiments/1/0/experiment.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,207 @@ | ||
# Evaluate the effectivenes of basic DQNs on the JSP environment | ||
base_model: &base_model 'configuration/experiments/jsp/GRAPH-BEST/experiments/1/flexible_machine.yml' | ||
|
||
|
||
default_mods: &default_mods | ||
- 'util/train_schedule/on_store_256.yml' | ||
- 'agent/dqn/ddqn.yml' | ||
# - 'agent/dqn/dueling.yml' | ||
- 'agent/dqn/prioritized.yml' | ||
# - 'agent/dqn/steps/3.yml' | ||
- 'util/optimizer/adam_stationary.yml' | ||
- 'util/optimizer/grad_norm.yml' | ||
# - 'util/infrastructure/cuda.yml' | ||
|
||
############################################################################################### | ||
|
||
dqn_1: &dqn_1 | ||
base_path: *base_model | ||
template: 'custom_gat' | ||
mod_dirs: | ||
- 'configuration/mods/machine/mods' | ||
mods: | ||
- *default_mods | ||
|
||
|
||
############################################################################################### | ||
|
||
dqn_2: &dqn_2 | ||
base_path: *base_model | ||
template: 'custom_gin' | ||
mod_dirs: | ||
- 'configuration/mods/machine/mods' | ||
mods: | ||
- *default_mods | ||
|
||
############################################################################################### | ||
|
||
dqn_3: &dqn_3 | ||
base_path: *base_model | ||
template: 'hierarchical_gin' | ||
mod_dirs: | ||
- 'configuration/mods/machine/mods' | ||
mods: | ||
- *default_mods | ||
|
||
############################################################################################### | ||
|
||
dqn_4: &dqn_4 | ||
base_path: *base_model | ||
template: 'hierarchical_gat' | ||
mod_dirs: | ||
- 'configuration/mods/machine/mods' | ||
mods: | ||
- *default_mods | ||
|
||
############################################################################################### | ||
|
||
reward: &reward | ||
- kind: 'surrogate_tardiness' | ||
parameters: | ||
winq_factor: 0.2 | ||
span: 80 | ||
critical_level_factor: 64 | ||
|
||
############################################################################################## | ||
|
||
# 8 runs | ||
|
||
long_single_source_run: &long_single_source_run | ||
parameters: | ||
mods: | ||
__inout_factory__: | ||
- [ ['utilization/90.yml' ]] | ||
nested: | ||
parameters: | ||
dispatch: | ||
seed: | ||
- '__range__': [ 2000, 2200 ] | ||
|
||
|
||
############################################################################################### | ||
|
||
|
||
task: | ||
kind: 'multi_task' | ||
n_workers: 1 | ||
n_threads: 30 | ||
debug: False | ||
store_run_statistics: False | ||
output_dir: 'results/jsp/experiments/FINAL/BEST/0' | ||
|
||
tasks: | ||
- kind: 'multi_value' | ||
parameters: | ||
base: | ||
name: 'model' | ||
output_dir: '1' | ||
log_stdout: False | ||
seed: 123 | ||
|
||
machine_agent: | ||
kind: 'mod' | ||
parameters: | ||
base_path: 'configuration/mods/machine_agent/model.yml' | ||
mods: [ ] | ||
|
||
work_center_agent: | ||
kind: 'static' | ||
parameters: | ||
model: | ||
kind: 'static' | ||
parameters: | ||
rule: 'et' | ||
encoder: | ||
kind: 'plain' | ||
|
||
tape: | ||
machine_reward: | ||
kind: 'surrogate_tardiness' | ||
|
||
work_center_reward: | ||
kind: 'no' | ||
|
||
simulator: | ||
kind: 'td' | ||
|
||
|
||
run: | ||
kind: 'mod' | ||
parameters: | ||
base_path: 'configuration/experiments/jsp/GRAPH-BEST/experiments/1/run.yml' | ||
mod_dirs: | ||
- 'configuration/mods/run/mods' | ||
mods: [] | ||
nested: | ||
parameters: | ||
simulations: | ||
- name: '' | ||
kind: 'multi_value' | ||
parameters: | ||
base: | ||
kind: 'mod' | ||
parameters: | ||
base_path: 'configuration/experiments/jsp/GRAPH-BEST/experiments/1/simulation.yml' | ||
mod_dirs: | ||
- 'configuration/mods/simulation/mods' | ||
mods: [ ] | ||
values: | ||
values: | ||
__concat__: | ||
|
||
# - output_dir: 'Global' | ||
# machine_agent: | ||
# parameters: | ||
# - *dqn_1 | ||
# - *dqn_2 | ||
# - *dqn_3 | ||
# - *dqn_4 | ||
# graph: | ||
# transition_model: | ||
# kind: 'base' | ||
# parameters: | ||
# forward: | ||
# kind: 'complete' | ||
# | ||
# schedule: | ||
# kind: 'complete' | ||
# | ||
# memory: 0 | ||
# is_machine_set_in_work_center_connected: False | ||
# is_work_center_set_in_shop_floor_connected: False | ||
|
||
- output_dir: 'Local' | ||
machine_agent: | ||
parameters: | ||
- *dqn_1 | ||
# - *dqn_2 | ||
# - *dqn_3 | ||
# - *dqn_4 | ||
graph: | ||
transition_model: | ||
kind: 'base' | ||
parameters: | ||
forward: | ||
kind: 'complete' | ||
|
||
schedule: | ||
kind: 'machine_compressed' | ||
|
||
memory: 0 | ||
is_machine_set_in_work_center_connected: True | ||
is_work_center_set_in_shop_floor_connected: True | ||
|
||
tape: | ||
machine_reward: | ||
*reward | ||
|
||
run: | ||
parameters: | ||
nested: | ||
parameters: | ||
simulations: | ||
__0__: | ||
parameters: | ||
values: | ||
__concat__: | ||
- *long_single_source_run |
79 changes: 79 additions & 0 deletions
79
diploma_thesis/configuration/experiments/jsp/GRAPH-BEST/experiments/1/flexible_machine.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
|
||
kind: 'rl' | ||
parameters: | ||
|
||
model: | ||
kind: 'deep_rule' | ||
parameters: | ||
policy: | ||
kind: 'flexible_action' | ||
parameters: | ||
policy_method: 'independent' | ||
|
||
model: | ||
__model__: '' | ||
|
||
action_selector: | ||
kind: 'phase_selector' | ||
parameters: | ||
default: | ||
kind: 'greedy' | ||
phases: | ||
- phase: | ||
kind: 'warm_up' | ||
parameters: | ||
step: 0 | ||
action_selector: | ||
kind: 'uniform' | ||
- phase: | ||
kind: 'warm_up' | ||
parameters: | ||
step: 1 | ||
action_selector: | ||
kind: 'epsilon_greedy' | ||
parameters: | ||
epsilon: 0.4 | ||
- phase: | ||
kind: 'training' | ||
action_selector: | ||
kind: 'epsilon_greedy' | ||
parameters: | ||
epsilon: 0.4 | ||
min_epsilon: 0.05 | ||
decay_factor: 0.999 | ||
decay_steps: 125 | ||
|
||
__encoder__: '' | ||
|
||
trainer: | ||
kind: 'dqn' | ||
parameters: | ||
decay: 1.0 | ||
update_steps: 50 | ||
epochs: 5 | ||
|
||
memory: | ||
kind: 'replay' | ||
parameters: | ||
size: 16394 | ||
batch_size: 1024 | ||
|
||
loss: | ||
kind: 'mse' | ||
parameters: | ||
reduction: 'none' | ||
|
||
optimizer: | ||
model: | ||
kind: 'adam' | ||
parameters: | ||
lr: 0.001 | ||
scheduler: | ||
kind: 'exponential' | ||
parameters: | ||
gamma: 0.999 | ||
|
||
return: | ||
kind: 'no' | ||
parameters: | ||
discount_factor: 0.95 |
23 changes: 23 additions & 0 deletions
23
diploma_thesis/configuration/experiments/jsp/GRAPH-BEST/experiments/1/run.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
# JSP training based on the DEEP-MARL thesis | ||
|
||
kind: 'plain' | ||
parameters: | ||
timeline: | ||
warmup: | ||
- 5000 | ||
- 5000 | ||
|
||
duration: 20000000 | ||
|
||
machine_train_schedule: | ||
pretrain_steps: 10 | ||
train_interval: 25 | ||
max_training_steps: 100000000 | ||
|
||
work_center_train_schedule: | ||
pretrain_steps: 0 | ||
train_interval: 100 | ||
max_training_steps: 0 | ||
|
||
n_workers: 10 |
Oops, something went wrong.