Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Puvikaran Santhirasegaram <74664443+Puvikaran2001@users.noreply.github.com>
  • Loading branch information
Darkros1245 and Puvikaran2001 authored May 16, 2024
1 parent af84301 commit 1f6186f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,23 @@ cargo build
```

# Simulation
## Prepare Database
When you want to simulate, you have to recreate the database, to ensure that the database does not have any old data.
Go to the backend directory and execute the following
## Windows
### Windows
>> .\make_new_db.bat
## Linux & Mac
### Linux & Mac
>> ./make_new_db.sh
## Run backend in simulator mode
After that, the backend shall be executed in simulator mode
>> cargo run -- --simulator
## Set parameters for the simulation
Then open a new terminal in the simulator directory and modify the parameters in the compare function in `simulator/src/compare_alforithms.rs` to match the simulation.
It is important that the available wattage match the tasks, so given n tasks the available watt per timeslot should be [1000; 2*505n], but you may round the calculated number up to a "nicer" number.
When that is done, simply run the simulation

## Run simulation
When the parameters are set, simply run the simulation
>> cargo run

0 comments on commit 1f6186f

Please sign in to comment.