Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
471 commits
Select commit Hold shift + click to select a range
86f3664
Refactor visuals
noBoneli Apr 11, 2025
2989ec6
Fix Pylint errors
noBoneli Apr 11, 2025
78f185e
Fix Pylint more errors
noBoneli Apr 11, 2025
2dee84f
Changed the method of defining the observation space for DRL algorith…
bozo-bud Apr 14, 2025
606f0c2
Changed the method of defining the observation space for DRL algorith…
bozo-bud Apr 14, 2025
e590b3b
Update state value plot
ryanmccann1024 Apr 15, 2025
6385ddd
Add dynamic params callback
ryanmccann1024 Apr 15, 2025
d9d9e92
Merge remote-tracking branch 'origin/ryan_drl_path_agents' into ryan_…
ryanmccann1024 Apr 15, 2025
595d6d2
Add dynamic params callback
ryanmccann1024 Apr 15, 2025
befbb33
Update yaml and run rl sim scripts
ryanmccann1024 Apr 15, 2025
6050232
Merge branch 'ryan_drl_path_agents' of github.com:SDNNetSim/FUSION in…
ryanmccann1024 Apr 15, 2025
72af43b
Add a new observation space
ryanmccann1024 Apr 16, 2025
b1f666e
Update and commit files for downstream merge
ryanmccann1024 Apr 16, 2025
6e3a050
Merge branch 'ryan_drl_path_agents' of github.com:SDNNetSim/FUSION in…
ryanmccann1024 Apr 16, 2025
4119fb9
Add support for DQN
ryanmccann1024 Apr 16, 2025
8f2a9dc
Add support for QRDQN
ryanmccann1024 Apr 17, 2025
cff9585
Centralize observation space for DRL
ryanmccann1024 Apr 17, 2025
0950cf5
Fix returned observation space
ryanmccann1024 Apr 17, 2025
3a72a3d
Add missing params to yaml and setup
ryanmccann1024 Apr 17, 2025
704a794
Add missing params to yaml files and setup
ryanmccann1024 Apr 18, 2025
3be2a73
Add optuna support for new DRL algorithms
ryanmccann1024 Apr 18, 2025
f4cd7b0
Update run_rl_sim for cluster runs
ryanmccann1024 Apr 18, 2025
19b541d
Merge branch 'ryan_drl_path_agents' of github.com:SDNNetSim/FUSION in…
ryanmccann1024 Apr 18, 2025
1db65ed
Added GUI docs through Sphinx
noBoneli Apr 19, 2025
37cbf92
Add GUI guide and related images
noBoneli Apr 22, 2025
dd263e5
Update GUI docs visuals and structure
noBoneli Apr 22, 2025
4d5724c
Lint and clean RL scripts
ryanmccann1024 Apr 22, 2025
cbcabc5
Add rough draft custom feature extractors and policies
ryanmccann1024 Apr 22, 2025
e32d86d
Bug fixes for custom feature extractors
ryanmccann1024 Apr 22, 2025
0c39311
Fix bug for setup in non gnn scenarios
ryanmccann1024 Apr 23, 2025
3d0c843
Add interpretable map from node ID to tensor indexes
ryanmccann1024 Apr 23, 2025
476afc2
Add three new networks
ryanmccann1024 Apr 24, 2025
83920c9
Add fragmentation and congestion aware algorithms
ryanmccann1024 Apr 24, 2025
1c0f6d7
Ignore unity manifest files
ryanmccann1024 Apr 24, 2025
27f011f
Move bash scripts to new Unity module
ryanmccann1024 Apr 24, 2025
a4877a7
Create enhanced unity workflow
ryanmccann1024 Apr 24, 2025
b0c1abc
Fix Q-Learning bug for new path congestion return
ryanmccann1024 Apr 24, 2025
ed12af4
Remove README from unity venv for a downstream merge
ryanmccann1024 Apr 24, 2025
f7523ba
Merge branch 'ryan_drl_path_agents' of github.com:SDNNetSim/FUSION in…
ryanmccann1024 Apr 24, 2025
05e8c66
Update manifest directory structure
ryanmccann1024 Apr 24, 2025
feae186
Remove experiment from submit manifest path
ryanmccann1024 Apr 24, 2025
490583c
Fix bug in submit manifest
ryanmccann1024 Apr 24, 2025
db30674
Bug fix in submit manifest
ryanmccann1024 Apr 24, 2025
e26717c
Bug fixes for slurm project workflow
ryanmccann1024 Apr 25, 2025
b498afa
Update make manifest to handle all params
ryanmccann1024 Apr 25, 2025
5bc6fd7
Update submit manifest for new make manifest script
ryanmccann1024 Apr 25, 2025
47df1f4
Update make_manifest.py to have cluster resource input
ryanmccann1024 Apr 25, 2025
b66334b
Update submit_manifest.py to have resource overrides
ryanmccann1024 Apr 25, 2025
428834a
Update run_rl_sim.sh to have resource overrides
ryanmccann1024 Apr 25, 2025
07214ee
Remove experiment from submit manifest
ryanmccann1024 Apr 25, 2025
177fc5f
Bug fixes for manifest files
ryanmccann1024 Apr 25, 2025
fd250e6
Save run_ids to output
ryanmccann1024 Apr 25, 2025
5586c11
Convert os object to Path object
ryanmccann1024 Apr 25, 2025
3ea3969
Minor bug fixes
ryanmccann1024 Apr 25, 2025
33f0018
Merge branch 'ryan_drl_path_agents' of github.com:SDNNetSim/FUSION in…
ryanmccann1024 Apr 25, 2025
10eb664
Add json friendly helper
ryanmccann1024 Apr 25, 2025
0a25f8f
Merge branch 'ryan_drl_path_agents' of github.com:SDNNetSim/FUSION in…
ryanmccann1024 Apr 25, 2025
c72d4a1
Add sys exit after mapping print statement
ryanmccann1024 Apr 25, 2025
5d0e561
Move sim_dict for correct thread output map
ryanmccann1024 Apr 25, 2025
c1da051
Add cluster results to .gitignore
ryanmccann1024 Apr 25, 2025
4bec194
Bug fixes for fetch_results.py
ryanmccann1024 Apr 25, 2025
457a18d
Bug fixes for fetch_results.py
ryanmccann1024 Apr 25, 2025
94bec9e
Add congestion level to optuna
ryanmccann1024 Apr 27, 2025
baaae07
Commit spec file before downstream merge
ryanmccann1024 Apr 27, 2025
7fbfc8d
Merge branch 'ryan_drl_path_agents' of github.com:SDNNetSim/FUSION in…
ryanmccann1024 Apr 27, 2025
be68ce7
Ignore unity spec files from git
ryanmccann1024 Apr 27, 2025
71e0cc9
Remove specs from local tracking
ryanmccann1024 Apr 27, 2025
67e077d
Add centrality for GNNs instead of capacity
ryanmccann1024 Apr 27, 2025
0597521
Improve q-table compilation speed
ryanmccann1024 Apr 28, 2025
5d9d472
Fix the meta.json output file path
ryanmccann1024 Apr 28, 2025
b9d1012
Add sleep to batch job submission
ryanmccann1024 Apr 29, 2025
60ba067
Improve make_manifest.py
ryanmccann1024 Apr 29, 2025
2abf8d1
Merge remote-tracking branch 'origin/ryan_drl_path_agents' into ryan_…
ryanmccann1024 Apr 29, 2025
7e9950e
Bugfix for empty parameter job submission
ryanmccann1024 Apr 29, 2025
c9d0e99
Bugfix for repeat run IDs
ryanmccann1024 Apr 29, 2025
3fd277c
Improve organization of run_rl_sim.sh
ryanmccann1024 Apr 29, 2025
0e06dee
Ignore configuration files for unity
ryanmccann1024 Apr 30, 2025
6901314
Ignore tmp config downloads
ryanmccann1024 Apr 30, 2025
e62a61d
Improve fetch_results.py workflow
ryanmccann1024 Apr 30, 2025
17ced88
Update run_rl_sim.sh file
ryanmccann1024 Apr 30, 2025
54b3404
Merge branch 'ryan_drl_path_agents' of github.com:SDNNetSim/FUSION in…
ryanmccann1024 Apr 30, 2025
b637a7b
Add rough draft improvements to rl plotting workflow
ryanmccann1024 Apr 30, 2025
01fddef
Bug fixes for plot workflow
ryanmccann1024 Apr 30, 2025
3f4a179
Bug fixes for non DRL plotting
ryanmccann1024 Apr 30, 2025
7e218f9
Bug fixes for fetch_results.py
ryanmccann1024 Apr 30, 2025
92d79d6
Bug fixes for processing data
ryanmccann1024 Apr 30, 2025
9d50b4c
Bug fixes for sim times plot.
ryanmccann1024 May 1, 2025
ec98e13
Bug fixes for memory plot.
ryanmccann1024 May 1, 2025
61da423
Bug fixes for rewards plot
ryanmccann1024 May 1, 2025
9f5fe3b
Bug fixes for state values plot
ryanmccann1024 May 1, 2025
026cc58
Ignore empty directory for fetch_results.py
ryanmccann1024 May 1, 2025
7b719dd
Add longer sleep for bug avoidance
ryanmccann1024 May 1, 2025
253491b
Update submit manifest to handle gpu submition
ryanmccann1024 May 2, 2025
d2a8b45
Ignore unity RL experiment downloads
ryanmccann1024 May 5, 2025
6710fae
Add rough draft hyperparam automation script
ryanmccann1024 May 5, 2025
a660141
Clean unity hyperparams before new update
ryanmccann1024 May 6, 2025
04bd6ca
Update best hyperparam strategy
ryanmccann1024 May 6, 2025
37962eb
Update k dynamically
ryanmccann1024 May 6, 2025
eb42ff2
Ignore updates to sb3 ymls
ryanmccann1024 May 6, 2025
bfdfc5b
Remove tracked yml files
ryanmccann1024 May 6, 2025
1e45706
Remove scientific notation from make manifest
ryanmccann1024 May 6, 2025
00f32af
Bugfix for yml file search
ryanmccann1024 May 6, 2025
a75fc5e
Remove uninformative sys.exit
ryanmccann1024 May 8, 2025
fccac1b
Add catch for JSON decode error
ryanmccann1024 May 8, 2025
cbd4eb0
Change time.sleep to half a second
ryanmccann1024 May 8, 2025
466830a
Update rewards plot workflow
ryanmccann1024 May 9, 2025
d032084
Fix bug in loaders.py
ryanmccann1024 May 10, 2025
1987d94
Add three new plot functions
ryanmccann1024 May 13, 2025
bc05ca0
Add two new plot functions
ryanmccann1024 May 13, 2025
8f2de7f
Create load balanced aware algorithm
ryanmccann1024 May 13, 2025
73c4417
Added method of tracking link usage in Json file.
bozo-bud May 14, 2025
4e10c83
Lint and mark TODOs in args module
ryanmccann1024 May 15, 2025
fa54b55
Update run_sim.sh to match new functionality
ryanmccann1024 May 15, 2025
a365e77
Add important TODOs
ryanmccann1024 May 15, 2025
9b69467
Lint setup_helpers.py
ryanmccann1024 May 15, 2025
8be7868
Delete commented code
ryanmccann1024 May 15, 2025
e48fc8f
Add important TODO
ryanmccann1024 May 15, 2025
23f326e
Move pylint ignore statement
ryanmccann1024 May 15, 2025
e0a18e8
Lint Unity module
ryanmccann1024 May 15, 2025
5397175
Lint reinforcement learning module
ryanmccann1024 May 15, 2025
d3446c1
Merge remote-tracking branch 'origin/ryan_drl_path_agents' into ryan_…
ryanmccann1024 May 15, 2025
9d1b1e8
Test base_agent.py
ryanmccann1024 May 15, 2025
77cb0f5
Test path_agent.py
ryanmccann1024 May 15, 2025
13c37a8
Test a2c.py
ryanmccann1024 May 15, 2025
13f408a
Test bandits.py
ryanmccann1024 May 15, 2025
829afa7
Test dqn.py
ryanmccann1024 May 15, 2025
ed896cd
Test ppo.py
ryanmccann1024 May 15, 2025
db1fff3
Test q_learning.py
ryanmccann1024 May 15, 2025
e421297
Test qr_dqn.py
ryanmccann1024 May 15, 2025
ffe6519
Test path_gnn.py
ryanmccann1024 May 15, 2025
5ea656e
Added method of plotting a heat map of link usage.
bozo-bud May 15, 2025
15d70a8
Test graphormer.py
ryanmccann1024 May 15, 2025
c48115f
Test general_sim_env.py
ryanmccann1024 May 15, 2025
91f1e41
Test workflow_runner.py
ryanmccann1024 May 15, 2025
cecd102
Test model_manager.py
ryanmccann1024 May 15, 2025
e986a48
Test callbacks.py
ryanmccann1024 May 15, 2025
c8ef902
Test deep_rl.py
ryanmccann1024 May 15, 2025
9e5defb
Test general_utils.py
ryanmccann1024 May 15, 2025
01d29f0
Test hyperparams.py
ryanmccann1024 May 15, 2025
46ef4a2
Test observation_space.py
ryanmccann1024 May 15, 2025
adfa2ae
Test setup.py
ryanmccann1024 May 15, 2025
c6e92c8
Test sim_data.py
ryanmccann1024 May 15, 2025
bf9674f
Test sim_env.py
ryanmccann1024 May 15, 2025
83aa74c
Test topology.py
ryanmccann1024 May 15, 2025
c45e53f
Add blocking statistics plot
ryanmccann1024 May 15, 2025
bef5bd8
Remove 95% from CI on rewards plot
ryanmccann1024 May 15, 2025
af326bd
Merge remote-tracking branch 'origin/ryan_drl_path_agents' into ryan_…
ryanmccann1024 May 15, 2025
6ea35ce
Add Cohen's D and mean difference to plots
ryanmccann1024 May 15, 2025
ec8eaf1
Implemented throughput tracking in json files.
bozo-bud May 16, 2025
6a8a01d
Implemented path_index tracking.
bozo-bud May 16, 2025
0863645
Fixed Title not displaying on Link Usage plots.
bozo-bud May 20, 2025
c891317
Fix seed calculation bugs in RL plotting
ryanmccann1024 May 20, 2025
01fc567
Replace existing RL plots with tables
ryanmccann1024 May 20, 2025
939668a
Merge remote-tracking branch 'origin/ryan_drl_path_agents' into ryan_…
ryanmccann1024 May 20, 2025
7276026
Implemented Throughput plots.
bozo-bud May 20, 2025
283e0f3
Merge remote-tracking branch 'origin/ryan_drl_path_agents' into ryan_…
bozo-bud May 20, 2025
a2d7bb4
Implemented Pathing index plots.
bozo-bud May 21, 2025
c988d26
Cache GNN information
ryanmccann1024 May 21, 2025
ca3da99
Merge remote-tracking branch 'origin/ryan_drl_path_agents' into ryan_…
ryanmccann1024 May 24, 2025
761d202
Merge remote-tracking branch 'origin/ryan_drl_path_agents' into ryan_…
bozo-bud May 28, 2025
9080c7d
Update plotting metrics
ryanmccann1024 May 28, 2025
45e1022
Merge remote-tracking branch 'origin/ryan_drl_path_agents' into ryan_…
ryanmccann1024 May 28, 2025
3a7967c
Update state values plot
ryanmccann1024 May 28, 2025
d3459f2
Normalize bandwidth blocking plots
ryanmccann1024 May 28, 2025
8ae59c2
Update mod usage plots
ryanmccann1024 May 28, 2025
d6b3d2e
Bug fix for saving plots
ryanmccann1024 May 28, 2025
2c4e362
Add obs label to RL plots
ryanmccann1024 Jun 2, 2025
0401b15
Format Spain topology correctly
ryanmccann1024 Jun 6, 2025
52c88eb
Update submit manifest for qos long
ryanmccann1024 Jun 6, 2025
c7347ab
Update run_rl_sim.sh to be even with Unity updates
ryanmccann1024 Jun 6, 2025
5ec4826
Add obs_space to job submissions
ryanmccann1024 Jun 6, 2025
2a683d3
Add a small sleep before sim start time
ryanmccann1024 Jun 6, 2025
9ed05a3
Fix time import statement
ryanmccann1024 Jun 6, 2025
927d7cc
Fix same start time bug
ryanmccann1024 Jun 12, 2025
6778efa
Filter by observation space
ryanmccann1024 Jun 12, 2025
db6921c
Merge remote-tracking branch 'origin/feature/drl-path-agents' into fe…
ryanmccann1024 Jun 12, 2025
a1feb4a
Add important TODOs
ryanmccann1024 Jun 12, 2025
3385446
Add important TODOs and update variable names
ryanmccann1024 Jun 12, 2025
0e93633
Update variable names
ryanmccann1024 Jun 12, 2025
55549cd
Add important TODO
ryanmccann1024 Jun 12, 2025
256f559
Add important TODO
ryanmccann1024 Jun 12, 2025
47240bd
Group imports
ryanmccann1024 Jun 12, 2025
cf32610
Add important TODO
ryanmccann1024 Jun 12, 2025
7c0adfa
Update variable names
ryanmccann1024 Jun 12, 2025
fd79960
Update variable name
ryanmccann1024 Jun 12, 2025
9338ac9
Update entire blocking script for pylint
ryanmccann1024 Jun 12, 2025
c559d55
Update entire link data script for pylint
ryanmccann1024 Jun 12, 2025
e83a4b0
Update entire loaders script for pylint
ryanmccann1024 Jun 12, 2025
b8894a2
Add pylint ignore line
ryanmccann1024 Jun 12, 2025
fb40e33
Lint path_index.py
ryanmccann1024 Jun 12, 2025
dbea4c6
Add important TODO
ryanmccann1024 Jun 12, 2025
175eb36
Refactor main function for organizational purposes
ryanmccann1024 Jun 12, 2025
36b6fed
Lint processors.py
ryanmccann1024 Jun 12, 2025
6dfd524
Add important TODO
ryanmccann1024 Jun 12, 2025
5d80a87
Add important TODO
ryanmccann1024 Jun 12, 2025
70c7697
Add important TODO
ryanmccann1024 Jun 12, 2025
636cfde
Add important TODO and lint cache_gnn_once.py
ryanmccann1024 Jun 12, 2025
ea52d80
Add important TODO and lint hyperparams.py
ryanmccann1024 Jun 12, 2025
86d96ea
Add important TODO to rl_zoo.py
ryanmccann1024 Jun 12, 2025
a28a781
Add important TODO to sim_filters.py
ryanmccann1024 Jun 12, 2025
12e1791
Add important TODO to workflow_runner.py
ryanmccann1024 Jun 12, 2025
8f11b6a
Add important TODO to routing.py
ryanmccann1024 Jun 12, 2025
444a461
Delete no longer used tests
ryanmccann1024 Jun 12, 2025
3e9f193
Lint reinforcement_learning module
ryanmccann1024 Jun 12, 2025
4c09db7
Lint test module and mark important TODOs
ryanmccann1024 Jun 12, 2025
7046a3d
Add important TODOs
ryanmccann1024 Jun 13, 2025
a1bd073
Add ignore dirs to array
ryanmccann1024 Jun 13, 2025
86dab18
Merge pull request #93 from SDNNetSim/feature/auto-lint
ryanmccann1024 Jun 13, 2025
6d0f2a8
Merge pull request #94 from SDNNetSim/feature/result-consistency-tests
ryanmccann1024 Jun 13, 2025
3d3fc41
Addressed PR comments, silenced print statements.
bozo-bud Jun 13, 2025
93aeab2
Small structural update to match standards.
bozo-bud Jun 13, 2025
c2b6378
Rework run_comparison.py
ryanmccann1024 Jun 13, 2025
6d602b6
Add test run files
ryanmccann1024 Jun 13, 2025
9ed3702
Finalize simulator wide result verification
ryanmccann1024 Jun 13, 2025
9fda6b1
Commit temporary results files
ryanmccann1024 Jun 13, 2025
c00cd47
Merge pull request #95 from SDNNetSim/hotfix/gui-buttons
bozo-bud Jun 13, 2025
5fef4cd
Fixed Compatibility Issue between run comparisons and Windows systems…
bozo-bud Jun 13, 2025
17b67cc
Merge pull request #98 from SDNNetSim/feature/distance-adaptive-fixed
ryanmccann1024 Jun 13, 2025
d57da64
Delete old run comparison data
ryanmccann1024 Jun 13, 2025
338311f
Bug fix for sim start
ryanmccann1024 Jun 13, 2025
9867da5
Merge branch 'feature/drl-path-agents' into develop
ryanmccann1024 Jun 13, 2025
028d5d9
Bug fix for new config file
ryanmccann1024 Jun 13, 2025
d38ed6d
Added Test fixtures for kspf, epsilon greedy, ppo.
bozo-bud Jun 17, 2025
21a5f69
Update fixture files and inis
ryanmccann1024 Jun 17, 2025
948b0d4
Update 600.0_erlang.json for epsilon greedy
ryanmccann1024 Jun 17, 2025
cffece2
Temporary additions for debugging
ryanmccann1024 Jun 17, 2025
a1dd9e2
Delete tmp_log.txt
ryanmccann1024 Jun 17, 2025
4fb7726
Ensure updated 1000.0_erlang.json file
ryanmccann1024 Jun 17, 2025
000f0cb
Bug fixes for sim time difference
ryanmccann1024 Jun 17, 2025
2153eb7
Updates for ppo tests
ryanmccann1024 Jun 17, 2025
9425532
Remove PPO tests, till next time!
ryanmccann1024 Jun 17, 2025
6957da1
Change ext_snr assumptions for new Erlang calculation
ryanmccann1024 Jun 17, 2025
3d0c5e2
Modify tests to work
ryanmccann1024 Jun 17, 2025
472ab16
Updated gui to work with new configuration setup.
bozo-bud Jun 17, 2025
9aebc30
Bug fixes for modulation and config.ini RL paths
ryanmccann1024 Jun 17, 2025
5b29c10
Updated test_sim_helpers.py to reflect modern sim_helpers
bozo-bud Jun 18, 2025
b488dc8
Delete no longer used functionality in RL tests
ryanmccann1024 Jun 19, 2025
4635a63
Merge remote-tracking branch 'origin/develop' into develop
ryanmccann1024 Jun 19, 2025
f73904f
Updated test_stats_helpers.py to reflect modern stats_helpers. Enable…
bozo-bud Jun 21, 2025
af43680
Updated test_structure_data to reflect modern structure_data. Enabled…
bozo-bud Jun 21, 2025
bf0473e
Updated test_setup_config to reflect modern setup_config. Fixed valid…
bozo-bud Jun 21, 2025
be95025
Updated test_config_args to reflect modern config_arge. Fixed valid_c…
bozo-bud Jun 21, 2025
0be105d
Updated test_sdn_controller to reflect modern sdn_controller.
bozo-bud Jun 21, 2025
0f10462
Updated test_stats_helpers to reflect modern stats_helpers.
bozo-bud Jun 21, 2025
e74d326
Updated base configuration files to work without modifications
bozo-bud Jun 24, 2025
b0a16a2
Added TODO for run_ml_sim. Updated valid_config to match modern confi…
bozo-bud Jun 24, 2025
956a99e
Major Documentation Overhaul.
bozo-bud Jul 1, 2025
d2afff2
Added Private members to documentation pages.
bozo-bud Jul 8, 2025
48f0628
Merge pull request #101 from SDNNetSim/develop
ryanmccann1024 Jul 10, 2025
d11f817
Merge branch 'main' into release/5.5.0
ryanmccann1024 Jul 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,13 @@ venvs/unity_venv/venv
__pycache__/

data/json_input/run_mods/*

unity/experiments
unity/cluster_results
unity/specs
unity/configs
unity/.tmp_config

reinforcement_learning/plotting/figures
reinforcement_learning/experiments/
sb3_scripts/yml
38 changes: 32 additions & 6 deletions arg_scripts/config_args.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# TODO: (version 5.5-6) Ensure all network files are documented

import ast


Expand All @@ -13,11 +15,14 @@ def str_to_bool(string: str):


SIM_REQUIRED_OPTIONS = {
# TODO: (version 5.5-6) double check and add all relevant parameters to an example.ini config
'general_settings': {
'erlang_start': int,
'erlang_stop': int,
'erlang_step': int,
'mod_assumption': str,
'mod_assumption_path': str,
'holding_time': float,
'erlangs': ast.literal_eval,
'thread_erlangs': str_to_bool,
'guard_slots': int,
'num_requests': int,
Expand Down Expand Up @@ -93,10 +98,17 @@ def str_to_bool(string: str):
},
'rl_settings': {
'device': str,
'gnn_type': str,
'feature_extractor': str,
'layers': int,
'emb_dim': int,
'heads': int,
'optimize': str_to_bool,
'optuna_trials': int,
'optimize_hyperparameters': str_to_bool,
'is_training': str_to_bool,
'path_algorithm': str,
'obs_space': str,
'path_model': str,
'core_algorithm': str,
'core_model': str,
Expand All @@ -106,7 +118,8 @@ def str_to_bool(string: str):
'alpha_update': str,
'alpha_start': float,
'alpha_end': float,
'discount_factor': float,
'gamma': float,
'conf_param': float,
'epsilon_update': str,
'epsilon_start': float,
'epsilon_end': float,
Expand All @@ -117,6 +130,7 @@ def str_to_bool(string: str):
'core_beta': float,
'decay_rate': float,
'n_trials': int,
'cong_cutoff': float,
},
'ml_settings': {
'output_train_data': str_to_bool,
Expand All @@ -127,17 +141,23 @@ def str_to_bool(string: str):
'test_size': float,
},
'file_settings': {
'run_id': str,
},
}

COMMAND_LINE_PARAMS = [
['erlang_start', float, ''],
['erlang_stop', float, ''],
['erlang_step', float, ''],
['mod_assumption', str, ''],
['n_trials', str, ''],
['optuna_trials', int, ''],
['mod_assumption_path', str, ''],
['epsilon_start', float, ''],
['epsilon_end', float, ''],
['learn_rate', float, ''],
['discount_factor', float, ''],
['gamma', float, ''],
['obs_space', str, ''],
['is_training', bool, ''],
['seeds', list, ''],
['beta', float, ''],
Expand All @@ -149,10 +169,10 @@ def str_to_bool(string: str):
['bi_directional', bool, ''],
['xt_noise', bool, ''],
['requested_xt', dict, ''],
['conf_param', float, ''],
['k_paths', int, ''],
['network', str, ''],
['holding_time', float, ''],
['erlangs', dict, ''],
['thread_erlangs', bool, ''],
['num_requests', int, ''],
['max_iters', int, ''],
Expand All @@ -173,6 +193,7 @@ def str_to_bool(string: str):
['arrival_rate', dict, ''],
['save_snapshots', bool, ''],
['xt_type', str, ''],
['cong_cutoff', float, ''],
['snapshot_step', int, ''],
['print_step', int, ''],
['file_type', str, ''],
Expand All @@ -186,7 +207,11 @@ def str_to_bool(string: str):
['path_algorithm', str, ''],
['core_algorithm', str, ''],
['spectrum_algorithm', str, ''],
['optimize', str, ''],
['gnn_type', str, ''],
['layers', int, ''],
['emb_dim', int, ''],
['heads', int, ''],
['feature_extractor', str, ''],
['optimize_hyperparameters', str, ''],
['reward', float, ''],
['penalty', float, ''],
Expand All @@ -198,7 +223,6 @@ def str_to_bool(string: str):
['deploy_model', bool, ''],
['path_levels', int, ''],
['core_beta', float, ''],
['gamma', float, ''],
['decay_factor', float, ''],
['dynamic_reward', bool, ''],
['config_path', str, ''],
Expand All @@ -214,7 +238,9 @@ def str_to_bool(string: str):
['spectrum_priority', str, ''],
['save_step', int, ''],
['save_start_end_slots', bool, ''],
['run_id', str, ''],

# TODO: (version 5.5-6) RLZoo3 will be removed
# StableBaselines3 arguments
['algo', str, ''],
['env-id', str, ''],
Expand Down
2 changes: 1 addition & 1 deletion arg_scripts/routing_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self):
self.span_len = 100.0 # Length of a span in km
self.max_span = None # Maximum number of spans in the network
self.connection_index = None # Keeping track of source destination index in precalculated routing
self.path_index = None # Keeping track of index of selected path for spectrum assignment
self.path_index = None # Keeps track of selected path indexes during spectrum assignment

def __repr__(self):
return f"RoutingProps({self.__dict__})"
1 change: 0 additions & 1 deletion arg_scripts/snr_args.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# pylint: disable=too-few-public-methods

class SNRProps:
"""
Main properties used for the snr_measurements.py script.
Expand Down
3 changes: 3 additions & 0 deletions arg_scripts/stats_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def __init__(self):
self.mods_used_dict = dict() # Modulations used in simulation(s)
self.block_bw_dict = dict() # Block per bandwidth
self.block_reasons_dict = {'distance': None, 'congestion': None, 'xt_threshold': None} # Block reasons
self.link_usage_dict = dict() # Tracks per link usage data
self.sim_block_list = list() # List of blocking probabilities per simulation
self.sim_br_block_list = list() # List of blocking probabilities per simulation
self.trans_list = list() # List of transponders used per simulation
Expand All @@ -24,6 +25,8 @@ def __init__(self):
self.end_slot_list = list() # # Tracks the end slot allocated in a simulation
self.modulation_list = list() # Tracks the modulation
self.bandwidth_list = list() # # Tracks the bandwidth
self.path_index_list = list() #Tracks the number of times a path was selected


def __repr__(self):
return f"StatsProps({self.__dict__})"
Expand Down
93 changes: 0 additions & 93 deletions bash_scripts/run_rl_sim.sh

This file was deleted.

92 changes: 0 additions & 92 deletions bash_scripts/run_sim.sh

This file was deleted.

6 changes: 2 additions & 4 deletions config_scripts/parse_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ def parse_args():
parser = argparse.ArgumentParser(description='Software-Defined Networking Simulator.')

for args_lst in COMMAND_LINE_PARAMS:
argument, arg_type, arg_help = args_lst[0], args_lst[1], args_lst[2]
argument, arg_type, arg_help = args_lst
parser.add_argument(f'--{argument}', type=arg_type, help=arg_help)
parser.add_argument(f'-{argument}', type=arg_type, help=arg_help)

# fixme: (drl_path_agents) Two 'optimize' variables for SB3 and our variable interferes, needs to be
# fixed for DRL
# parser.add_argument('-optimize', action='store_true', help='Enable optimization')
parser.add_argument('-optimize', action='store_true', help='Enable optimization')
args = parser.parse_args()

return vars(args)
Loading
Loading