Skip to content

Commit

Permalink
Update AstraSim.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AditiR-42 authored Sep 28, 2023
1 parent 6b26b04 commit 744d3b3
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions docs/source/AstraSim.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,34 @@

Clone AstraSim from this repo: ```git clone --recursive https://github.com/astra-sim/astra-sim.git```

Install conda environment.

Run the compilation script with analytical backend: ```./build/astra_analytical/build.sh -c```


## Running Training Scripts

Inside sims/AstraSim:

* **Ant Colony Optimization**: run trainACOAstraSim.py
* **Ant Colony Optimization**: ```python trainACOAstraSim.py```

* **Bayesian Optimization**: run trainBOAstraSim.py
* **Bayesian Optimization**: ```python trainBOAstraSim.py```

* **Genetic Algorithm**: run trainGAAstraSim.py
* **Genetic Algorithm**: ```python trainGAAstraSim.py```

* **Random Walker**: run trainRandomWalkerAstraSim.py
* **Random Walker**: ```python trainRandomWalkerAstraSim.py```

* **Reinforcement Learning**: run trainSingleAgentAstraSim.py
* **Reinforcement Learning**: ```python trainSingleAgentAstraSim.py```

To update the input network, system, and workload files for the training scripts, follow these steps:

For GA and Random Walker, define the input file paths in the network_file, system_file, and workload_file variables in the training scripts.

For ACO, in aco/deepswarm/backends.py, define the network and workload file paths in self.action_dict["network"]['path'] and self.action_dict["workload"]['path']. Define the system file path self.system_file.
For ACO, in ```aco/deepswarm/backends.py```, define the network and workload file paths in ```self.action_dict["network"]['path']``` and ```self.action_dict["workload"]['path']```. Define the system file path self.system_file.

For BO, define the input file paths in the network_file, system_file, and workload_file variables in bo/AstraSimEstimator.py.
For BO, define the input file paths in the network_file, system_file, and workload_file variables in ```bo/AstraSimEstimator.py```.

For RL, define the input file paths in the network_file, system_file, and workload_file variables in envs/AstraSimEnv.py.
For RL, define the input file paths in the network_file, system_file, and workload_file variables in ```envs/AstraSimEnv.py```.


## Updating Hyperparameters
Expand Down

0 comments on commit 744d3b3

Please sign in to comment.